09-01-2010 05:18 PM
I have an instrument, through which I actively communicate via gpib (usb-gpib-hs actually). I now need to send the instrument a series of 16bit integer values (0's and 7fffxh's alternating). I have tried flattening the array of int16's into a string to send but the string does not convert correctly. I have to also send the instrument the number of bits that will be sent as well as the 16bit checksum. It is the checksum that fails. I know the instrument is operational, so I can eliminate that.
How do I send the int16 bitstream via gpib without converting it to a string first? IF there is not a way how do I properly convert it? Thank you in advance
09-01-2010 10:37 PM
Are you using LabVIEW? If so, how do you have the byte order set with the flatten to string? Little or big endian?
09-02-2010 01:01 PM
09-02-2010 01:40 PM - edited 09-02-2010 01:41 PM
Dennis
You were right. I needed to send it little-endian rather than big-endian. That is instrument specific. Thank you!