04-29-2013 11:53 AM
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
05-03-2013
08:00 AM
- last edited on
01-13-2025
08:48 AM
by
Content Cleaner
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.