04-13-2022 03:34 PM
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.
04-13-2022 03:51 PM - edited 04-13-2022 03:52 PM
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.
04-13-2022 09:10 PM
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