Discussion:
Wiring Event Trigger
(too old to reply)
StevenATK
2008-08-06 18:40:07 UTC
Permalink
I created a VI which performs some action when I click an OK button, and connected the OK button to an input.  The original VI works as expected. However, when I load the VI in another and wire an OK button to it.  My new VI just hangs when I click the OK button.Why?What is the correct way to "click" the OK button inside the vi?
MikeS81
2008-08-06 18:40:10 UTC
Permalink
Hi StevenATK, how do you connect the ok button to the vi? The value change event works only for the button in the "subvi (the vi with the event strucutre)" You canĀ“t simply connect another button to the input. If you want to react on other events (also other buttons) create your own user event.Can you please explain what you try to do? You can also use another event structure in your calling vi.Mike
StevenATK
2008-08-06 19:10:06 UTC
Permalink
My VI checks to see if a data file that I created is formatted correctly.  The user selects a file (with a filename control) then clicks OK.  The LED indicator activates if the check succeeded. I would like to call (or "trigger") that routine from other VI's.  How do I do that?
MikeS81
2008-08-06 19:10:08 UTC
Permalink
Hi StevenATK, in this case you can use a producer/consumer architecture. See the shipped examples for it. In the top loop you have your event structure, where you select the file to check, and send this information with a queue to the consumer loop. This part will do the time intensive work and check your file. Mike
Loading...