Introductory Programming Examples

NI-VISA

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.

For Visual C# and Visual Basic .NET examples on Windows, go to the following directory: Program Files\National Instruments\MeasurementStudioVS2003\DotNET\Examples\Visa.