Specifications

Comedi
28 / 148
Signal Source Description
NI_RTSI_OUTPUT_ADR_START1
ADR_START1, an analog input start signal. See the NI’s
DAQ-STC Technical Reference Manual for more
information.
NI_RTSI_OUTPUT_ADR_START2
ADR_START2, an analog input stop signal. See the NI’s
DAQ-STC Technical Reference Manual for more
information.
NI_RTSI_OUTPUT_SCLKG
SCLKG, a sample clock signal. See the NI’s DAQ-STC
Technical Reference Manual for more information.
NI_RTSI_OUTPUT_DACUPDN
DACUPDN, a dac update signal. See the NI’s DAQ-STC
Technical Reference Manual for more information.
NI_RTSI_OUTPUT_DA_START1
DA_START1, an analog output start signal. See the NI’s
DAQ-STC Technical Reference Manual for more
information.
NI_RTSI_OUTPUT_G_SRC0
G_SRC0, the source signal to general purpose counter 0.
See the NI’s DAQ-STC Technical Reference Manual for
more information.
NI_RTSI_OUTPUT_G_GATE0
G_GATE0, the gate signal to general purpose counter 0.
See the NI’s DAQ-STC Technical Reference Manual for
more information.
NI_RTSI_OUTPUT_RGOUT0
RGOUT0, the output signal of general purpose counter 0.
See the NI’s DAQ-STC Technical Reference Manual for
more information.
NI_RTSI_OUTPUT_RTSI_BRD(n)
RTSI_BRD0 though RTSI_BRD3 are four internal signals
which can have various other signals routed to them in turn.
Currently, comedi provides no way to configure the signals
routed to the RTSI_BRD lines. See the NI’s DAQ-STC
Technical Reference Manual for more information.
NI_RTSI_OUTPUT_RTSI_OSC
The RTSI clock signal. On pre-m-series boards, this signal
is always routed to RTSI line 7, and cannot be routed to
lines 0 through 6. On m-series boards, any RTSI line can
be configured to output the clock signal.
The RTSI bus pins may be used as trigger inputs for many of the Comedi trigger functions. To use the RTSI bus pins, set the
source to be TRIG_EXT and the source argument using the return values from the NI_EXT_RTSI(n) function (or similarly the
NI_EXT_PFI(n) function if you want to trigger from a PFI line). The CR_EDGE and CR_INVERT flags may also be set on the
trigger source argument to specify edge and falling edge/low level triggering.
An example to set up a device as a master is given below.
void comediEnableMaster(comedi_t
*
dev){
comedi_insn configCmd;
lsampl_t configData[2];
int ret;
unsigned int d = 0;
static const unsigned rtsi_subdev = 10;
static const unsigned rtsi_clock_line = 7;
/
*
Route RTSI clock to line 7 (not needed on pre-m-series boards since their
clock is always on line 7).
*
/
memset(&configCmd, 0, sizeof(configCmd));
memset(&configData, 0, sizeof(configData));
configCmd.insn = INSN_CONFIG;
configCmd.subdev = rtsi_subdev;
configCmd.chanspec = rtsi_clock_line;
configCmd.n = 2;
configCmd.data = configData;
configCmd.data[0] = INSN_CONFIG_SET_ROUTING;
configCmd.data[1] = NI_RTSI_OUTPUT_RTSI_OSC;