I am using labview to send command and received respond from a linear stage through serial port. Since I need to get the positional reading while the stage is in motion, I have to keep asking the stage to send back the reading. The question I have is that if i keep one serial reading runing, is that possible to keep using srial write function to send command as the same time? If that is possible, is there anything particular that I need to pay attention to ?
when the serial read function reads a terminate character( so the serial read function stop reading), is it possible to stop a while loop at the same time? If possible, how? can anyone help me ?
Hi zhao.lin, yes it is possible. Search in the received string for you termination character, if you found it, then you can stop the loop. See the attached picture, it shows one solution.