Agilent Technologies E2094S Guía de usuario Pagina 22

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 146
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 21
22 Agilent VISA User’s Guide
2 Building a VISA Application in Windows
If the program does not run, see the Event Viewer for a list of run-time
errors. The source file idn.bas follows.
Option Explicit
''''''''''''''''''''''''''''''''''''''''''''''''
'''''''''''''''''''
' idn.bas
' This example program queries a GPIB device for
' an identification string and prints the
' results. Note that you may have to change the
' VISA Interface Name and address for your
' device from "GPIB0" and "22",respectively.
''''''''''''''''''''''''''''''''''''''''''''''''
'''''''''''''''''''
Sub Main()
Dim defrm As Long 'Session to Default
Resource Manager
Dim vi As Long 'Session to instrument
Dim strRes As String * 200 'Fixed length
string to hold results
' Open the default resource manager session
Call viOpenDefaultRM(defrm)
' Open the session to the resource
' The "GPIB0" parameter is the VISA Interface
' name to a
' GPIB instrument as defined in
' Connection Expert.
' Change this name to what you have defined
' for your VISA Interface.
' "GPIB0::22::INSTR" is the address string
' for the device.
' this address will be the same as seen in:
' Connection Expert)
Vista de pagina 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 ... 145 146

Comentarios a estos manuales

Sin comentarios