LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Three counters: 2 single pulses and 1 double pulse

Hi everyone,

 

I am trying to figure out if this is double. I have 3 counters where I can force pulses.

My idea is to use counter A for a single pulse of duration A and counter B for a single pulse of duration B and the two use counter C for a double pulse so that I have one pulse at the same time as A and one as the same time as B.

This is how it should look like. The time between the start of A and C1 is d(A_C) and between B and C2 is d(B_C).

michberk_1-1762174366281.png

 

What I tried to use was a CO.Pulse.Time for A and B to stablish their high times and then CO.Pulse.Freq for C where I set the frequency accordingly (1/[PulseA+Pause+PulseB-d(A_C)-d(B_C)]) and the duty cycle by multiplying the frequency with the length of the pulses. After this I set Finite Samples and only 2. 

michberk_0-1762174262234.png

The problem with this is that when I use the DAQmxTiming VI and I set Two Pulses, the program ends up outputting two pulses of each: two A, two B and two C. Is there any other way to do it so that the double pulse is only with one counter?

 

Thank you in advanced.

 

0 Kudos
Message 1 of 1
(50 Views)