ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I internally trigger multiple digital outputs in a timed sequence?

I have a 6025E and I'm using the NIDAQ C API.
I want to switch four digital out lines, low to high in an accurately (hardware) timed sequence. Each output to go high after the same interval as the last.
e.g. start sequence off external trigger, line 1 goes high after 800ms, line 2 goes high after 1600ms, line 3 goes high after 2400ms, line 4 goes high after 3200ms.

If anyone can tell which features (the counters or a pulse train or something) and/or which functions to call, that'd be great.
Thanks.
0 Kudos
Message 1 of 3
(2,996 Views)
Hello,


The first eight digital lines on all E Series boards, such as the 6025E, are not hardware timed. Line states can only be changed thru software calls. The 6025E also has the 82C55A chipset, which gives it more digital lines, but again, they cannot be hardware timed.

You could use two counters for an operation such as this, but you would only be able to control two lines and not four.

If timing from one signal to another is important, I would suggest looking at the 653x family. With these boards you can control up to 32 digital lines with up to 50 ns transitions. An application with 800 ms increments should work really well on these boards.

One last alternative (if rise time is NOT a problem), would be to use both analog output lines, and
both of the counters. What you could do is start an analog output operation and both counters, all on the same trigger signal. Then just program the AO lines to go high after a certain amount of time, and program the counters to output pulses after a certain amount of time. Also, this operation would have to be programmed in DAQmx, as Traditional DAQ does not support digital triggers for counters.

For example code, I would first open, run, and figure out the examples in the following folder. They have all been tested, and should work just fine.

C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C

For help on the specific function calls, please look at the following file.

C:\Program Files\National Instruments\NI-DAQ\Docs\cdaqmx.chm


Best regards,

Justin T.
National Instruments
0 Kudos
Message 2 of 3
(2,995 Views)
Hi SPatrick, did you find a vi that could help, cause i have exactly the same problem like you. if so please write a mail to cantera_user@yahoo.de
thanks in advance

Sven
0 Kudos
Message 3 of 3
(2,867 Views)