There are two versions of the Measurement Demo program which perform the same set of steps but differ on the way they determine when a measurement has completed. The "MeasDemo" program polls the Status register, waiting for MeasurementDone. However, the "MeasDemoEvents" program registers an event handler that is notified when the Status register changes (more efficient than polling and allows your code to do other things in the mean time).
Both versions of the Measurement Demo perform the same set of basic steps:
- Start the 89600 VSA
- Set up a measurement
- Start a measurement
- Wait for the measurement to finish
- Transfer measurement data to the example program
- Access the measurement data in the example program
- Exit the 89600 VSA
In addition, both versions of the Measurement Demo are provided as C and C# programs. The solution files, which can be opened with Microsoft Visual Studio 2010, are located in the following directories.
C# programs
- MeasDemo: %PROGRAMFILES%\Keysight\89600 Software 20xx\89600 VSA Software\Examples\DotNET\C#\MeasDemo
- MeasDemoEvents: %PROGRAMFILES%\Keysight\89600 Software 20xx\89600 VSA Software\Examples\DotNET\C#\MeasDemoEvents
20xx is the version number of the 89600 VSA.
C programs
- MeasDemo: %PROGRAMFILES%\Keysight\89600 Software 20xx\89600 VSA Software\Examples\DotNET\C\MeasDemo
- MeasDemoEvents: %PROGRAMFILES%\Keysight\89600 Software 20xx\89600 VSA Software\Examples\DotNET\C\MeasDemoEvents
20xx is the version number of the 89600 VSA.
![]() |
You will need to copy the contents of the Examples directory to your Documents directory or some other location that is writable before compiling and running the example programs since the contents of the VSA installation directory are read-only. The examples depend on API interfaces under the Interfaces directory of your VSA software installation, so you may also need to repair references to these interfaces before the example will run. |