LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get the measured data of a compiled LabView application via active X?

I want use data measured by a compiled labview application in a visual basic program by the way of active x. i your knowledge base is only explained how to do this with a notcompiled vi
or how to call a compiled vi but not how to get the properties.
0 Kudos
Message 1 of 5
(2,960 Views)
labview application Inherit the same properties and method as of labview VI. Attched is an example that would give you idea on how to make calls to LV exe ActiveX Server using VB as ActiveX client.

A Rafiq
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 5
(2,960 Views)
Thank you for the answer - but I'm not 100% satisfied - I have got only a labview run time machine and only the .exe and the typelibrary and a .lrm (?) - file , because someone else did the labview programming for me. i don't have got any .vi files.
0 Kudos
Message 3 of 5
(2,960 Views)
This is the answer that I was desparately looking for during the past two weeks.
Too bad that it wasn't in the knowledgebase.
We need more of these examples, that show different ways of doing things. (DMK)
0 Kudos
Message 5 of 5
(2,960 Views)
A. Rafiq's reply / answer is just exactly what I was looking for as well. I'm using it with VBA for an Excel application.

Note that the differences between this and the "not compiled" VI is that the application is the compiled application name, versus LabVIEW.


Additional information:
Remember that when you build the application, it puts the VI(s) in a wrapper app, which requires the Run-Time Engine.
In order to access the VI, you have to get a reference to it. Doing this starts the app.
Now the VI's methods and properties are exposed.

With the GetControlValue and SetControlValue
methods of the VI you can access all of the controls on the front panel.
Remember that the values returned from the GetControlValue method are of type Variant.
If you find you h
ave some trouble getting data in or out of your (LabVIEW) ActiveX server app, you can also easily write a VI to access the server.

Remember that if you want to run these, the ActiveX server (LabVIEW) and the VB client app, on a remote machine you must:
Install on the target machine the LabVIEW RTE (which you can include with Application Builder.
Running the server app once on the remote machine before running the client is a way for the server app to register itself (at least in LV 5.1).
0 Kudos
Message 4 of 5
(2,960 Views)