09-16-2011 03:18 AM
Hello Everybody
I don't really get how to make use of subvi's when I use event structures in the vi?
When just making the buttons connectors on the subvi and assign controls to them the vi stops working as I expected.
I added an example vi that I don't get working as an subvi.
Thanks in advantage.
Solved! Go to Solution.
09-16-2011 03:24 AM
The VI you have attached works. Can you attach the version that does not work?
09-16-2011 03:29 AM
I dont think you generate any value change event through the input connector, as you hope to do. A semi-ugly workaround is to get the Button references and do a Value(Signal) property.
A better way if you want to handly events in a sub-vi is to register user events and send the event register-thread to the sub-vi, where you can use those events in the event structure. Check the User created event and Dynamic event examples.
/Y
09-19-2011 03:19 AM
Thanks
09-20-2011 03:10 AM
Hello,
Check that link. Maybe it will help you.
http://digital.ni.com/public.nsf/allkb/A882E27D1D7A949386256E0D0066B91A?OpenDocument
Regards,