Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I send binary data to an instrument using the Interactive Controller?

In order to tune the frequncey on my Interference Analyzer it requires binary data to be sent (rather than ASCII characters". How do I send binary data using the ibwrt command or is there another command that I use to send binary data?
0 Kudos
Message 1 of 2
(3,238 Views)
In the string that you give to interactive control, you can specify hexadecimal numbers by putting a '\x' in the string before the number. Each '\x' will allow you to put 1 byte of hexidecimal data after it.

Ex:

ibwrt "\x1e\x22\x35\x84"

Hope that helps you out.

Craig A
National Instruments Engineer
Message 2 of 2
(3,238 Views)