VectorStar™ MS4640A SeriesMicrowave Vector Network Analyzer : Appendix C — Programming with VISA/C# : Programming Examples
 
Programming Examples
Getting Started
We’ll create a few simple Console-based programs to demonstrate the use of the NI-VISA driver for controlling VectorStar.
Getting Started – Console Application Project
Create a new Console Application Project.
 
Getting Started – References to VisaNS
Add references for National Instruments Common and National Instruments VisaNS. This shows the .NET 2.0 versions of these DLLs.
 
Getting Started – Solution Explorer References
For simple programs (like all the examples below) only these three references are required.
 
If you have the references set up correctly you can copy and paste the code into the Program.cs file. Then Build the solution and run (Start Debugging). Each example includes the complete program code.
 
Getting Stgarted – Building the Solution
Build the solution.
 
Getting Started – Debugging
Start Debugging.