LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pulse Generation

Hi,

I have a PCI-MIO-16E-4 DAQ card and the SC-2345. I'm trying to generate pulses to run a stepper motor through the digital I/O terminal block of the SC-2345. I'm using an Allegro UCN5804B stepper-motor translator/driver to run the motor which is where I need to send the pulses. I'm relatively new to LABVIEW so any help will be greatly appreciated.

Thanks
0 Kudos
Message 1 of 6
(3,283 Views)
I have not used the 5804B but you probably will lend a digital line out high or low to the dirrection pin (and maybe even to the full or half step pin) using a DIO output line (see the examples in labview for setting DIO lines) and I would use a counter to run a pulse train generation (examples provided as well).  You can even send a finite pulse train out of the counter if you need to step a certain number of steps.  So you need to look at the examples for pulse train generation, finite pulse train generation and also DIO.  Hope this gets you started.
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 2 of 6
(3,274 Views)
Thanks a lot Paul.....I managed to get the result that I wanted.
0 Kudos
Message 3 of 6
(3,253 Views)

Message Edited by stepper on 11-26-2005 05:12 PM

0 Kudos
Message 4 of 6
(3,222 Views)
Smiley Happy

I really don't seem to know what I'm doing.....(at least where this forum is concerned!!)

Anyway to my question,


Is it possible to vary the frequency of the pulse train in real-time? I'm using windows xp with the same hardware mentioned earlier.

I'm basically trying to vary the speed of the motor within two limits of a logarithimic scale in real-time.
0 Kudos
Message 5 of 6
(3,217 Views)
Yes, the PCI-MIO-16E-4 does allow you to change the frequency of the pulse train when the task is running.  You can write an numeric value to the DAQmx Channel Property Node, the property you want is the Counter Output >> Pulse >> Frequency >> Frequency property.
Micaela N
National Instruments
Message 6 of 6
(3,184 Views)