LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

active x external event?

Hi,

We are trying to use events from a Thorlabs stage T25X with ODC001 controller, it's an Active X communication mode.

We are able to use the local events from labview but we don't know how to find and use the event provide by the stage (what we call external events?)

It's an event call Movecomplete (This event is fired by the system whenever the channel specified by the lChanID parameter has completed its move sequence).

Thanks for your help

Regards

Julien and Dorian

 

0 Kudos
Message 1 of 4
(2,755 Views)
You can register for ActiveX events. There's a couple of shipping examples that show this. Open the Example Finder (Help -> Find Examples) and search for "ActiveX". The examples are "ActiveX Event Callback for Excel" and "ActiveX Event Callback for IE".  Post back if you still have questions.
0 Kudos
Message 2 of 4
(2,739 Views)
I'm running into the same problem, but unfortunately those examples don't shed too much light on how to implement this.  I'm fairly new to LabView and a little lost, any elaboration would be appreciated.
0 Kudos
Message 3 of 4
(2,615 Views)

You should understand how to use events from the component you try to use. LabVIEW can't show you how to do that exactly because each ActiveX component is different. The examples show IMHO pretty well how the event handling should be implemented on the LabVIEW side, but the ActiveX compoenent details you will have to get from the documentation that came with it.

 

Maybe you can show us some code and tell us what does not seem to work. Without that it simply is not possible to give you more detailed advise (unless someone would have been using that specific component already, but lets be realistic, with zillion ActiveX components the chance is not so big that there is someone using exactly that component in LabVIEW AND reading this board AND having time to spend to write an answer).

 

Rolf Kalbermatter

Rolf Kalbermatter
My Blog
Message 4 of 4
(2,601 Views)