11-16-2009 03:40 PM
I am doing a project wich there are two threads: an UI thread and a cyclic serial port reading, but the UI use also the same serial port in order to send commands to device. Could somebody show me an example vi or how to do it?
11-16-2009 04:01 PM
Use a loop to continuously read the serial port. Analyze the result and pass commands-actions to every other vi or loop required.
The "write to port" sould be in one place, in your program, also. If you need to write to port from different places in your program, create a sub vi, called "write to port" and call it from wherever you need to.
There are examples in LabVIEW, for writing and reading the port.
Also you will find a few in this forum
11-16-2009 05:04 PM