DAQ Internal Error when triggering

5 visualizzazioni (ultimi 30 giorni)
Clint Cass
Clint Cass il 31 Ago 2018
Using the data acquisition toolbox and a NI PCIe-6323, I have a session with counter outputs and a session with digital outputs. I want to use a counter output as the clock for the digital outputs and trigger both sessions to start at the same time. Since it seems counter outputs ignore anything to do with triggers, I set up the digital outputs to just trigger on the first clock pulse. Set up as so:
% Use the counter channels as a scan clock for the digital out channels
addClockConnection(this.device,'External',['Dev1/' clkTerminal],'ScanClock');
% Trigger the digital outputs off the first clock pulse
addTriggerConnection(this.device, 'external', 'Dev1/PFI12', 'StartTrigger');
this.device.TriggersPerRun = inf;
Where this.device is a session with a set of digital outputs. Then output is started with the following, where this.deviceClock is a session with counter outputs.
this.device.startBackground;
this.deviceClock.startForeground;
stop(this.device);
Occasionally I get the following error at startForeground, even though the pulse was generated successfully:
Internal Error: Unexpected operation checkForTimeout occurred in state ReadyToStart.

Risposte (0)

Categorie

Scopri di più su Simultaneous and Synchronized Operations in Help Center e File Exchange

Prodotti


Release

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by