silmaril Posted May 19, 2010 Report Share Posted May 19, 2010 (edited) Event Callback VIs are a great way to handle events. Registering them is quite simple, if you have a callback VI of the correct type. This type depends on the event you want to capture. There is a very easy way to get a VI refnum of the correct type: just click "create constant" on the VI Ref input. But this doesn't give you the VI, it only gives you the correct type of reference. Is there any simple way to get a VI of the correct type, if you have this reference? I know one way, but it's quite awkward: Connect this constant to a Call By Reference Node. Now you've got all the inputs and outputs to create controls and inidicators of the correct type. Once you've got those, connect them to the appropriate connectors (don't forget to select the correct pattern) and make shure they are recommended. Now you can delete everything but the controls and indicators and start coding. There must be an easier way to achieve this! What am I missing? Edit: Sorry for the huge pictures. I have no idea what happened to scale them in that strange way... Edited May 19, 2010 by silmaril Quote Link to comment
Aitor Solar Posted May 19, 2010 Report Share Posted May 19, 2010 (edited) Right-click in the Register Event Callback node (put the mouse over the "VI Ref" input) and select "Create Callback VI". Et voilá Saludos, Aitor Edited May 19, 2010 by Aitor Solar 2 Quote Link to comment
silmaril Posted May 19, 2010 Author Report Share Posted May 19, 2010 Thank you very much for helping the blind! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.