LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Access LabVIEW from other PC via ActiveX

Hi guys

 

I have a job to do for which I couldn't find any information anywhere else. 

 

The arrangement is the following: I have two computers that are connected with each other via ethernet. On one computer MATLAB is installed. With this computer I would like to access LabVIEW VI's by which are located on the second computer by means of using ActiveX. 

 

I tried to create an ActiveX DCOM object in MATLAB as following

 

      labObject =actxserver('LabVIEW.Application', '192.168.0.2')

 

and got this error message

 

??? Error using ==> actxserver
Server creation failed. Invalid ProgID 'LabVIEW.Application'

 

Obviously I don't have the necessary ProgID in the registry or I try to use the wrong one (but I'm pretty sure it's this one). 

 

My question now is, whether - and if yes how - I can achieve to get the required ProgID without installing LabVIEW on the computer where MATLAB is installed. I installed the run-time engine 8.6.1 (corresponds to the LabVIEW version) and I've got the Application Builder which I assume I could be somehow helpful.

 

Any help and hints are highly appreciated. Thanks!

 

Ralph

 

 

 

 

0 Kudos
Message 1 of 5
(2,909 Views)

You need to find an ActiveX snooper on the target machine to see if you can find the ID.

 

I'm not familiar with ActiveX beyond very basic interaction with MS products.

 

Sorry!

 

You are running LabVIEW 8.6 which in that version NI added a featured called "Web Services."  With Web Services you can communicate to a VI via the HTTP protocol and interpret the XML that is returned.  I think that Web Services have better all-around documentation and would involve a lot less trial-and-error than ActiveX.  Also, Web Services are cross-platform unlike ActiveX which is only on Windows.

0 Kudos
Message 2 of 5
(2,901 Views)
I Googled "Web Services Matlab" and a lot of results came back for how to use Web Services in Matlab.  I think this would be a better approach than ActiveX.  Remote ActiveX also does not always play nicely with Firewalls and Antivirus software, since it has a history of a poor security model.  Web Services run on the same port as a web server so shouldn't be a problem.
0 Kudos
Message 3 of 5
(2,899 Views)

Tanks a lot for your tip!

 

I'll look into it and try it this way!

0 Kudos
Message 4 of 5
(2,874 Views)

Unfortunately Web Services is not included in the base version of LabVIEW. So before buying the full or professional version I'd like to try it with ActiveX.

 

What exactly did you mean by an ActiveX snooper. I couldn't really find helpful information what a snooper is.

 

Thanks in advance,

 

trakruB

0 Kudos
Message 5 of 5
(2,854 Views)