10-21-2009 09:55 AM
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
10-21-2009 10:40 AM
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.
10-21-2009 10:43 AM
10-22-2009 05:17 AM
Tanks a lot for your tip!
I'll look into it and try it this way!
10-22-2009 10:25 AM
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