From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Signalling an external device when an AI is started and stopped, or in progress

Solved!
Go to solution

Hello,

I'm trying to synchronize an external device with an analog multi-channel, multi-sample DAQ.

We are using the PCI-6132. When our AI task starts (via software) it begins watching a trigger-signal.

Once triggered, it acquires scans at the rate of an external clock1KHz. The triggers and clock are always there.

 

We have an external device that is also connected to the external clock. I need to signal the device when an AI is started/stopped, so that it only makes measurements while the DAQ is in progress.

 

Are there any signals available on this board, that I can route to the connector, which will indicate when an AI is running?

 

Thanks/Cheers.

0 Kudos
Message 1 of 3
(1,891 Views)
Solution
Accepted by topic author 550nm

I think your best bet is to export the AI start trigger signal (named something like "/dev1/ai/StartTrigger") to a PFI pin.  That's an internal signal that pulses at the beginning of acquisition even when you don't configure for an external hardware trigger.

 

If necessary to create something more like an "enable" signal that toggles high for the duration of acquisition, you could do that with one of your board's counters.  Unless you know the finite # of samples you'll capture in advance, I'm not sure of a way to make the *end* of the pulse be in hardware-sync with the last AI sample captured.

 

 

-Kevin P

 

 

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
Message 2 of 3
(1,868 Views)

Hi Kevin,

Thanks, I looked at StartTrigger, but it's not much help without an "end" pulse. I forgot about the counters on the DAQ board - that might/could work.  Actually, if I had a trigger for every A/D conversion, that could also work.

Thanks for the counter idea - am looking into it now!

 

0 Kudos
Message 3 of 3
(1,858 Views)