Fluke PM-3370B Sander User Manual


 
3 - 30 USING THE COMBISCOPE INSTRUMENTS
3.4.2.1 Single-shot acquisition
PROGRAM EXAMPLE:
In this example a single-shot trace acquisition is done via channel 1. The trace
bytes are entered as characters in the string response$.
DIM response AS STRING
*
1033
Dimensions trace buffer
CALL Send(0, 8, "
*
RST", 1)
Resets the instrument
Trigger source becomes IMMediate
Number of trace samples becomes 512
Number of trace sample bits becomes 16
CALL Send(0, 8, "CONFigure:AC", 1)
Configures for optimal AC-RMS settings
CALL Send(0, 8, "INITiate", 1)
Initiates single acquisition
CALL Send(0, 8, "
*
WAI;TRACe? CH1", 1)
Requests for channel 1 trace data
Notice the
*
WAI; before TRACe?. The
*
WAI command takes care that the
TRACe? CH1 command is executed when the INITiate command is finished.
CALL Receive(0, 8, response$, 256)
Reads the channel 1 trace data
3.4.2.2 Repetitive acquisitions
PROGRAM EXAMPLE:
In this example 10 trace acquisitions are done via channel 1. The trace bytes are
entered as characters in the string response$. The 10 trace buffers are written to
the file TRACE10 on the hard disk. Triggering is done via the GPIB by sending the
*
TRG command.
DIM response AS STRING
*
1033
Dimensions trace buffer
CALL Send(0, 8, "
*
RST", 1)
Resets the instrument
Trigger source becomes IMMediate
Number of trace samples becomes 512
Number of trace sample bits becomes 16
CALL Send(0, 8, "CONFigure:AC (@1)", 1)
Configures for optimal AC-RMS settings.
CALL Send(0, 8, "TRIGger:SOURce BUS", 1) ’
Trigger source = GPIB
OPEN "O",#1,"TRACE10"
Opens file TRACE10
FOR i=1 TO 10
10 sequential trace acquisitions
CALL Send(0, 8, "INITiate", 1)
Initiates an acquisition
CALL Send(0, 8, "
*
TRG", 1)
Triggers via the GPIB
CALL Send(0, 8, "
*
WAI;TRACe? CH1", 1)
Requests for channel 1 trace
Notice the
*
WAI; before TRACe?. The
*
WAI command takes care that
the TRACe? CH1 command is executed when the INITiate command is finished.
CALL Receive(0, 8, response$, 256)
Reads the channel 1 trace
PRINT #1, response$
Writes the trace buffer to file
NEXT i
Next trace acquisition
CLOSE
Closes file TRACE10