Page 1 of 1

Unpacking analog input data packet in Matlab

Posted: Tue May 27, 2014 11:30 am
by miriha
Hi,
I set the data rate for Phidget 8/8/8 to 1ms and acquire the sensor value using
calllib('phidget21', 'CPhidgetInterfaceKit_getSensorValue', phid, n, dataptr);
where dataptr is initialized by dataptr = libpointer('int32Ptr', 0);
The dataptr.value shows the first data point correctly.
How can I unpack the remaining 7 data points?
Thank you,
Marty

Re: Unpacking analog input data packet in Matlab

Posted: Tue May 27, 2014 12:51 pm
by Patrick
You can't, this data is only available via the sensor change event - which is not compatible with Matlab.

-Patrick

Re: Unpacking analog input data packet in Matlab

Posted: Tue May 27, 2014 1:00 pm
by miriha
That settles it, thanks Patrick.