LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Queuehandling to serial port

How do I make a queue for sending commands to the serial port?

Regards

Frode Efteland
0 Kudos
Message 1 of 2
(2,512 Views)
Use the que functions found on the Advanced -> Synchronization palette...Make a que handler that reads the que elements and writes them to the serial port and reads responses (if any), feed it with new data by inserting elements in the que from wherever you want in the rest of the code...Instead of just inserting the data meant for the serial port into the que you might want to add a header to it that enables the que handler to tag the responses and put it into a searchable buffer...that way the different parts of the application can also get the incoming response if they need to...

You can find general que examples by searching for que in the help->find example window.
0 Kudos
Message 2 of 2
(2,512 Views)