G Web Server Examples

VI Control CGI

The victrl.vi CGI can be used to set Boolean, numeric and string control values of any running VI. It can also be used to open and close panels of other VIs and to set VIs running. See the VI Control CGI Parameters page for a complete description of all parameters.

Examples:

/cgi-bin/examples/victrl.vi?HTTP+Server&SetBool,Show%20Log=on
Turns on the Server Log button in the HTTP Server VI.

/cgi-bin/examples/victrl.vi?HTTP+Server&SetBool,Show%20Log=off
Turns off the Server Log button in the HTTP Server VI.

/cgi-bin/examples/victrl.vi?HTTP+Server&SetBool,Show%20Log,toggle
Toggles the value of the Server Log button in the HTTP Server VI.

/cgi-bin/examples/victrl.vi?name=../examples.llb/Multiple%20Waveforms.vi&command=run&open
Opens the VI Multiple Waveforms.vi in the examples.llb library and starts it running.

/cgi-bin/examples/victrl.vi?name=../examples.llb/Multiple%20Waveforms.vi&command=run&open&redirect=/examples/victrlpl.htm
Opens the VI Multiple Waveforms.vi in the examples.llb library and starts it running and displays the page /examples/victrlpl.htm in the browser.

/cgi-bin/examples/victrl.vi?name=Multiple%20Waveforms.vi&command=close
Closes the panel of the VI Multiple Waveforms.vi.


© National Instruments