| Programming the DC Source - 3 |
Trigger occurs on rising edge | Trigger occurs on falling edge |
| |
when signal crosses positive | when signal crosses negative |
| |
hysteresis band limit | hysteresis band limit |
|
TRIG:ACQ:HYST:CURR <value>
TRIG:ACQ:LEV:CURR <level> TRIG:ACQ:HYST:VOLT TRIG:ACQ:LEV:VOLT
TRIG:ACQ:SLOP:CURR
TRIG:ACQ:SLOP:VOLT
TRIG:ACQ:SLOP:CURR NEG
TRIG:ACQ:SLOP:VOLT
Figure
To specify the output level that will generate triggers for both positive- and
TRIGger:SEQuence2:LEVel:CURRent <value> or
TRIGger:ACQuire:LEVel:CURRent <value>
To specify the slope on which triggering occurs use the following commands. You can specify a POSitive, a NEGative, or EITHer type of slope.
TRIGger:SEQuence2:SLOPe:CURRent <slope> or
TRIGger:ACQuire:SLOPe:CURRent <slope>
To specify a hysteresis band to qualify the positive- or
TRIGger:SEQuence2:HYSTeresis:CURRent <value> or
TRIGger:ACQuire:HYSTeresis:CURRent <value>
NOTE: When using internal triggers, do not INITiate the measurement until after you have specified the slope, level, and hysteresis.
When the acquisition finishes, any of the FETCh queries can be used to return the results. Once the measurement trigger is initiated, if a FETCh query is sent before the data acquisition is triggered or before it is finished, the response data will be delayed until the trigger occurs and the acquisition completes. This may tie up the controller if the trigger condition does not occur immediately.
One way to wait for results without tying up the controller is to use the SCPI command completion commands. For example, you can send the *OPC command after INITialize, then occasionally poll the OPC status bit in the standard event status register for status completion while doing other tasks. You can also set up an SRQ condition on the OPC status bit going true, and do other tasks until an SRQ interrupt occurs.
27