LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

call library function holding up VI execution

Hello,
 
I am calling functions from a dll to access a frame grabber camera based on an input trigger.  I can make the function calls using the Call Library Function just fine my only problem is that the function holds up the entire VI while it is waiting for a trigger.   Is there any way to solve this?  The frames we are trying to grab only happen once every couple of seconds and the VI does not respond inbetween grabs.
 
Any help would be appreciated.
 
 
0 Kudos
Message 1 of 3
(2,691 Views)
You can put the frame grabber functionality in a separate loop that communicates with the interface through a functional global or something of that sort.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 3
(2,678 Views)
Also try setting the Call Library Function Node to run reentrantly, rather than in the UI Thread. Making this change will turn the node yellow.

If your Call Library Function Node is set to run in the User Interface Thread (the default), then LabVIEW's User Interface will be unresponsive until the node finishes executing.
Jarrod S.
National Instruments
0 Kudos
Message 3 of 3
(2,673 Views)