04-24-2014 06:06 AM
Solved! Go to Solution.
04-24-2014 06:21 AM
No VI attached. Maybe try zipping it up to post the code.
My gut feel is that you want to make an event case to handle both controls' value change. Have the terminals inside of the event case, do whatever comparison you need and show the dialog if the comparisons pass.
04-24-2014 08:04 AM - edited 04-24-2014 08:08 AM
Hi sorryyyyy that didn't upload the vi.. here there are.. So like you said, I want to handle both controls to trigger the event and show pop up msg without interrupt the main vi.. how should I do it?? thank you..
04-24-2014 09:09 AM - edited 04-24-2014 09:14 AM
you implementation of using value signal and event structure is wrong, try this....put the value signal property in a case, add that value to your event structure.
04-24-2014 09:36 AM
Hiii thanks sooo much for the correction! I would like to do a pop up msg to the event using sub vi.. how should I connect through it? thank you!
04-24-2014 09:47 AM
@yee0722 wrote:
Hiii thanks sooo much for the correction! I would like to do a pop up msg to the event using sub vi.. how should I connect through it? thank you!
maybe instead of me writing, "PUT MESSAGE HERE"...I should have correctly stated,"PUT SUB.VI HERE". I hope that is clear enough?
04-24-2014 11:58 AM
Hi first of all sorry for that lousy question. I actually means how to create a pop up sub vi that will not interrupt the main vi.. Because Itry to use dialog box, and it make the main vi stop until the button press.. can you give me some hint on it?
04-24-2014 12:18 PM
Hi as attached, I make the pop up msg using sub vi, but the pop up result was wrong, it continue to pop up even in false case.. how should I modified at the false case? thank you..
04-24-2014 12:19 PM
There are several ways you can do it. First you have to configure your sub-vi so that it does whatever you want when it runs (in the vi properties, top most window for example) and to make sure that it closes completely when finished (when clicking the "OK" button for example).
You than need to make an asynchronous call to the sub-vi. There are several ways to do it. My favorite one is shown below. You go in the "Application control" sub-palette and select Static VI reference. I like this approach because it keeps track of the sub-vi path for you, as long as the sub-vi is in the same project. You then drag the sub-vi onto the empty square that will changes to your sub-vi icon. You then connect to an invoke node from the same sub-palette and select run VI. Set "Wait Until Done" to false and the main VI will keep running after starting the Sub vi. Set "Auto Dispose Ref" is the easiest way to go. Otherwise you have to keep track of the sub-vi reference and close it yourself when you're done.
04-24-2014 12:36 PM
Hi first of all really thank you so much for the solution. I just put the sub vi with build text inside, somehow the event still not able to execute it..