Data Acquisition Toolbox + NI X-Series Device: Internal PFI Routing, Input Edge Detection, Parallel Sessions

3 次查看(过去 30 天)
Dear all,
I am facing some challenges while trying to use features that are supported by NI USB-6341 X-series device hardware in combination with the data acquisition (DAQ) toolbox and the session based interface (R2016a 64-Bit).
Internal routing of Programmable Function Interface (PFI) signals (e.g. session.addTriggerConnection('Dev1/PFI0','Dev1/PFI4','StartTrigger'); results in error “Source and Destination devices can not be the same for a connection.”): Is there any possibilty to configure all these internal PFI Connections supported by NI-DAQmx device driver via MATLAB? If not, is there any workaround?
Availability of digital input change detection events in DAQ toolbox: I want to realize the following tasks, where the hardware mentioned above is capable of this functionality (implementing 2 capture inputs using timers (edge detection with timestamps), square wave input with 50% duty cycle and about 1.5 kHz frequency, originating from 2 Hall sensors), Hall sensor signals are connected to digital inputs with change detection and counter inputs for quadrature position encoding:
  1. Monitor digital inputs with change detection (results in one change detection event), 100 MHz internal timebase
  2. Counter inputs, MeasurementType 'Position', 100 MHz internal timebase, change detection event is used as sample clock
  3. Additional counter input, MeasurementType 'EdgeCount', 100 MHz internal timebase, change detection event is used as sample clock (this counter is used to generate timestamps for the change detection events in hardware)
  4. Up to 8 analog inputs with 20 kSpS each, synchronised with digital and timer inputs (deterministic behaviour) --> use of shared trigger
Possibility to run several sessions in parallel that can be synchronized by shared clock and trigger(s): If I got this right, one session is only capable of one shared rate and I would like to at least have one analog input session with 20 kSps and one digital / counter input session with 100 MHz in combination with change detection (no polling since this would result in a (too) high data rate to be transferred via USB)
I greatly appreciate any valuable comments and hints. Thanks in advance.

回答(1 个)

Luc Gendre
Luc Gendre 2017-9-19
Hey jAwA,
I am facing the same issue regarding the PFI internal routing as the one you describe, with the same error (“Source and Destination devices can not be the same for a connection.”).
Did you find any solution or any workaround to this problem?
Best regards.
Luc

类别

Help CenterFile Exchange 中查找有关 Simultaneous and Synchronized Operations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by