Drive a stepper motor

Hi,
I'm using LV 7.1 Pro under Windows XP. I can use a PCI 6602 card and also a PCI MIO 16 XE-10. I must drive a stepper motor via a specific driver : Philips TJA1010. This driver is working with a clock at ~7 Khz used as timebase and it has a serial data input  that will activate the differents driver outputs connected to the stepper motor to create the rotation.
 The sequence order to send via the serial data input is described in the attachment. The problem is to be able to generate this sequence on the serial data input. I already checked on the forum and found the .vi attached but I don't see how to create my sequence.
Thank you in advance for your help
Attachments:
drive stepper motor.vi ‏139 KB
cycle_stepper_motor.JPG ‏72 KB

Hi pasolo,
I'm not familiar with the TJA1010, so I'm assuming for this post that you have already hooked up one of the digital lines from your DAQ card to the input on the motor driver.
From what you describe, it sounds like you want to do a specific pattern generation on an external clock.  There is actually a great example for that in the NI Example Finder.  Just open LabVIEW and go to Help >> Find Examples.  From the Browse tab, go to Hardware Input and Output >> DAQmx >> Digital Generation >> Cont Write Dig Port-Ext Clk.  This should allow you to write a pattern of 0s and 1s that correspond to your required waveform.  Also, some of the other examples in there might be helpful to look at as well.
I hope this helps!
Thanks,
Justin M.
National Instruments

