Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Defining Command Strings in Instrument Driver

I'm trying to develop an instrument driver for a custom device. It uses RS232 for communications, but the command format uses non-printing ASCII characters. How do I indicate this in the instrument driver wizard?
Thanks,
Mike
0 Kudos
Message 1 of 2
(2,938 Views)
Hi,

Since GPIB and Serial instruments usually use ASCII messages as commands VISA uses the string data type for the input and output buffers. Although the string data type is used, VISA treats the buffers as byte arrays. You are not limited to send visible ASCII characters. You can fill the buffer with any values.

You can use the viWrite to send whatever is in the buffer to the instrument.

DiegoF
National Instruments.
0 Kudos
Message 2 of 2
(2,938 Views)