03-22-2008 11:07 AM - edited 03-22-2008 11:15 AM
03-22-2008 11:40 AM
You talks about "parallel while loops" and "outer while loop", etc. So I have a hard time imagining the program architecture. can you attach a VI or at leat an image of the diagram?
Does the "process" run in a parallel loop to the event loop? Events never get missed, it seems more that the event structure sometimes cannot execute (e.g. by poor dataflow design). Is the event structure inside case structures or inner loops for example? Are you sure all events complete successfully?
Are your configuration VIs modal? If not, it could be that while the FP of a subVI loads, you place focus on the toplevel VI and the subVI is covered up and remains open? This will prevent the event from completing. Have you tried switching to execution highlighting when it gets stuck to see what's going on on the diagram?
Where exactly is the 1000ms delay? If this is inside the event loop you might delay the event from executing. An event loop should not have any delays. If you need to spin it at regular intervals in the absence of events, use the timeout event. Are you locking the front panel until events complete?
03-22-2008 12:03 PM
03-22-2008 12:10 PM - edited 03-22-2008 12:14 PM
03-24-2008 08:10 AM
03-24-2008 12:19 PM
Hi Jamie,
As PNT mentioned, the front panel becomes locked during execution if you have it set to "lock front panel until event completes". The fact that the front panel remains locked when it hangs implies that the event is being triggered but not completing. In addition, you noted that the event occurs but stops at the entrance to the sub VI while using Highlight Execution.
What I think is happening is that the sub VI must be running elsewhere, as Jeff mentioned, and thus cannot be accessed from within the event structure. If you cannot figure out a way to close it, you can set the VI property to "reentrant", meaning that the VI can be accessed from multiple places at once.
I hope this helps a little. Regards,
Lauren
03-24-2008 06:58 PM
06-30-2008 11:45 AM
Hi
I have an event structure inside the while loop.In the event structure i have a case where the event to happen when the ok button value changes(placed ok button between while loop and event structure).In the FP i changed the mechanical action to latch when pressed.
My problem is once i start the program at the moment i need to press the Ok for the event to happen.Pls suggest why is it like that
Thanks
06-30-2008 11:48 AM
06-30-2008 11:49 AM
sorry i forgot to add a word in the previous message
Hi
I have an event structure inside the while loop.In the event structure i have a case where the event to happen when the ok button value changes(placed ok button between while loop and event structure).In the FP i changed the mechanical action to latch when pressed.
My problem is once i start the program at the moment i need to press the Ok twice for the event to happen.Pls suggest why is it like that
Thanks