08-29-2013 08:41 AM
Hi all,
It seems that all example code found online to use VISA to write to GPIB will send string (command and data). I wonder if this is how it design or we can change that to use binary data instead? Now to send 100 8-bit data (ranged from 100 to 200), I have to converted 3 character for each number so it will be at least 3 times more than sending the binary data.
08-29-2013 09:28 AM
08-29-2013 10:35 AM
@dragondriver wrote:
Hi all,
It seems that all example code found online to use VISA to write to GPIB will send string (command and data). I wonder if this is how it design or we can change that to use binary data instead? Now to send 100 8-bit data (ranged from 100 to 200), I have to converted 3 character for each number so it will be at least 3 times more than sending the binary data.
As Dennis said, you send the data in whatever format the instrument wants it in. If it wants ASCII digits, then use the Decimal Number to String to convert to a string to send. If the instrument wants binary data, then just use Byte Array to String and send that.