From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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 Kudos
Message 11 of 12
(454 Views)
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 Kudos
Message 12 of 12
(409 Views)