Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

stepper motor control +parallel port

I want to controll a stepper motor by using the parallel or printer port. I am going to employ this stepper motor driver (MC3479: Stepper Motor Driver).

I want to know how to set up the parallel port in labView to send out the appropriate pulses to control the steps or the motor.

I want to jsut employ a parallel port cable without the use of a NI instrument hardware.  Hopefully this is possible.



0 Kudos
Message 1 of 45
(9,558 Views)
It is possible but because of the operating system jitter (more than 10ms) you have to keep the speed so small that I don't try it.

greetings from the Netherlands
Message 2 of 45
(9,537 Views)

Hi exavier45,

Here are a couple resources that may help you get started:

LabVIEW Example program using VISA to communicate with a parallel port device:
http://zone.ni.com/devzone/cda/epd/p/id/4213

Updating the PC Parallel Port Developer Zone tutorial:
http://zone.ni.com/devzone/cda/tut/p/id/3466

Please let us know if you have any questions!

Chris R.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 45
(9,518 Views)
is there any examples that use new VISA drivers that are found with labView 7.1
0 Kudos
Message 4 of 45
(9,500 Views)

Hi exavier45,

If you open the example with LabVIEW 7.1, it should upgrade the VISA functions to the current versions.  I was able to open it just fine in LabVIEW 7.1 with NI-VISA 4.0.  Please try it out and see if it works for you.

Chris R.
Applications Engineer
National Instruments
0 Kudos
Message 5 of 45
(9,498 Views)
open what example?
0 Kudos
Message 6 of 45
(9,125 Views)
Gee, you took a long time to answer back.Smiley Surprised
 
The examples Chris gave the links to.
0 Kudos
Message 7 of 45
(9,120 Views)
i have been messing with it recently and i forgot what was went over before sorry.
0 Kudos
Message 8 of 45
(9,105 Views)
that link with updating the parallel port of PC just talks about the parallel port there is not any examples.

i want to use the out port.vi funciton to send the proper signals to the stepper motor driver.  On is based on
a rising edge triggered clock.  The other two pins on the driver is just to pick direction and mode.

There has to be more to sending signals out of the parallel port with this function than a timed loop and correct sequence of hex letters to correspond to the signals needed.

no many examples on this.


0 Kudos
Message 9 of 45
(9,105 Views)
Besides the VISA example, there's one at http://zone.ni.com/devzone/cda/epd/p/id/4319 with the old outport but there's not much to that either. With either one, all you can do is write a certain hex value. The only timing control you have is what windows gives you and that is not much. If you accurately timed pulses, you cannot do that in software.
0 Kudos
Message 10 of 45
(9,105 Views)