01-26-2009 08:54 AM
i have a problem with accesing a Labview application via VI Server and its open application reference function.
It works fine when running the vi in Labview but after building the exe it doesn´t.
Here ist an excerpt of the application.ini
I already tried changing the port numbers but i can´t open the application reference to the exe.
Anyone has an idea of how to solve this?
Thanks in advance
01-26-2009 09:04 AM
please describe what you want to accomplish.
As far as i understand your question, i'd say that you should use ActiveX for your task.....
hope this helps,
01-26-2009 09:17 AM
Check if in your Build Specifications->properties->Advanced you enabled ActiveX server
01-26-2009 09:19 AM
i want to access the front panel variables and the execution state of the application from a remote pc.
When i am doing this with a rtexe on a compact RIO it works fine, but not from pc to pc.
01-26-2009 09:25 AM
Are you using Network Variable Engine for data transfer?
01-26-2009 09:30 AM
remote control is maybe best done using the webservices or web publishing tool. You can create a webpage which includes "a link" to your VI displaying its frontpanel and even let remotly control the VI.
Other methods are possible, but i wouldn't recommend them.
If you want to exchange statusinformation/data between two LV exes running on different PC, you should use network published protocols like TCP or shared variables.
Maybe this library can help you.
hope this helps,
01-26-2009 10:23 AM
If you still want to use VI server, I think the acl (access control list) line is missing in the .ini file. You can try this, it will enable access from any machine:
Also, if you have LabVIEW running you might want to use a different port for the application. Only one application (LabVIEW or the compiled exe) can listen on one port.
Hope this helps,