Force sensor

C, C++, and Visual C++
axle
Phidgetsian
Posts: 14
Joined: Thu Sep 29, 2011 2:26 am
Contact:

Force sensor

Postby axle » Fri Mar 09, 2012 2:37 am

I am trying to log data from the phidgets force sensor 1120. Below is the code that I use but I cant get it to work. Any ideas?

CPhidgetInterfaceKit_getSensorValue (ifkit, 4, &forceSensorRaw);
fprintf(file,"%d, \n", forceSensorRaw);

User avatar
burley
Human-Cyborg Relations
Posts: 441
Joined: Tue Sep 27, 2011 2:37 pm
Location: Calgary
Contact:

Re: Force sensor

Postby burley » Fri Mar 09, 2012 8:08 am

What happens when you do this?
Brian Burley
403-282-7335 ext. 6003
support@phidgets.com

axle
Phidgetsian
Posts: 14
Joined: Thu Sep 29, 2011 2:26 am
Contact:

Re: Force sensor

Postby axle » Fri Mar 09, 2012 8:31 am

A value of '0' gets written to the file.


Return to “C/C++”

Who is online

Users browsing this forum: No registered users and 1 guest