LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

asynchronus functions and Active X

When using a Register Event Callback block the Ref VI input requires a function however the Static VI Reference I am hooking it to is showing up as an asynchronus function; I can't wire them together. I'm not sure why it is asynchronus since there is only one path for the signal to flow. I have attached the reference VI. Any suggestions?
Thanks,
Lou
0 Kudos
Message 1 of 4
(2,855 Views)
I do not follow exactly what you are describing. I do know that the call back VI can be called at anytime by the ActiveX object. It does not matter what part of your VI is currently executing. If the event occurs, the callback VI will run.
0 Kudos
Message 2 of 4
(2,855 Views)
I got it working. I did not know you could automatically create the reference function by right-clicking on the callback block.
Thanks,
Lou
0 Kudos
Message 3 of 4
(2,855 Views)
Creating Call Back VIs without using the utility is very, very difficult. It did not even occur to me that you were not doing it this way. As a note, you can pass data into the callback by bundling it together and sending it to the User Parameter terminal. If you decide to change the cluster later, you will need to recreate the callback VI. You can save time in this case by control-c on all objects in the old VI and control-v in the new VI.

Have fun with the callbacks. They are really cool.
0 Kudos
Message 4 of 4
(2,855 Views)