G Web Server Examples

Sample Applications

The following examples demonstrate fully featured CGI application. Some application can be controlled by CGI without making any changes to the application themselves. Other applications are better implemented inside of the CGI.

Oscilloscope
This example consists of a web interface that controls an existing application. The application Demo Scope.vi did not need to be modified to make it accessible from a web site.

The example use HTML frames. The left frame displays the osciloscope VI's panel image and the right frame is used for controling the scope VI. All control is done through calls to the victrl.vi CGI VI.

Waveform Calculator
This example consists of a web interface that controls a CGI VI. The form supplies the CGI VI with parameters which the VI uses to calculate and graph a waveform and then to return the waveform image.


© National Instruments