Returns the trigger channel source.
Gx3722DigitizerGetTriggerSource (nHandle, pnSource, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX3722 board. |
pnSource |
PSHORT |
Trigger channel source is as follows:0. GX3722_DIGITIZER_TRIGGER_SOURCE_CH1: when trigger condition is met on input channel 1, it will start acquiring data on the channel that was enable previously.1. GX3722_DIGITIZER_TRIGGER_SOURCE_CH2 when trigger condition is met on input channel 2, it will start acquiring data on the channel that was enable previously. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The function returns the digitizer trigger channel source.
The digitizer will start acquiring data whenever the trigger condition is met as it was set using the Gx3722DigitizerSetTriggerMode() API, and the rigger mode was not set to software. Data will be recorded into the enables channels as it was set by calling the Gx3722DigitizerSetState() API.
Note: the trigger source can be set to either channel regardless to which channel is actually enabled. E.g. setting trigger source and trigger mode to channel 2 and enabling acquisition on channel 1.
The following example sets the digitizer’s trigger mode, source and ennobles channel 1:
SHORT nHandle, nStatus;
SHORT nMode;
Gx3722DigitizerSetState(nHandle, GX3722_DIGITIZER_CH1, GX3722_DIGITIZER_CH_STATE_ENABLE, &nStatus);
Gx3722DigitizersetTriggerMode(nHandle, GX3722_DIGITIZER_TRIGGER_RISING_EDGE, &nStatus);
Gx3722DigitizerSetTriggerSource(nHandle, GX3722_DIGITIZER_TRIGGER_SOURCE_CH1, &nStatus);
Gx3722DigitizerArm, Gx3722DigitizerHalt, Gx3722DigitizerSetTriggerSource, Gx3722DigitizerSetTriggerMode, Gx3722DigitizerSetTriggerThreshold, Gx3722DigitizerSetSampleCount, Gx3722DigitizerTrigger, Gx3722DigitizerReadWaveform, Gx3722DigitizerReadWaveformEx, Gx3722DigitizerSetPxiTrigger, Gx3722DigitizerGetState, Gx3722DigitizerGetSampleStatus, GxFpgaGetErrorString