ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 3 条)
10,592 次查看
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.
2 条消息(共 3 条)
10,591 次查看

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

Lee

0 项奖励
3 条消息(共 3 条)
10,584 次查看