01-26-2009 08:54 AM
Hello,
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
------------------
server.app.propertiesEnabled=True
server.tcp.enabled=True
server.tcp.paranoid=True
server.tcp.port=3363
server.tcp.servic=""
server.vi.access="+*"
server.vi.callsEnabled=True
server.vi.propertiesEnabled=True
...
WebServer.TcpAccess="c+*"
WebServer.ViAccess="+*"
DebugServerEnabled=False
DebugServerWaitOnLaunch=False
server.ole.enabled=True
---------------------------------------------------------
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
striegler_gerd
01-26-2009 09:04 AM
Gerd,
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,
Norbert
01-26-2009 09:17 AM
Check if in your Build Specifications->properties->Advanced you enabled ActiveX server
souske
01-26-2009 09:19 AM
Hello Norbert,
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
Gerd
Are you using Network Variable Engine for data transfer?
regards
souske
01-26-2009 09:30 AM
Gerd,
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,
Norbert
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:
server.tcp.acl="290000000A000000010000001D00000003000000010000002A10000000030000000000010000000000"
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,
Daniel