HP manual Create a New Project and Reference the Driver

Models: Drive

1 114
Download 114 pages 61.75 Kb
Page 30
Image 30

Create a New Project and Reference the Driver

To use an IVI Driver in a Visual C# program, you must first add a reference to it.

1Launch Visual Studio and start a new Console Application in Visual C#.

Note: The program already includes some required code, including using statements. Keep this required code.

2Select Project and click Add Reference. The Add Reference dialog appears.

3Select the COM tab. All IVI drivers begin with IVI. Scroll to the IVI section and select IVI Agilent 34401 (Agilent Technologies) 1.1 Type Library. Click OK.

Note: If you have not installed the IVI driver, it will not appear in this list. You must close the Add Reference dialog, install the driver, and select Add Reference again for the driver to appear.

Note: The program looks the same as it did before you added the reference, but the driver is now available for use. To see the reference, select View and click Solution Explorer. Solution Explorer appears and lists the reference.

30 Chapter 3

Page 30
Image 30
HP manual Create a New Project and Reference the Driver