User`s guide

PCI-2513 User's Guide Functional Details
16
A note on the hardware analog level trigger and comparator change state
When analog input voltage starts near the trigger level, and you are performing a rising or falling hardware
analog level trigger, the analog level comparator may have already tripped before the sweep was enabled. If this
is the case, the circuit waits for the comparator to change state. However, since the comparator has already
changed state, the circuit does not see the transition.
To resolve this problem, do the following:
1. Set the analog level trigger to the threshold you want.
2. Apply an analog input signal that is more than 2.5% of the full-scale range away from the desired
threshold. This ensures that the comparator is in the proper state at the beginning of the acquisition.
3. Bring the analog input signal toward the desired threshold. When the input signal is at the threshold
some tolerance) the sweep will be triggered.
4. Before re-arming the trigger, move the analog input signal to a level that is more than 2.5% of the full-scale
range away from the desired threshold.
For example, if you are using the ±2 V full-scale range (gain = 5), and you want to trigger at +1 V on the rising
edge, you would set the analog input voltage to a start value that is less than +0.9 V (1 V (2 V * 2 * 2.5%)).
Digital triggering
A separate digital trigger input line is provided (TTL TRG), allowing TTL-level triggering with latencies
guaranteed to be less than 1 µs. You can program both of the logic levels (1 or 0) and the rising or falling edge
for the discrete digital trigger input.
Software-based triggering
The three software-based trigger modes differ from hardware analog triggering and digital triggering because
the readingsanalog, digital, or counterare checked by the PC in order to detect the trigger event.
Analog triggering
You can select any analog channel in the scan as the trigger channel. You can program the trigger level, the
rising or falling edge, and hysteresis.
Pattern triggering
You can select any scanned digital input channel pattern to trigger an acquisition, including the ability to mask
or ignore specific bits.
Counter triggering
You can program triggering to occur when one of the counters meets or exceeds a set value, or is within a range
of values. You can program any of the included counter channels as the trigger source.
Software-based triggering usually results in a long period of inactivity between the trigger condition being
detected and the data being acquired. However, the PCI-2513 avoids this situation by using pre-trigger data.
When software-based-triggering is used, and the PC detects the trigger conditionwhich may be thousands of
readings after the actual occurrence of the signalthe PCI-2513 driver automatically looks back to the location
in memory where the actual trigger-causing measurement occurred, and presents the acquired data that begins at
the point where the trigger-causing measurement occurs. The maximum inactive period in this mode equals one
scan period.