LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Vison Aquisition VI not working with an Event case

Currently, I have a Vision Acquisition express VI in my code, but whenever I add an event case the Vi completely halts. Only when I activate the event does the VI update. Why does the presence of an event case halt the VI and how can I fix this? It work with case structures, but I need to code for about 8 separate events, and translating them to case structures is not ideal.

0 Kudos
Message 1 of 3
(986 Views)

An event structure waits for some..... event to happen. There is a timeout event that can run if you need to do something continuously. Wire something other than -1 to the timeout node and add a case for stuff to have happen there if no other event has been triggered in that time.

0 Kudos
Message 2 of 3
(975 Views)

I suspect that your code (which I haven't seen, so this is a "guess", but I'm 95% certain that I'm correct here) is doing exactly what you told it to do.  Every time an Event is activated, your code (tries to) does what you told it to do.  

 

LabVIEW Vision is subtly different from "ordinary LabVIEW".  I was introduced to LabVIEW Vision when a colleague asked me to look at some of his (Vision) code -- and I thought "Traditional DAQ" (you don't want to know about that!) was confusing ...

 

     If you want help getting your program do "do what you want it to do", attach your LabVIEW code (preferably by compressing the entire LabVIEW Project and attaching the resulting .ZIP file) and tell us what you want to do (not to be confused with "how" you are trying to do it -- that might be 75% of the problem).

 

Bob Schor

0 Kudos
Message 3 of 3
(943 Views)