can you clarify re: interface kit (java)

Supporting Java SE version 7 and up
dtimer

can you clarify re: interface kit (java)

Postby dtimer » Sat Jul 09, 2011 9:43 am

I am working with the interface kit example. In the SensorChangeListener I output the sensor value from the InterfaceKitPhidget object which I obtain in the listener's sensorchanged method from getSource in the event object. When I set data rate to 1ms, the same sample repeats 8 times, 2ms - 4times, etc. 8ms sampling outputs 125 unique values per second. the SensorChangeTrigger is set to 0. Can anyone suggest how to proceed ? I need the actual 1 ms samples. It doesn't have to be in real time.

dtimer

Re: can you clarify re: interface kit (java)

Postby dtimer » Sat Jul 09, 2011 10:10 am

here this is weird

if index is 0 or 1 if datarate and sensortrigger have opposite indexes (0 or 1) I get unique sample values at 1ms


Return to “Java”

Who is online

Users browsing this forum: No registered users and 4 guests