Introductory Programming Examples

The following topics introduce some examples of common communication with instruments.

Example of Message-Based Communication

Example of Register-Based Communication

Example of Handling Events

Example of Locking

To help you become comfortable with VISA, the examples avoid VISA terminology. VISA Overview looks at these examples again but using VISA terminology and focusing more on how they explain the VISA model.

These examples show C source code and Visual Basic syntax.

The Visual Studio 2005 VISA examples are in the following directories:

C:\Documents and Settings\All Users\Documents\National Instruments\NI-VISA\Examples\DotNET2.0

C:\Documents and Settings\All Users\Documents\National Instruments\NI-VISA\Examples\MStudioVC2005

The Visual Studio 2008 VISA examples are in the following directories:

C:\Documents and Settings\All Users\Documents\National Instruments\NI-VISA\Examples\DotNET3.5

C:\Documents and Settings\All Users\Documents\National Instruments\NI-VISA\Examples\MStudioVC2008