LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

maintain back ground activity while file dialog pop is open

Solved!
Go to solution

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..

0 Kudos
Message 1 of 9
(3,888 Views)
Solution
Accepted by topic author alpony01

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 9
(3,886 Views)

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..

0 Kudos
Message 3 of 9
(3,869 Views)

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.

0 Kudos
Message 4 of 9
(3,862 Views)
Also, the file dialogue completely blocks the ui thread. This can block other loops if you have a property node or something else which needs the ui thread. ' Open vi reference '. Will not execute while a file dialogue is open in any loop.

Posting from mobile so it is all from memory and there may be something else.
0 Kudos
Message 5 of 9
(3,849 Views)

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

0 Kudos
Message 6 of 9
(3,822 Views)

thanks for you suggestion..i have been unable to make them work for me and am running out of time

0 Kudos
Message 7 of 9
(3,820 Views)

you need to post the code you are working on, at least post the part which has the problem.

Message 8 of 9
(3,809 Views)

i have figured it out,,,there was a value that was not initialised that was making the second loop stop..thank you!

0 Kudos
Message 9 of 9
(3,789 Views)