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

read serial port

If that works ok except for the last instruction I think you should add on the .txt file a \r at the end of your txt file.

As you are getting the data previous to the /r pattern match the last instruction is not read if you dont put the /r at the end.

Can you try that to see if that works?

Regards,

Jaime Cabrera

NI Applications Engineering

Regards,

Jaime Cabrera

NI Applications Engineering Spain
0 项奖励
11 条消息(共 12 条)
702 次查看
Hello. The program works thanks to your advice very well. Now i have another question. I want to read the answers of the robot, and i have made a while loop, like the example. The problem is that only works for one instruction, and stops. Do you know what is the problem. Thanks for all.
0 项奖励
12 条消息(共 12 条)
657 次查看