03-08-2010 12:18 PM
I am building a LV2009 web services application (main.exe + web services). The web service VI's share globals with the main.exe. I think that the web services run under a separate application instance, therefore using globals will not work directly. My idea was to wrap the global calls on the web service side inside of VI server calls to main.exe.
Here's what I was thinking:
So, to get this to work properly, I open an application reference (default port 3363) and VI reference (VI is in memory in the main.exe). I read the global control value, close the references, and convert the control value into the correct data type.
From all that I read, I should be able to do all this within the LabVIEW development environemnt with the service deployed to the local machine. My LV has both the web server and VI server (port 3363) enabled.
I built and deployed the service VI after first disabling the VI server within the service's project (I'm not really sure that this really matters).
I run my main.exe (.vi) and attempt to call the service, but I get error 1004 (Open VI Reference - VI not in memory).
I guess my problem seems to lay around the "Open Application"...how should I open an application reference from a web services VI?
TIA,
James
Solved! Go to Solution.
03-08-2010 12:35 PM
03-08-2010 12:38 PM