LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

send ASCII command

Hello,

i want to control an instrument called Shutter control.i am using
serial communication with RS232.i want to send a command "open=2".i am
using serial write but unable to send the command.the instrument
accepts only ASCII command.can any one tell me how i can send ASCII
command to serial write.

thanks in advance

irfan

0 Kudos
Message 1 of 2
(3,443 Views)

If you are using Serial Write and not VISA Write, you must have an old version of LabVIEW but even then, either function can send ASCII and in fact, the only thing you can wire as an input is a string. Unless you've configured the string control/constant for hex display, the serial write is sending the ASCII text of what you have entered. You may be sending an incorrect string or a string incorrectly terminated. Do you need to send a carriage retrun/line feed at the end of each string? Have you tested the communication with another program such as Hyperterminal? Are you using a shipping example or something you wrote? If it's a shipping example, which one and if it's something you wrote, why don't you attach the code?

Message 2 of 2
(3,432 Views)