G Web Server Examples

CGI Examples

The following are more advanced CGI VI examples. You can use them as the starting points when developing your own CGI VIs.

Building HTML Documents

Directory Listing CGI
Generating HTML with links to itself.

Password CGI
Requiring a user authentication and returning error status header.

Comments CGI
Generating and processing an HTML form.

Executing Virtual Instruments

Run Test CGI
Executing Tests from a CGI.

One Shot DAQ CGI
Executing acquiring data from a CGI.

Controlling Other VIs

Specify Plots CGI
Toggling buttons on a running VI.

VI Control CGI
Opening, closing, executing and setting control values on arbitrary running VIs.

Maintaining State Information

School Survey CGI
Using Server-Side Cookies to maintain state information.

Customized Page CGI
Using Client-Side Cookies to maintain state information.

Returning Panel Images

Counter CGI
Returning panel images from a CGI.

CGI Animation


© National Instruments