LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Function similar to InstallComCallback?

In LabView 6, is there an event-based method to be notified of a certain number of bytes in the serial port buffer, similar to the InstallComCallback function of LabWindows/CVI?
0 Kudos
Message 1 of 2
(2,542 Views)
There are functions to read the actual number of bytes in the serial port input buffer.

If you want to trigger the execution of a VI when a set number of bytes is received, you have to implement the callback functionality. Write a VI that reads this number of bytes at the serial port. As long as these bytes are not received (or timed out), the VI waits. A reference to the VI to be called can be given to the serial waiting VI. When the required bytes are received, call the VI by reference. The VI have to run in parallel with the rest of the code.
I've tried to be clear but it is not to easy to describe how to do this. Post again if you need. If you explain why you want to do this, maybe there are better solutions in LabVIEW than to mimic procedural langua
ges behavior.


LabVIEW, C'est LabVIEW

0 Kudos
Message 2 of 2
(2,542 Views)