04-23-2015 04:44 AM
If i use a labview pop for example file dialog pop up and i put in an event stracture,the event case doesn't come back to the timeout case till the user closes the pop up(it could be by clicking ok or cancel)..is there a way of making it that as the event structure waits for the action from the user it waits from the timeout case..i have a tcp communication that timeout after 2 seconds if no packets are sent over it after 2 seconds.thank you..
Solved! Go to Solution.
04-23-2015 04:48 AM
Hi alpony,
i put in an event stracture,the event case doesn't come back to the timeout case till the user closes the pop up
Sure: THINK DATAFLOW!
.is there a way of making it that as the event structure waits for the action from the user it waits from the timeout case.
Yes.
Use parallel loops. Use an event-driven state machine. Use producer-consumer scheme…
04-23-2015 05:37 AM
I am sorry but can you give me an example with a pop up where the pop in one loop doesn't block the exection of the other loop?..i have tried by putting a probe in the second loop to observe any action in it but when the pop up comes up in the first loop,i dont see any action in the second..
04-23-2015 05:49 AM
Going by what you're saying, you have your event structure loop inside your communcation loop. You need to have your event structure loop outside of your comm loop. Don't forget to add an Exit event to the event structure, so that when you leave the communcation loop, the pop up loop also exits.
04-23-2015 05:59 AM
04-23-2015 07:48 AM
i have just seen this http://forums.ni.com/t5/LabVIEW/Labview-stops-execution-of-one-loop-when-a-dialog-box-is-called/td-p... had a problem similar to mine...so i think am gonna have to create my own dialog box
04-23-2015 07:49 AM
thanks for you suggestion..i have been unable to make them work for me and am running out of time
04-23-2015 08:20 AM
you need to post the code you are working on, at least post the part which has the problem.
04-23-2015 09:35 AM
i have figured it out,,,there was a value that was not initialised that was making the second loop stop..thank you!