MsgBox "End of Job."
End Sub
Using CONFigure with a Math Operation
The following example uses CONFigure with the dBm math operation.
The CONFigure command gives you a little more programming
flexibility than the MEASure? command. This allows you to
“incrementally” change the multimeter’s configuration. The example is
is shown in Visual Basic.
Creating the Application
Create a new Visual Basic project as follows:
1. Create a new Standar.EXE project.
2. To set the startup object for a Windows Application to Sub Main
3. Add New Module, Declare a Sub Main().
LISTING C.2.
THE CONFigure FUNCTION.
Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Sub main()
Rem
#########################################
Rem
Rem Using NI-VISA library visa32.dll
Rem
Rem Set sample count 5 configuration and
Rem read the trigger
Rem
Rem
#########################################
Dim stat As ViStatus
189