LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use the counter on the DAQPAD6020E

I need an example, how to use the counter on the DAQPAD 6020E, i got a buffer with times, ex. 1,52 ms 2,32 ms, 1,002 ms ect. and i need the counter to count down for every "time "configured in that buffer. i need to control one LED(light diode) to turn ON and off every time,that time from the buffer has elapsed please some buddy help me with that , i apriciate any help, i got a dead line very soon for my projekt?
0 Kudos
Message 1 of 5
(2,772 Views)
iii
0 Kudos
Message 2 of 5
(2,772 Views)
Did you see the answer here to your other posting? A PC does not have microsecond timing resolution so LabVIEW only supports 1 msec and that's not deterministic at all on Windows.
0 Kudos
Message 3 of 5
(2,772 Views)
Hi dennis, have seen the previous answer. And also this stod there :
"The other option would be to use the two counter/timers on the 6020E to generate the digital signals. These counter/timers use a 20 MHz clock and have microsecond accuracy. The only problem is that you only have two counters. If you are needing more than two channels, a NI 653x device would be perfect."

Now I'll try to give a picture of my projekt,Is it possible for me to do this.

Now my question is,: I need to control a stepper motor,The motor needs two signals, the first signal is for the Direction and the second signal for the Stepping.When the Direction-Signal has been sent out(High or Low)for 50 microsec. ago the Step-Signal goes from High to Low then the motor must step O
ne step, AND THOSE STEPS ARE CONTROLLED BY MY TIME BUFFER ex. one step each, 4,35 ms :0,23ms: 0,54ms etc.

So lets say I only use two channels(for those two signals) witch needs timing. Can I then be able off controlling the duty cycle(50%), delay and frequency, for those two signals.?
The Direction-Signal must be High 50 microsec, before and after the Step-Signal (both 50%dutycycle). The controller for my steppermotor can handle MAX Frequency = 100 kHz.

ps. I use f.eks, (pin 52)-DIO0 for direction and (pin 49)-DIO2 for Step, can't I also use f.eks (pin 17)-DIO1 for a (always high signal)? I use 'write to Lines.
0 Kudos
Message 4 of 5
(2,772 Views)
Meaby I'm confusing myself about what a channel is,!
I suppose a channel is like a port, and every port has 8 lines,therefore I'm asking if I can use three lines at once, ex. DIO 0,DIO 1 and DIO 2. and still use the two counters, 'coz. (DIO 0-DIO 7) are all in the same channel. or is it not?
0 Kudos
Message 5 of 5
(2,772 Views)