LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i request an input of data from a deployed web service via a html

Hi all, I am currently having trouble with a web service. I want a client to be able to input a numerical value for a control in a deployed VI.

At present i have one main vi that generates a signal and i've collected waveform data and displayed this data on a a chart. The web service uses a static folder containing html and javascript files. The html file calls the js file which parses the waveform data and returns to html to be stored as a chart_div. I have all the controls and indicators in one VI, connected by terminals using GET method.

I am looking for a way of scripting a request form so that when called by the html file, the client user can input a control and change the values on the waveform graph. I also have an update button that requests updated data. 

If anyone could suggest a method of how to accomplish this it would be SO helpful

 

Thanks, Chris

0 Kudos
Message 1 of 2
(2,330 Views)

Hi Chris,

 

I take it you are using the RESTful API method to GET the data. In that case you shoul be able to perform a http POST from your js code in order to update the controls.

 

This could be done as form components are updated, or after a submit button is pressed (I'm sure you are familiar with this part).

 

Please see here for more information: http://zone.ni.com/reference/en-XX/help/371361J-01/lvhowto/build_web_service/ 

 

I hope this helps.

0 Kudos
Message 2 of 2
(2,285 Views)