Series 8650B Universal Power Meters
3-114
Publication 31470-001, Rev C, November 2, 2017
3.17.4.2
Example Programs
The following program can measure, buffer and print 30 readings on one sensor:
REAL Data(30)7
Example
: OUTPUT 713;SWIFT GET BUFFER 30WAIT 0.5
! wait for instrument configuration
FOR I=1 to 30
Srq_flag=0
! wait for ready condition
TRIGGER 713
! trigger measurement
WHILE Srq_flag=0
Srq_flag=SPOLL(713)
END WHILE
NEXT I
ENTER 713;Data(*)
FOR I=1 TO 30
PRINT I,Data(I)
NEXT I
NOTE:
For a computer that does not support matrix reads, read the entire buffer into a string and parse
the data. Multiple ENTER commands will not work.
The following program can be used to perform 20 measurements on two sensors in swift freerun mode:
OUTPUT 713;APBP
OUTPUT 713;SWIFT FREERUN
WAIT 0.5
FOR I=1 to 20
ENTER 713;ReadA,ReadB
PRINT ReadA,ReadB
NEXT I
OUTPUT 713;SWIFT OFF
The following program can be used to measure, buffer, and print 30 readings on each of two sensors:
REAL DataA(30),DataB(30)
OUTPUT 713;SWIFT GET BUFFER 30
WAIT 0.5
FOR I=1 to 30
srq_flag=0
TRIGGER 713
! send group execute trigger
WHILE srq_flag=0
srq_flag=SPOLL (713)
END WHILE
NEXT I
ENTER 713;DataA(*),DataB(*)
! read the buffer
FOR I=1 to 30
PRINT I,DataA(I),DataB(I)
NEXT I
Содержание 8650B Series
Страница 3: ...Series 8650B Universal Power Meters Publication 31470 001 Rev C November 2 2017 iii ...
Страница 18: ......
Страница 32: ......
Страница 78: ......
Страница 236: ......
Страница 244: ......
Страница 258: ......
Страница 263: ...Menu Structure Publication 31470 001 Rev C November 2 2017 D 3 Figure D 3 Modulation Sensor B Setup Menu Structure ...
Страница 265: ...Menu Stucture Publication 31470 001 Rev C November 2 2017 Page D 5 Figure D 4 Meter Setup Menu Structure ...
Страница 267: ...Publication 31470 001 Rev C November 2 2017 Last page of the document ...