HP Drive manual Using IVI with Visual C# and Visual Basic .NET, Using IVI with LabVIEW

Models: Drive

1 114
Download 114 pages 61.75 Kb
Page 4
Image 4

Create a New Project and Import the Driver Type Libraries. . . . . . . . . . 22

Declare Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

Define Error Checking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

Initialize the Instrument . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

Configure the Instrument . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

Set the Trigger and Trigger Delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

Set the Reading Timeout/Display the Reading . . . . . . . . . . . . . . . . . . . 26

Close the Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

Build and Run the Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

Further Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

Chapter 3 Using IVI with Visual C# and Visual Basic .NET . . . . . . . . . . . . . . . 29

The Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

Example Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

Download and Install the Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

Create a New Project and Reference the Driver . . . . . . . . . . . . . . . . . . 30

Create an Instance of the Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

Initialize the Instrument . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

Configure the Instrument . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

Set the Trigger Delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

Set the Reading Timeout/Display the Reading . . . . . . . . . . . . . . . . . . . 33

Close the Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

Build and Run the Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34

Tips. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34

Further Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35

Chapter 4 Using IVI with LabVIEW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

The Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

Example Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

Download and Install the Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

Using IVI-C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

4 Contents

Page 4
Image 4
HP Drive manual Using IVI with Visual C# and Visual Basic .NET, Using IVI with LabVIEW