EasyManua.ls Logo

Giga-tronics 58542 - Instrument & Sensor Identification Examples; Instrument Identification

Default Icon
252 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
58542 VXIbus Universal Power Meter
A-48 Publication 21555, Rev. E, September 2002
A.11 Instrument & Sensor Identification Examples
A.11.1 Instrument Identification
The following example reads manufacturer identification, model number and software version number.
Software version number is important for troubleshooting and factory technical support. Make sure user
or users can identify the software version when requesting technical support.
10 ALPHA ON
20 DIM ID$[60],Mfgr$[12]
! FOR INSTRUMENT ID VIEWING AT START UP
30 !
40 CLEAR SCREEN
50 !
60 !#################################################
70 ! Instrument ADDRESS ALLOCATION
80 !
90 ASSIGN @Slot0 TO 70100 ! 70200 is Logical Address of the Slot0 controller
100 ASSIGN @Pwr_mtr TO 70101 ! Default Power Meter Address of 255 allows VXI dynamic
110 ! address configuration
120 !
130 !#################################################
140 !
150 OUTPUT @Slot0;*IDN?
160 ENTER @Slot0;Id$
170 PRINT SLOT 0 is ;Id$
180 !
190 OUTPUT @Pwr_mtr;*IDN?
200 ENTER @Pwr_mtr;Mfgr$,Model,No,Software_ver
! DIM Mfgr$ to 12 characters
210 PRINT A;Mfgr$; model;Model;with software version;Software_ver;is installed in slot 1.
211 !
212 ! Main Measurement Loop Start.
Instrument identification can be read as a single string as is done in lines 150 to 170 above. Sometimes,
however, it is more convenient to read these four items separately for use in comment statements or as
identifiers for selecting special command libraries or subroutines.

Table of Contents