Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx Digital Write from Digital Trigger

Hey guys,

So I have a DAQPad6015 and I want do something that seem straightforward even though it might be a bit atypical use of the board. Essentially I have a 1Hz TTL signal that is triggering my camera but I dont want it to trigger everytime just in case the other parts of the experiment isnt ready.

So I am inputing the 1Hz TTL into a digital input and after all the other parts of the experiment is done moving, I want to start listening to the digital input and and send out another TTL signal from a different channel to the camera. Phase is very important in my experiment so I want the 1Hz signal to be continously running while triggering off of this signal only when everything is ready.

There is already an example VI that goes this: Gen Dig Pulse Train-Finite-Dig Start.vi

But I cannot use it because I am already using up all the Ctr out lines for other parts of the experiment so I was hoping to do essentially the same thing but with a write to a digital line (true write followed by a false write) instead of the ctr out. I have attached the vi I wrote. Essentially the vi works if I remove the DAQmx Start Trigger vi. Maybe I need to use the sample clock vi? I would appreciate any advice on this.

In theory I don't know why DAQmx would not support this... I already called NI once but the technician told me it simply doesn't work... not very helpful so I thought I'd give you guys a try Smiley Wink since I've already learned a lot from the forums so far.


0 Kudos
Message 1 of 3
(3,379 Views)
Hi hbar,

The NI-DAQmx driver does support output of digital samples with a hardware sample clock, but only with certain devices.  Unfortunately the DAQPad-6015 is not one of them.  The 6015 has handshaking ability, but cannot be used to buffer digital samples and write them at a specified sample rate.  You will be limited to only static (software timed) DIO with the 6015.  One thing to keep in mind is that you won't be able to use a digital start trigger for your digital output task.  The MultifunctionDAQ boards do not support a start/stop or reference trigger for digital tasks.  However, devices such as the NI-6533/34 or PCIe-6536/37 do support this.

You may consider upgrading to an M-Series device.  These devices do support correlated DIO on their digital Port 0, and the sample clock can be derived from the AI sample clock, a counter output task, or an external source:
M Series Data Acquisition

Regards,
Andrew W
National Instruments
Message 2 of 3
(3,362 Views)
Andrew,

I suspected that but wanted to make sure. Thanks for the detailed response. Yeah maybe its time to upgrade to the M-Series.

hbar

PS I wanted to rate your response a 5 but accidentally clicked 4... is there a way to change that? I'm a newbie when it comes to posting on these forums.

Message Edited by hbar on 05-22-2007 02:59 PM

0 Kudos
Message 3 of 3
(3,355 Views)