10-19-2013 09:23 PM
Hi all,
I am using VISA to send data and command via GPIB to an external device. As I seen in online material about GPIB programming, all examples I found convert numbers to text (ASCII) format and send them as strings. So number 256 (1byte) is actually '256' (3bytes). It will increase the size of data being transferred and slow down the speed. I wonder if it is possible to send numbers in numbers (binary form). Sorry for any inaccurate infomation in my quesiton since I am just starting to learn using labview programming in VISA. Thanks.
10-20-2013 10:15 AM
@phlins wrote:
Hi all,
I am using VISA to send data and command via GPIB to an external device. As I seen in online material about GPIB programming, all examples I found convert numbers to text (ASCII) format and send them as strings. So number 256 (1byte) is actually '256' (3bytes). It will increase the size of data being transferred and slow down the speed. I wonder if it is possible to send numbers in numbers (binary form). Sorry for any inaccurate infomation in my quesiton since I am just starting to learn using labview programming in VISA. Thanks.
Have you read the programming manual for this external device?
It doesn't matter what you are wondering about. You need to know what IS.
10-21-2013 04:19 PM
10-22-2013 06:32 AM
phlins wrote: I wonder if it is possible to send numbers in numbers (binary form).
It is. In LabVIEW, you just use Type Cast to change to the binary form of a string. However, as already stated, it really depends on your instrument. I have only worked with 3 instruments that will send data back in a binary format (all of which were sending waveforms).
Also, in my experience the communication speed doesn't really matter that much anyways. I end up waiting for the instrument to process the command and actually do something anyways.