Programming
EPM2000/EPM2000e Reference Guide
49
PROGRAMMING EXAMPLE
The following list of commands sets the EPM2000 to collect readings from a 1 KHz pulsed laser
source. Channel A collects the raw data and Channel B collects 100-pulse statistical batches. The
data are stored in the buffer in binary form (the most compact form) and can be retrieved with an
out dump command. The buffer depth has been set to the maximum value to allow the greatest
time between data dumps.
ch all units jou Sets both channels to measure Joules
ch all resp pyro 220 Pyroelectric responsivity to 220 V/J
ch a trig src int Trigger A source: internal
ch b trig src slav Trigger B source: slaved to A
ch a trig lev 8 Trigger A level: 8%
out cont off Deactivate continuous output
out dep 4095 Buffer depth 4095 bytes
ch all range 30mj Range both channels 30mJ
out form bin Set output format to binary
ch a oper norm Set channel A to Normal Mode
ch b oper stat Set channel B to Statistics Mode
ch b stat bat 100 Statistics batch size 100
ch b stat mode auto Automatic restart at the end of a batch
ch b stat send min max avg dev head
Transmit all values
The following illustration shows a small LabVIEW
®
VI (Virtual Instrument) diagram which programs
an EPM2000 with the above commands. It expects an EPM2000 on the IEEE-488 bus at address 5.
Each command is separated by 300 milliseconds to avoid a command being lost while the instrument
is processing a previous command.
Figure 11: LabVIEW diagram indicating
simple EPM2000 configuration program.