06-12-2015 03:30 PM - edited 06-12-2015 03:31 PM
Hello
I have a web service where I have to write some values to a certain VI. This VI is located in the same project, but not in the web service.
Even though I open the VI using an application reference, the web service opens the VI in the "main application instance" and not in the instance that is my actual project. The problem is that this VI has to read from a state machine, but the values are of course incorrent when it is in the wrong instance.
Does anyone know what I am doing wrong? I have attached a screenshot of how I call the VI below
Thank you,
06-12-2015 06:15 PM
06-15-2015 09:53 AM - edited 06-15-2015 09:54 AM
It sems like my initial guess is not what is causing the problem. I have changed my VI real quick so it ignores the state machine and just executes when triggerd. This works when I start the web service in debugging mode. However when I actually publish the web service, there is no reaction and it's hard to debug a published web service as far as I know?
Attached are my VI server settings, the calling VI is still the same except for the port which I changed to 3365 just to be sure.
06-17-2015 04:06 PM
Ok the problem calling the VI from the web service is solved.
I am still stuck with my original problem though. I set a state in the state machine in the main app (not as a built app, just in developer mode or however you call it). When the webservice calls the VI using the state machine, it calls it in the wrong app instance, and the state machine returns it's default value...