ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does LabVIEW have ComCalbacks like LabWindows CVI?l

I have a program written in CVI that uses three ComCallbacks and it works nicely.  Now we want to write a similar program under LInux, but CVI doesn't run under Linux.  I looked into LabVIEW, but the serial VIs don't seem very sophisticated.  The new program may have eight serial inputs and I can't be expected to poll them. 
 
Maybe I'll just go back to CVI.  C code is tricky, but I have never gotten stuck on a project.  I thought that LabVIEW could do everything??  Help!
 
Ian
0 Kudos
Message 1 of 2
(2,528 Views)

hi there

the serial VIs are just for backwards compatibility. to do more sophisticated stuff like events you have to use the VISA functions (VISA is a standard for serial interfaces like COM, GPIB etc.). see Instrument I/O -> VISA -> Advanced -> Event from the functions menu palette.

attached is a simplified VI from the LabVIEW examples that waits for a single character on the specified COM-Port. you can specify different events.

please read the online help of the functions for more information.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 2 of 2
(2,517 Views)