Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple pulse trains

I have to figure out a LabView program written by someone, which was basically used to generate 2 pulse trains alternating (ABABAB....). I need to modify the program so I can generate 3 alternating pulse trains (ABCABCABC....) using 3 counters (PXI 6602 and traditional DAQ).
A       ------------                                  ------------                                  ------------
         |              |                                 |               |                                 |              |
         |              |                                 |               |                                 |              |
                        ---------------------------               ----------------------------
 
B                      -------------                                   --------------             
                        |                 |                                 |                 |             
                        |                 |                                 |                 |             
         -------------                ---------------------------                   --------------------------
 
C                                       ------------                                       ------------
                                         |               |                                      |              |
                                         |               |                                      |              |
        ---------------------------                ------------------------------               ----------------
When I looked at a typical Pulse Train Generation TIO. vi given below, I saw the pulse spec 1 (for idle time) and pulse spec 2 (for pulse length).
Is it possible to put another counter set attribute with pulse spec 1 after the pulse spec 1 and 2 again in order to give more delay time?
This will help a lot for me to modify the existing program in order to generate the 3 alternating pulse trains.
pchemjjang
0 Kudos
Message 1 of 2
(3,632 Views)
 

Hi pchemjjang:

For a pulse train generation set up you will use one counter per pulse. In your case you card have 8 counters so you should be able to add another counter and change the delays to generate pulse phase delayed 180 degrees one from the other one, I have not tried it here so I’m not sure what obstacles you may find trying to setup this task.

 

I know you are adding functionality to a program already written in Traditional DAQ, but you may consider NI-DAQmx for this or future development.  This is especially important if you happen to upgrade your system in the future as any current and future hardware releases by NI will only be supported by the NI-DAQmx driver.  Here’s a good link to get you started:  Getting Started with NI-DAQmx: Main Page.  I would also suggest reading: Transition from Traditional NI-DAQ to NI-DAQmx in LabVIEW, and the best thing you can look at is this examples   code and these tutorials  in traditional DAQ.

 

Jaime Hoffiz
National Instruments
Product Expert
0 Kudos
Message 2 of 2
(3,612 Views)