03-16-2009 08:28 AM - last edited on 01-13-2025 08:36 AM by Content Cleaner
Hi,
I'm developing a remote monitoring application using a cRIO-9012 and assorted I/O modules. I wanted to use the web services functionality on the cRIO but I'm having a hard time in a couple of areas. The first is how to get the web service running on the cRIO. I found a couple of general tutorials but nothing specific to the cRIO's systems. My second issue is how to URL map a "Put" into a web service. I've done the local host tutorial running a web service on my development machine using the "Get" but would like to experiment with writing a digital output to a local daq card using the web service. Below are two of the tutorials I've been looking at.
http://zone.ni.com/devzone/cda/tut/p/id/7747
http://zone.ni.com/devzone/cda/tut/p/id/7350
Any assistance would be appreciated,
Mark
Solved! Go to Solution.
03-16-2009 11:32 AM
Mark,
The cRIO 9012 runs web services very well -- it was the main cRIO test platform the web services team used during development. To enable web services on it, you must make sure you:
1) Install the web services feature itself using Measurement Automation Explorer. This gets the proper software and data files installed to the cRIO.
2) Create a LabVIEW Project and add the cRIO to it as a new Target/Device.
3) Right-click on the cRIO's icon in the Project, click Properties, and select the Web Server configuration page.
4) Enable the web server with the checkbox, and farther down on the page, enable the web services checkbox. Close the properties pages.
5) Deploy the configuration to the target, by right-clicking on the target in the Project and selecting Deploy. This downloads the new configuration to the target, and enables the web server.
6) You should be able to test the web server itself by pointing a browser to the target (specifying the port you selected if you enabled a port other than 80) and seeing the default HTML page returned.
At this point, you should create your web service per the tutorials, build it, then use its Deploy option to deploy it.
Note that with 8.5, GET and POST operations work fine, but PUT and DELETE were both broken 😞 -- these were fixed in 8.6.1.
I hope this helps get you going with LabVIEW web services.
Cheers!
-- Michael Watson
03-16-2009 12:22 PM
Hello Michael,
I've made more progress in the last 5 minutes than the previous 2 days.
Thank you very much for your help.
Mark
03-21-2012 11:59 PM
i am also trying to work the same steps to deploy a project as web service but found no results..
i followed all the steps and when i finally enterd the url it did not show the page. what can be the problem please help.
03-22-2012 05:44 PM
Hi,
What cRIO model do you have? What LabVIEW version? What operationg system are your working on?
You said you followed these steps?
1) Install the web services feature itself using Measurement Automation Explorer. This gets the proper software and data files installed to the cRIO.
2) Create a LabVIEW Project and add the cRIO to it as a new Target/Device.
3) Right-click on the cRIO's icon in the Project, click Properties, and select the Web Server configuration page.
4) Enable the web server with the checkbox, and farther down on the page, enable the web services checkbox. Close the properties pages.
5) Deploy the configuration to the target, by right-clicking on the target in the Project and selecting Deploy. This downloads the new configuration to the target, and enables the web server.
6) You should be able to test the web server itself by pointing a browser to the target (specifying the port you selected if you enabled a port other than 80) and seeing the default HTML page returned.
What do you see instead of the default HTML page? Can you post a screen shot? What software do you have installed on your cRIO? Can you post a picture of your Web Server configuration page? Does the new configuration deploy successfully?
03-23-2012 12:58 AM
crio model -9014
labview version 2011
windows7
ni application webserver 11.5.0 software installed on crio.
A vi for power measurement of a simulated signal is build and deployed on crio.
followed steps to run publish this vi as web service. but on the web page error shows invalid ip address/ or no additional plug in available for this.
we have run the crio webserver and it is running perfectly fine.
still html page not showing
Do we have to create any other vi containg some http or data socket vis or simple power measuring vi can get published showing resulted measurements on the web page.
I am attaching the vi we are trying to publish on webpage using crio webserver. Please suggest some modification if required any.
03-23-2012 05:36 PM - last edited on 01-13-2025 08:36 AM by Content Cleaner
From the attached VI, it looks like you have not connected up the connector pane. You need to do this to be able to access the inputs/outputs of your VI on the web service.
Do you have the Microsoft Silverlight browser plug-in installed?
Here's a detailed tutorial for LabVIEW 2011 web services. This one is more detailed then the others mentioned on the post: http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/build_web_service/