From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LV2016 RT Creating startup with web services not working

Solved!
Go to solution

Hello,

 

I have a working project on a cRIO-9113 with the following:

- a VI that's doing the work (waiting for user command to start a test, write to disk)

- a web service that gets the start command from a html page form via a REST command

- a Globals.vi that transfers the commands and responses between the two

Everything is working great when deploying from Labview Development. But when I want to create a standalone (startup) so the user does not need Labview to run the test, the communication is not working anymore. I can connect to the page, but when I start the test, nothing happens and the global variable does not change.

 

a) Is there anything I have to do to make global variables work?

b) Is there a better way to communicate between the web service and my VI?

 

Thanks!

 

0 Kudos
Message 1 of 3
(2,650 Views)
Solution
Accepted by topic author oliverhurtig

Hi

If your web service actually receives the command it should not be a problem passing this on with a global variable as long as the other VI, the one which start the test, is running and reading from the global variable.

 

Since it worked before it seems like the problem would be with constructing the standalone.

When given the url command you actually reach a page or do you get no page found? 

Perhaps this page can help you, https://zone.ni.com/reference/en-XX/help/371361L-01/lvconcepts/ws_apps_installers/ ?

 

You can also try to right click the web service and go to App. Web Server->Manage Web Server go to configuration and select the port you selected in the build specification and then go to Web Services Management and make sure it is published. Also the standalone should publish the service so unpublish the one from the project and then try to run the standalone to make sure it is published from the right place.

 

Best regards

Gustav

 

 

Message 2 of 3
(2,567 Views)

Actually, I was able to access the site, I had already done most of what you suggested.

But knowing that it should work pointed me in the right direction: it was actually communicating, and I had a problem in the default value of a control that made it impossible to see that the web service part was working.

0 Kudos
Message 3 of 3
(2,545 Views)