Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

is it possible (and how if yes) to generate multiple (3 or 4) finite pulse trains using 6034e daq card?

i want to generate on 3 different lines 3 pulse trains in that way that first one starts (i mean it is in high state) and lasts for (its width is) about 5 ms , and in the meantime, lets say after 2 ms counting from the first started, the second one is generated and again lasts for a few ms, and then third one in similar way,
i hope somebody understands me..
i wonder if i will need some carc with more counters.. ?


0 Kudos
Message 1 of 4
(3,283 Views)
krzysiek,
The most accurate way to do this would certainly be with counters.  You would of course need 3 counters (the 6034E has only two).  You could also use digital lines to create pulse trains, but that would have to be software timed.  So you might not be able to get the timing resolution you want.
-Alan A.
0 Kudos
Message 2 of 4
(3,275 Views)
thank you for your answer, i didnt mentioned it but i'm a novice in LabView ... so i will have some few more questions (i dont know if it is an accurate board to ask them..),
so i will need the card with more than 2 counters to have the accuracy i want.. but..
you mentioned that i might use the digital lines and software timing... could you say a little bit more( yes, i can imagine that i wont get the accuracy i want but i would like to try and see what i can get )? i've seen some  examples that come with labview, they all , i think, use counters to generate digital pulses, or not?, what do you mean by sayng software timed? i imagine this would be a while loop with time delay, yes? , is the 'Write Dig Chan.vi' a good example of that what you said?
maybe these are stupid question but i need to make sure of everything,
last question, assume that i'm using one counter to generate a pulse train (i'm learning), and the qouestion is that i would like to actually see what i've generated...( for the learning purpose, or debugging) i mean for example hardwire the outpt of the counter with some digital input and measure that way the signal to see what it looks like and if it is really what i wanted, is it possible? i guess yes, but i dont know how to write and in the same time read/measure the signal, are there any examples of that?

--
krzysiek.


0 Kudos
Message 3 of 4
(3,267 Views)
krzysiek,
Yes, all the generate digital pulse example use counters.  To mimic this with a digital line, you would want to look at the Write Dig Chan.vi and simply toggle a digital line on every iteration of the loop.  You might want to use a shift register to keep track of the previous value, then write the opposite value in the current iteration.
To view a pulse train that you've generated with a counter, you might just want to acquire it with an analog input.  You could wire your counter out to an analog input, and then just use a continuous analog input example.  You could run the counter VI and the ai VI separately.  Or, you could even copy and paste the block diagram of one to the other, and run both tasks (ai and counter) in the same VI.  Hope this helps!
-Alan A.
0 Kudos
Message 4 of 4
(3,254 Views)