Similar Messages

  • What is the data throughput in labview. I want to use the parallel as acheap digital i/o to drive a stepper motor.

    I am trying to use the parallel port on a win xp machine to send data a@ up to a 3k rate. This is for the the purpose of driving a stepper motor. I have tried the port.out vi and placed this vi in a loop and it on a scope it looks like I am limited to a a 200hz rate. What am I doing wrong??? Can labview do this or is it too slow ???
    Thanks

    snook wrote:
    > what is the data throughput in labview. I want to use the parallel as
    > acheap digital i/o to drive a stepper motor.
    >
    > I am trying to use the parallel port on a win xp machine to send data
    > a@ up to a 3k rate. This is for the the purpose of driving a stepper
    > motor. I have tried the port.out vi and placed this vi in a loop and
    > it on a scope it looks like I am limited to a a 200hz rate. What am I
    > doing wrong??? Can labview do this or is it too slow ???
    Basically the way the Port I/O VIs are implemented they call through a
    device driver for each port access. This slows down the maximum port
    accesses to something like 1000 times per second depending on the speed
    of your CPU.
    There is a way to do it faster but that is a little more trick
    y. The
    idea is to use a device driver to enable particular port addresses to be
    accessed directly from the application level instead of always going
    through the kernel.
    I have written such a VI library and accompagning DLL and device driver
    and made it available on OpenG. It is not yet part of the standard
    binary distribution packets so you will have to get it from the CVS
    repository.
    Go to:
    http://cvs.sourceforge.net/viewcvs.py/opengtoolkit/portIO/built/portio/
    and download all the files in there including the ones in the
    subdirectory "ogportio.llb" and if you like "docs"
    If you want the nitty gritty technical details you can also look at
    http://cvs.sourceforge.net/viewcvs.py/*checkout*/opengtoolkit/portIO/c_source/Description.htm?rev=1.5
    On my 866 MHz Pentium mobile I can increase the number of port accesses
    in this way from 440 ms for 4000 read byte port accesses (100us ms per
    access) to 20 ms for the same number of read accesses (5 us per access).
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Possible to drive a stepper motor with PCI-6111?

    Is it possible to drive a stepper motor with PCI-6111?

    Hello Tristan,
    If your stepper motor is TTL compatible you should be able to control it with one of the two counters on the board. Keep in mind that the stepper will ask for a certain amount of power so before attaching it track down how much power it consumes and take a look at the Specifications of the PCI-6111 to be sure that the counters on the board can deliver that amount. If the stepper takes to much power you have to use some kind of power drive which can be controlled with digital (TTL) signals or Analog signals between -10V and +10V.
    Hope this helps.
    Best regards
    RikP
    Application Engineering
    National Instruments
    Rik Prins, CLD
    Applications Engineering Specialist Northern Europe, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

  • To drive Unipolar Stepper Motors using MID drive

    Hello friends I have purchased a RS components MID drive and I want to control a unipolar stepper motor using the same. The stepper motor is having 6 wires. I have used the same drive to run a bipolar stepper motor but I need to know as to how I can wire a unipolar motor to the same.I would like to know the connections and the disadvantages if any in driving a unipolar stepper motor using the MID drive.

    You can drive unipolar motors with the 7602/7604, but you wire them as if they were bi-polar. The user manual (which can be downloaded from the NI web site for free) shows the way to wire the 4-phase motor as a two phase motor on page 26. The basic idea is that you either ignore the center tap - wire Phase A to Phase A, and Phase A' to Phase A', or ignore one of the phases by attaching Phase A to Phase A, and Phase A' to the center tap.
    Hope this helps-

  • Whether it is possible to drive a stepper motor from speedy 3's output

    actually i am trying to design an voice controlled wheel chair for my application wat i have did is tat i have writern two programs using labview one is just storing my voice for four commands(namely front ,frontright ,frontleft,stop) ,tat  it stores some value in an array, in my second vi i am speaking one of the four commands, and tat comands amplitude is stroed in an array and i am just comparing it with the values from the first array which i have stored it for all the four commands if any of the array value matches just approximately the i have to make the stepper motor to drive in tat direction i have done it with PIC microcontroller can u give some directions to implement using speedy33

    Hi,
    The SPEEDY-33 Robotics Daugher Module is an add-on device that mounts onto the SPEEDY-33 to provide more functionality. It includes:
    DC Motor Drive Outputs (4)
    Auxiliary Servo Motor Outputs (4)
    Analog Inputs (4)
    External Power Supply Connection
    Details of the daughter module, you cn find at the link below:
    http://digital.ni.com/public.nsf/allkb/832F1F4B12ECE1BE862572D100765898?OpenDocument
    This daughter module is NOT an NI product.
    For connecting a stepper motor, since speedy 33 has digital outputs, it is possible to work a stepper motor. However, you will have to connect a stepper motor drive inorder to amplify the signals to the current specifications that the stepper motor demands. Find out the specs of your motor and choose an appropriate drive.
    Regards,
    Mithilesh Pradhan

  • I look for a vi which allows to drive a stepper motor drive

    The stepper motor is: HIGH-RESOLUTION ROTATION STAGES of Newport

    What type of stages do you have? Are they the SR50 series? If so what type of controller do you have? I have VI's for the ESP6000 PC-Based High-Performance Motion Controller (From the Newport Website) that work really well. But these won't work if you don't have the same controller. Do a search on the Newport website for your controller. They will have some VIs and utilities for your specific controller. Here is the link that will show the compatible controllers for the SR50 Series
    Compact High-Resolution Rotation Stages.
    http://www.newport.com/store/xq/ASP/lone.Motion+Control/ltwo.Motorized+Rotation+Stages/lthree.SR50+Series%253Cbr%253ECompact+High%252DResolution+Rotation+Stages/lfour./id.3206/lang.1/qx/product.htm
    Hope this helps, Good luck!
    Greg

  • Parallel port stepper motor

    Hi All,
    I followed the instructions on this link
    http://zone.ni.com/devzone/conceptd.nsf/webmain/72C6FC6CE4AD4D1386256B1800794596,
    in an attempt to drive a stepper motor. I used the VISA method and grounded pins 12 and 13 and tried to obtained some output with no success... Is there any other pins that I should take care of other than the data pins 2-9 and pins 12,13. I am using a mulitmeter to measure the voltage of the output data pins. I also tried the register method by using the outport.vi but also without any success. Both vis I written does not give me any errors. I tested the parallel port on a printer and it seem to be working fine. Perhaps I had missed out something? An early thanks for anyone who could enlighten me on parallel
    port output.

    Hello;
    You don't need to worry about any other pins than the ones you described. The best way to trouble shoot that is by using a Scope to catch the output line of the parallel port and to have a really simple VI just writting a high level state on that line.
    Regards
    Filipe A.
    Applications Engineer
    National Instruments

  • Driving 2-stepper-​motor quasi-simu​ltaneously or simultaneo​usly

    Hi All,
    does anyone has idea how i can modify the attached vi to drive 2-stepper-motors in 1D quasi-simultaneously or simultaneously. my purpose is to drive 2-axial sealing punch for micro-hydroforming process. Each of the motor works fine (forward/backward) with the attached vi conf. for open loop stepper.
    my system; LV8.20, Controller PCI 7350, UMI-7764, Stepper-driver SMC32-3(nanotec), drive ST4218L1806-LC(nanotec)
    secondly what is the correct step-by-step order of NI-Motion flx to realiase motion controll program just like in LV vis. am new to motion controll.
    regards to all
    anyasodor gerald
    Message Edited by anyasodor on 02-13-2008 10:39 AM
    Attachments:
    OneAxisMove02.vi ‏42 KB

    Hi Jochen and all
    a little proplem now; what could go wrong with schrittmotor? one of my  schrittmotors now moves only backwards(+/-).
    second question; when i run both motors with the attached vi, one sees that one of the motors run on a low velocity compared to the other one instead of the same vel. as expected
    help pls!!
    regards
    gerald
    Attachments:
    Two-Axis Move01.vi ‏51 KB

  • Driving stepper motor via parallel port

    Hi everybody,
    I want to drive a stepper motor via the parallel port. The problem is to
    create a constant frequency on a digital line of the port. I tried to do
    so with a While-Loop with a certain delay, but the frequency varys due
    to occurrences like mouse-movement (due to the call-ups of interrupts I
    think).
    Any Ideas?
    Regards
    Martin
    Attachments:
    Martin.Eis.vcf ‏1 KB

    How about a simple NE555 timer circuit to externally create the constant
    frequency, then use a bit in the parallel port to enable and disable the
    NE555 circuit? You could probably go to Radio Shack and pick up the
    components for less than $10.
    Jim
    Martin Eis wrote in message
    news:[email protected]..
    > Hi everybody,
    >
    > I want to drive a stepper motor via the parallel port. The problem is to
    > create a constant frequency on a digital line of the port. I tried to do
    > so with a While-Loop with a certain delay, but the frequency varys due
    > to occurrences like mouse-movement (due to the call-ups of interrupts I
    > think).
    >
    > Any Ideas?
    >
    > Regards
    > Martin
    >

  • Stepper motor noise in 1 direction

    Hi guys, i'm currently using my 6221 DAQ to provide the pulse train to drive my stepper motor (through a stepper driver). But i'm currently having a problem. The motor always produce clicking noises when i run it in 1 direction. I've tried swapping the driver and checking the cables but to no avail. Based on your experiences, what may be the problem here?

    Thanks Jochen for your reply.
    >As I have posted many times in this forum, I'm not a fan of using DAQ boards for controlling motors (e. g. here, here and here).
    Typically the costs that you can save by using a >cheaper DAQ board
    (compared to a motion control board) will be wasted rapidly by the
    additional time that you need to spend for implementing a solution that
    is anything but ideal.
    Well, sometimes tasks are given to us just like this...
    >But anyway.
    >Which part of the 6221 are
    you using to control the motor? (DIO, AO, Counter)? Are you using
    software timing or hardware timing?
    I'm using AO to generate the TLL pulses. I'm using software timing
    >Have you checked the electrical
    signals with a scope? There is a chance that the control signals are
    pulled down by low-impedance inputs of the drive. E. g. if this happens
    to the Dir+ signal, you may see the problem that you are talking about
    (ok, when Dir+ signal is low, not reliable if Dir+ signal is high).
    I've checked the pulse train for both forward and reverse action and it both looks the same. My Dir signal is driven with a DIO line. How would i know if my Dir signal is causing the problem? I haven't thought of probing it with the scope yet but what kind of 'unreliability' should i be looking for? Isn't it just 5V and 0V?
    And if Dir signal is the problem how can i rectify it?
    >By the way: NI motion control boards provide open collector outputs that allow to drive up to 64 mA.
    Mine requires 1.5A
    Attachments:
    Pulse train.JPG ‏65 KB

  • What third party drive do I use to connect my umi-7764 to a phytron stepper motor (zss66)

    I would like to connect my phytron stepper motor (zss66) to my UMI-7764, do I need a third party drive ?
    And if i need one, which one ?
    Thank !
    Seb (I am french so if you want to aswer french, let's go )

    Sebastien,
    l'UMI 7764 n'est qu'un bloc de connexion. En aucun cas celui ci ne délivre de puissance. Donc il vous faudra nécessaire un bloc puissance entre l'UMI et votre moteur. L'UMI 7764 ne délivre aucune puissance.
    (N'oubbliez pas d'aimenter l'UMI avec une alimentation 5V externe. Ce 5V est à connecter sur le connecteur situé au debut du boitier).
    National Instruments fourni des drives (MID 76XX)dont les specs sont limités en courant. (Elles sont affiché dans le lien ci dessous). Dans le cas de l'utilisation d'un drive NI, il n'est plus nécessaire d'utiliser l'UMI 7764.
    Le choix de votre drive se fera en fonction du nombre de phase de votre stepper, et de son courant nominal.
    Voici un lien sur lequel vous trouverez une liste de drive pour stepper. (Voir
    le bas de la page web)
    http://www.ni.com/devzone/advisors/motion/driveadv​isor.htm
    Je ne connais pas les spec de votre stepper, mais si vous désirez l'utiliser avec un UMI 7764, le plus simple serait de contacter la fbricant de ce moteur, et d'obtenir une liste de drive que celui conseille.
    Raphael TILLET
    Ingénieur Application
    NI FRANCE
    Cordialement,
    Raphael T

  • Using LabView, Arduino, and Easy-Driver to control a Stepper Motor

    Hello fair folks of the LabView forums!
    I am a humble engineering student in need of some advice and input on a project I am working on.
    I’ve also done a fair amount of reading on the LabView forums with people trying to use LabView and Arduino to control stepper motors, and I’ve used as much information from each as I could. However the problem I'm encountering now is one which is unique to my VI Configuration.
    So, here is what has been done thus far:
    -Installed LabView Interface for Arduino [LIFA]
    -Installed necessary VISA drivers for LabView to communicate with arduino
    -Uploaded firmware to Arduino to allow it to communicate with LabView
    -Properly wired Stepper Motor with Easy Driver and Power Supply; I have verified this by first using the Arduino independently of LabView, using example code found here.
    -I have created a VI, and have just recently got it to run without reporting back any errors. While I suspect the behavior I’m encountering has to do with something inside the VI, it is difficult to determine as there are no errors being reported!
    But here is general problem I am encountering:
    -Connect Joystick to USB Port, connect Arduino to USB Port.
    -Plug in outlet for Power Supply
    -Open LabView VI
    -Run LabView VI
    -LabView successfully detects Joystick, and Arduino.
    -Tilt Joystick; Stepper Motor moves in proper direction, but it only takes a single step. If held, it does not move further. If returned to zero, and then tilted, it again only takes a single step.
    I know that in the example code, the Arduino issued the step command by writing the signal from LOW to HIGH, and varied the speed by how often it did this.
    I assumed that the Write-PWM feature would do this same thing, but perhaps my assumption is wrong. I will continue to tinker with this myself, but I would be extremely grateful for any insight you might be able to lend.
    I’m thinking, if not the Arduino Write-PMW feature perhaps a simple timing-sequence that could be used to alternate between writing 0 and 1, with the timescale of the sequence being scaled to the X-Axis from the Joystick. But, I am open to suggestions, and certainly appreciate any thoughts you may have to offer!
    Attached to this is the VI used in this setup, a picture of said VI, as well as a rough sketch of the hardware configuration.
    Thank you!
    Attachments:
    Arduino Stepper Control.vi ‏1224 KB
    VI Picture.png ‏82 KB
    Configuration Sketch.png ‏522 KB

    Hi danjifraga,
    I am not so familiar with the Arduino toolkit functions, but you may have better luck looking at the Arduino page at:
    www.ni.com/arduino
    I'll ask around on Monday to see if anyone is more familiar with the toolkit.
    Good luck,
    Brian
    Brian G.

  • I want to run a stepper motor using FPGA card 7851r with 9474 driver C rio 9151 is it possible or can i do in LABVIEW CVI

    Hello i want to run Stepper with 7851 R FPGA card with 9474 driver of crio chasis but i am not able to understand how to proceed .Or can opt this option by using lab view CVI
    Solved!
    Go to Solution.

    Hi SHV,
    actually I don't know in which context you want to use your existing hardware for your stepper motor.
    1. The hardware, which you describe, is/was used for which application? ( data acquisition, controlling a system, etc)?
    2. Did you buy the hardware especially for the motor application?
    3. You don't know how which signals are required for your stepper motor.
    Here are some basics from NI about motor control
    Fundamentals of Motion Control
    http://www.ni.com/white-paper/3367/en
    NI Motion Control Technical Library
    http://www.ni.com/white-paper/3054/en
    4. Why do you get the idea the digital output module 9474 is suitable for the stepper motor?
    I would recommend to talk directly to the customer support, so we can figure out in detail your aims about
    the application. Contact your local NI office or request
    a service request on following website:
    Service Request Manager
    https://sine.ni.com/srm/app/login/p/tab/getassistance
    Kind regards,
    RupiDo

  • What are the pin connections from 7764 to stepper motor drive

    what are the pin connections from UMI 7764 to stepper motor drive? I use PCI 7340 controller. Third party driver  is not branded, but assembled.  It has 3 inputs, one for (A,A/) one for (b,b/) one for enable, apart from ground pin.

    Dear enigmata,
    Here is a link to the UMI Manual that describes the signal connections:
    http://www.ni.com/pdf/manuals/321941b.pdf
    What you really need is the documentation for the input of the "translator" mentioned on the left side of the last diagram you posted. It is still not possible to tell which of you drive inputs correspond to step and direction (or CW, CCW) because in the circuit that you posted, these signals have already been converted by other circuitry in the drive to the A, A/, B, B/ output signals for the stepper motor.
    I agree with Jochen: Without the documentation you will need to test it out as he described in his last post.
    Best Regards,
    Nate Holmes
    National Instruments

  • Stepper motor drives

    Hi,
    I am developing a control system for the speed control of a gas turbine. So for that i need to change my present manual movement of the fuel valve to one by a stepper motor. The valve is very sensitive, so i need a high resolution stepper motor (100,00 steps per revolution). I have a NI CRIO and have a digital I/O module fit on the chasis. With the existing setup, i would like to know what is the best stepper motor i can get in the market with least modifications to my current setup. If such a thing is not available, then what is the next best choice. Can anyone please help me out on this.
    Regards,
    Umesh

    Hi Umesh,
    could you please provide some more information? First I feel a bit uncertain by the resolution that you are looking for? Do you mean 10,000 steps per revolution or 100,000 (with a missing zero at the end)?
    If it's 10,000 steps/rev, you could use a standard stepper motor (200 steps/rev) with x50 microstepping. If it's 100,000 you definitely will need a gear box. In general I would also recommend a gear box if you need 10,000 steps/rev, as x50 microstepping is already a quite high value, resulting in reduced accuracy (steps are not evenly distributed anymore).
    Some other questions:
    Could you please provide information about the required velocity and acceleration values?
    What about the inertia of your valve? Any idea about motor sizing?
    Which cRIO digital I/O module are you using?
    Are you using NI-SoftMotion?
    Have you thought about using cRIO drive interface modules (makes programming much faster and easier)?
    Have you already decided which power drive to use?
    Kind regards
    Jochen Klier
    National Instruments

Maybe you are looking for

  • What's the best way to get user testing of our app (we're based in the UK)

    Hi all. We've just developed our first app for Palm and would really like to get some feedback from Palm users (our app allows users to take photos and send them as real printed postcards. We'd be very happy to give users free postcards in exchange f

  • Customer due date analaysis report

    Hi In customer due date analysis report S_ALR_87012068 figures are different from customer local currency report.  In vendors due date analysis report figures matches with vendor local currency figures. But some different amount is showing in custome

  • How to get the SAVE Layout  ICON on ALV Grid display report

    Hi,   I am using the standard ALV Layout, and I do not get the SAVE LAYOUT Icon on the Menubar, where I could save the report Layout.I am using the layout routine as, FORM layout_build USING   u_lf_layout TYPE slis_layout_alv.   u_lf_layout-box_field

  • DBMS_XMLSave.insertXML Fails on decimal format

    DBMS_XMLSave.insertXML Fails on decimal format The following example fails when using collections of complex elements. The error is: java.lang.NumberFormatException: 1.0' Example is: create table test_parent(p_id NUMBER(18), test_col number(10)) alte

  • Mac on intel pc

    hello, I understood, that this is the one version, that work on intel processors. But i need to know, if it is posseble to put mac os on notebook with dual core. If it is posseble, then please say, what hardware i need and which version of mac os is