取消
显示结果 
搜索替代 
您的意思是: 

how to trigger value change in event structure

已解决!
转到解答
Hii everyone, as the title, how should I trigger the value change event to pop up a message.. below is my connection.. I want to trigger the event structure to pop up the sub-vi, when the flame and led are TRUE state... I using property node but still the event structure not able to execute.. How should I connect? Thank you very much...
0 项奖励
1 条消息(共 23 条)
12,135 次查看

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.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 项奖励
2 条消息(共 23 条)
12,130 次查看

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

下载全部
0 项奖励
3 条消息(共 23 条)
12,108 次查看

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.

fire.png

4 条消息(共 23 条)
12,085 次查看

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! 

0 项奖励
5 条消息(共 23 条)
12,070 次查看

@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?

0 项奖励
6 条消息(共 23 条)
12,061 次查看

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? 

0 项奖励
7 条消息(共 23 条)
12,042 次查看

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

下载全部
0 项奖励
8 条消息(共 23 条)
12,035 次查看
解答
接受人 yee0722

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.

 

fire_BD.png

Marc Dubois
0 项奖励
9 条消息(共 23 条)
12,034 次查看

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

下载全部
0 项奖励
10 条消息(共 23 条)
12,026 次查看