relacs

Relaxed Electrophysiological Data Acquisition,
Control, and Stimulation

... enjoy your recordings

ComediAnalogOutput  [AnalogOutput]  [Comedi Plugins]

Interface for accessing analog output of a daq-board via comedi.

Author
Marco Hackenberg
Jan Benda
Bug:

NI DAQCard cmd.stop_arg += 2048 needs to tested

unipolar support is not really working

Options
usenipfistart: Use as start source NI PFI channel
Trigger to analog input
You need to route the analog input start signal to pfi channel 0:
*Devices
Device1:
plugin : ComediNIPFI
device : /dev/comedi0
ident : pfi-1
channel: 0
routing: AI_START1
and tell the ComediAnalogOutput that it will be triggered by this signal:
*Analog Output Devices
Device1:
device : /dev/comedi0
ident : ao-1
usenipfistart: 0
delays : 0ms
Calibration:
For hardware calibrated boards (like NI E-Series boards) do
$ comedi_calibrate --reset --calibrate -f /dev/comedi0

For software calibrated boards (like NI M-Series boards) do

$ comedi_soft_calibrate -f /dev/comedi0

You may want to read the man page of comedi_calibrate.

ComediDigitalIO  [AnalogOutput]  [Comedi Plugins]

Interface for accessing digital I/O lines of a daq-board via comedi.

Author
Jan Benda
Options
  • subdevice: the subdevice id of the digital I/O (check with comedi_test -t info).
  • startsubdevice: start searching for a digital I/O subdevice at the subdevice with the specified id.

ComediNIPFI  [AnalogOutput]  [Comedi Plugins]

Controlls the PFI pins of a NI M-series daq-board via comedi.

Author
Jan Benda The signal routing is routed to the channel channel on the PFI subdevice (subdevice no. 7) of a national instruments M-series board.

Use for routing either the following integer values or the names without the "NI_PFI_OUTPUT_" part (from comedi.h):

enum ni_pfi_routing {
NI_PFI_OUTPUT_PFI_DEFAULT = 0,
NI_PFI_OUTPUT_AI_START1 = 1,
NI_PFI_OUTPUT_AI_START2 = 2,
NI_PFI_OUTPUT_AI_CONVERT = 3,
NI_PFI_OUTPUT_G_SRC1 = 4,
NI_PFI_OUTPUT_G_GATE1 = 5,
NI_PFI_OUTPUT_AO_UPDATE_N = 6,
NI_PFI_OUTPUT_AO_START1 = 7,
NI_PFI_OUTPUT_AI_START_PULSE = 8,
NI_PFI_OUTPUT_G_SRC0 = 9,
NI_PFI_OUTPUT_G_GATE0 = 10,
NI_PFI_OUTPUT_EXT_STROBE = 11,
NI_PFI_OUTPUT_AI_EXT_MUX_CLK = 12,
NI_PFI_OUTPUT_GOUT0 = 13,
NI_PFI_OUTPUT_GOUT1 = 14,
NI_PFI_OUTPUT_FREQ_OUT = 15,
NI_PFI_OUTPUT_PFI_DO = 16,
NI_PFI_OUTPUT_I_ATRIG = 17,
NI_PFI_OUTPUT_RTSI0 = 18,
NI_PFI_OUTPUT_PXI_STAR_TRIGGER_IN = 26,
NI_PFI_OUTPUT_SCXI_TRIG1 = 27,
NI_PFI_OUTPUT_DIO_CHANGE_DETECT_RTSI = 28,
NI_PFI_OUTPUT_CDI_SAMPLE = 29,
NI_PFI_OUTPUT_CDO_UPDATE = 30
};
Options
  • channel
  • routing

ComediRouting  [AnalogOutput]  [Comedi Plugins]

Route a signal to a channel of a subdevice.

Author
Jan Benda The signal routing is routed to the channel channel on subdevice subdevice.

For routing signals to NI M-Series PFI lines, use the ComediNIPFI plugin (this plugin knows that the PFI channels are at subdevice 7 and provides meaningful names for the signals to be routed).

Options
  • subdevice
  • channel
  • routing

*  [AnalogOutput]  [Comedi Plugins]

Last modified: Wed Jun 13 16:31:31 CEST 2018 Valid HTML 4.01 Transitional