7-16 Chapter7
Programming Examples
Measurement Setup Examples
}
/* Optionally reset the instrument, close the */
/* instrument handle, and exit the program. */
/* hp875x_reset(vi); */
/* hp875x_close(vi); */
/* exit(err_status); */
return VI_TRUE;
}
return VI_SUCCESS ;
}
Visual BASIC Program Listing
VERSION 5.00
Begin VB.Form frmExample1a
Caption = “hp875x Visual Basic Programming Example 1a”
ClientHeight = 5610
ClientLeft = 1140
ClientTop = 1515
ClientWidth = 5895
LinkTopic = “Form1”
PaletteMode = 1 ‘UseZOrder
ScaleHeight = 5610
ScaleWidth = 5895
Begin VB.ListBox lstText
Height = 4350
ItemData = “frmExamp1a.frx”:0000
Left = 360
List = “frmExamp1a.frx”:0002
TabIndex = 2
Top = 120
Width = 5175
End
Begin VB.CommandButton cmdQuit
Caption = “Quit”
Height = 495
Left = 3120
TabIndex = 1
Top = 4800
Width = 1455
End
Begin VB.CommandButton cmdExecute
Caption = “Execute Program”
Height = 495
Left = 1200
TabIndex = 0
Top = 4800
Width = 1455
End
End
Attribute VB_Name = “frmExample1a”
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False