Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Can the ibwrt function send the escape character

I am trying to write to an older GPIB device. The command is ME000000000
I have put the following command in my VB program
call ibwrt (0,8,sendstr,NLEND) where sendstr is
sendstr=chr$(27) & "ME000000000" & chr$(13)

Is this correct?
0 Kudos
Message 1 of 3
(3,519 Views)
You can send any 8-bit ASCII character across GPIB. If the character has such an equivalent then it is possible to use IBWRT to send the command. I believe the ASCII equivalent of 1Bh or decimal 27 as you have posted above.

Ryan Mosley
National Instruments
0 Kudos
Message 2 of 3
(3,519 Views)
This older instrument may not respond to an EOI line. It may still be expecting an End-of-String (EOS) character. If a carriage-return is not the EOS, then maybe a line-feed is necessary. Otherwise it looks right.

If in doubt, use NI-Spy to see what is being sent over the bus.

Randy Solomonson
Applications Engineer
National Instruments
0 Kudos
Message 3 of 3
(3,519 Views)