C# Example Programs
Two example Visual Studio Projects written in C# are provided in the %PROGRAMFILES%\Agilent\89600 Software 20xx\89600 VSA Software\Examples\SCPI\C#\ folder.
SCPI Measurement Demo
An example Visual Studio Project written in C# is located in the %PROGRAMFILES%\Agilent\89600 Software 20xx\89600 VSA Software\Examples\SCPI\C#\ScpiMeasDemo\ folder that demonstrates the following concepts:
- Connecting and disconnecting the SCPI session with basic exception handling
- Setting the instrument timeout period
- Presetting the VSA application and measurement
- Checking to see if the VSA application is running and how to start the VSA if it is not running
- Starting a measurement and waiting for operation complete
- Querying trace data in ASCII and binary data formats
This example program uses the VISA COM library for IO control.
Channel Quality Measurement Example
A second example Visual Studio Project written in C# is located in the %PROGRAMFILES%\Agilent\89600 Software 20xx\89600 VSA Software\Examples\SCPI\C#\ChannelQualityScpiMeasDemo\ folder that demonstrates the following concepts:
-
Using the Channel Quality measurement of the VSA to make a relative Group Delay measurement
-
Controlling a signal generator over SCPI and parsing values from one SCPI instrument (signal generator) to use with another (VSA)