C-4 Example Programs Model 6485 and 6487 User’s Manual
3000 readings into internal buffer
NOTE This program is for the Model 6487 only. Due to memory limitations, the maxi-
mum product of the trigger count times the arm count is 2,048. Consequently,
two
triggers are required to completely fill the buffer to its 3,000 reading maxi-
mum. See Section 7 of the Model 6487 Reference Manual for triggering details.
*RST ' Return 6487 to RST defaults.
TRIG:DEL 0 ' Set trigger delay to zero seconds.
TRIG:COUN 1500 ' Set trigger count to 1500.
NPLC .01 ' Set integration rate to .01 PLC.
RANG .002 ' Use 2mA range.
SYST:ZCH OFF ' Turn zero check off.
*CLS ' Clear status model.
TRAC:POIN 3000 ' Set buffer size to 3000.
TRAC:CLE ' Clear buffer.
TRAC:FEED:CONT NEXT ' Set storage control to start on next
' reading.
STAT:MEAS:ENAB 512 ' Enable buffer full measurement event.
*SRE 1 ' Enable SRQ on buffer full measurement
' event.
*OPC? ' Operation complete query
' (synchronize completion of commands).
read back result of *opc?
INIT ' First trigger to store 1500 readings
' wait for reading storage complete.
INIT ' Take and store last 1500 readings
' wait for GPIB SRQ line to go true.
TRAC:DATA? ' Request data from buffer.
read back result