10-20-2015 02:36 PM
I need to communicate with a device via serial that sends messages back and forth but also sends a serial break/pause/break/pause combo that I need to listen for. I have never worked with serial breaks before but the only VI I found that appears to detect them is the VISA Wait on Event VI with the Serial Break parameter. I'm not sure I understand how I could detect a serial break but also be reading and writing messages at the same time while waiting. Is this not possible?
Solved! Go to Solution.
10-20-2015 06:11 PM
If you use multiple loops, I think you can do this. You use 1 loop for checking to see if there is data and 1 loop for looking for the serial breaks. You then use a queues, notifiers, or events to let whoever needs to know what you encountered.
10-21-2015 09:14 AM
I've not tried this, but the VISA Palette has Events, one of which is Serial Break, so you could "trap" these in an Event loop ...
Bob Scor
10-21-2015 11:25 AM
Ok. I will try using multiple loops. I did not think I would be able to read from and wait on the same serial resource in separate loops, but I'll give it a shot!