In the Solution Explorer, right-click SocketClient, and select Add, then Existing Item….īrowse to select SocketClient.cs and click OK. In the Solution Explorer window pane, right-click Class1.cs (if Visual Studio 2003) or Program.cs (if Visual Studio 2005). In the New Project window, select the following items (noting the location of the file folder it is creating for you) then click OK.Ĭopy SocketClient.cs into the folder that was created in the previous step. To run using Microsoft Visual Studio 2003 or 2005įrom the Visual Studio File menu, select New, then Project. Learn how to enable Sockets communication on the PNA.įor both of the following methods, first copy the example text below into a Notepad file and name it SocketClient.cs. You can add or replace the SCPI commands in this program with your own. If the command is a query, the program will read the instrument's response. The following C# example demonstrates how to send a SCPI program to an Agilent TCP socket-enabled instrument such as the PNA or ENA network analyzer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |