Convert value

Post Reply
trung05101
Posts: 17
Joined: Tue Feb 21, 2012 9:26 am
Location: viet nam

Convert value

Post 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.

Coen
Site Admin
Posts: 1124
Joined: Fri Mar 26, 2004 7:00 pm
Location: Amsterdam, Netherlands
Contact:

Post 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)

trung05101
Posts: 17
Joined: Tue Feb 21, 2012 9:26 am
Location: viet nam

Post by trung05101 »

Thanks1

Post Reply