Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-VISA Send null instead of treating it as end of string on serial port?

I have an probe that communicates on a serial port and I am trying to communicate with it from Excel VBA using NI-VISA. I have basic communication functioning, but the problem is that the manufacturer of the probe uses the worst possible commands and at the moment this is the one I have problems with.

 

“#00”+Chr(126)+”C”+Chr(1)+Chr(0) +“*”

 

The problem here is Chr(0), it seems as NI-VISA treats null as end of string and does not send the null and not * that comes after. Anyone that knows a way to send the null on serial port using NI-VISA and not treat it as an end of string?

0 Kudos
Message 1 of 1
(100 Views)