Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with sending command to serial write

Hello,

i want to control an instrument called Shutter control.i am using
serial communication with RS232.i want to send a command "mode=2/r".i am
using serial write but unable to send the command.the instrument
accepts only ASCII command.can any one help me in this.i am attaching my vi

thanks in advance

irfan

0 Kudos
Message 1 of 2
(2,777 Views)
You are not sending the carriage return line code. The correct code is \r not /r like you have and in order to send it correctly, you have to right click on the string constant and select '\' Code Display. Otherwise, you are just sending the characters '\' and 'r'. The shipping example called Basic Serial Write and Read has a front panel control that is set correctly. You can also look at the advanced example to see how to set the write termination character with a VISA property node.
Message 2 of 2
(2,774 Views)