LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to write 'Enter' key to serial port COM1 ?

Hi Guys,
 
I want to use VISA write to send the 'Enter' key to the serial port.
How can I do this??
The command I need to send is like  COMMAND+enter key
I tried to add the \r after the command but it didn't work. Could
anyone give me some clue on this? Thanks a lot.
 
Lee
0 Kudos
Message 1 of 3
(10,423 Views)
First, make sure that your text control/constant is set for '\' Code Display. Otherwise you are sending the characters "\" and "r". You might also have to send \n i.e. \r\n.
Message 2 of 3
(10,422 Views)

Thanks a lot!!!    It works!!!!!

Lee

0 Kudos
Message 3 of 3
(10,415 Views)