Page 1 of 1

Convert value

Posted: Mon Mar 05, 2012 8:07 am
by trung05101
Hi all!
I use matlab read data from Active Two by TCP.
I use command: data = fread(t, 2, 'int32') (t is server).
Result data= 1.0e+009 *0.9121. If a change int32 by int16, result
data = -32457. I don't know what result is true and how to check it.
Thanks.

Posted: Tue Mar 06, 2012 12:34 pm
by Coen
Construct 24-bit data words from groups of 3 successive Bytes, see the LabVIEW code of the client. Check your Matlab client by comparing your results with the values displayed by ActiView, by the simple BDF file reader, and by the LabVIEW client.

Best regards, Coen (BioSemi)

Posted: Wed Mar 07, 2012 4:22 am
by trung05101
Thanks1