Model 6485 and 6487 User’s Manual
Example Programs
C-3
900 readings/second to IEEE-488 bus
This program uses multiple reading queries to get high speed measurements over the bus
in real time. To improve continuity of readings, reduce the trigger count. To improve
throughput, increase the trigger count.
NOTE
This program configures the Model 6485/6487 to 0.01 PLC, digital filters off,
front panel off, auto-zero off, binary transfer, and IEEE-488.1 (language).
Model 6485/6487 must be set to IEEE-488.1 operation from the front panel.
Press CONFIG then COMM, select LANG: 488.1, then press ENTER. See
instruction or reference manual for details.
*RST
' Return 6485/6487 to RST defaults.
FORM:ELEM READ
' Return readings only.
FORM:BORD SWAP
' Set for swapped byte order.
FORM:DATA SRE
' Return single precision floating.
' point binary.
TRIG:DEL 0
' Set trigger delay to zero seconds.
TRIG:COUN 8
' Set trigger count to 8.
NPLC .01
' Set integration rate to .01 PLC.
RANG .002
' Use 2mA range.
SYST:ZCH OFF
' Turn zero check off.
SYST:AZER:STAT OFF
' Turn auto-zero off.
DISP:ENAB OFF
' Turn display off.
*OPC?
' Operation complete query
' (synchronize completion of commands).
read back result of *opc?
for i = 1 to 1000
"talk" Model 6485/6487.
' In 488.1 mode this will
' automatically do a READ?
' (see Reference manual).
read back the binary data
next i
DISP:ENAB ON
' Turn display back on.
Summary of Contents for 6485
Page 40: ...1 28 Getting Started Model 6485 and 6487 User s Manual...
Page 94: ...7 8 Remote Operation and Commands Model 6485 and 6487 User s Manual...
Page 95: ...A Specifications...
Page 98: ...A 4 Specifications Model 6485 and 6487 User s Manual...
Page 105: ...C ExamplePrograms Programming examples lists and defines three types of programming exam ples...
Page 113: ......
Page 114: ......