How can I control a stepper motor drive using a DAQ card?

I need to control a simple CW/CCW stepper motor drive using a DAQ
card.  I simply need to output a 5 volt signal and then a drop in
the signal, and so on 200 times or steps for 1 revolution.  I have
desiigned the basic program, but do not know how to output the
appropriate signal.
Cheers,
Matt

What DAQ card do you have? Ideally, one with a counter output to generate the steps, where you can control frequency. If you try to start the motor too fast (acceleration or abrupt application of fast pulses) it may stall out. Search in Help/Search for Examples for 'frequency' and 'pulse' for example of frequency generation. You can also use a digital output on the DAQ card to control direction.
If DAQ card does not have a counter, you coul do a software timed loop to toggle a digital output to generate the pulse train. It may not be fast enough nor accurate for your application, do not know from info you have given
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~

Similar Messages

  • How can I control 3 stepper motor in same time?

    I want to control 3 stepper motor and 30 electro-valves.
    I only had a few lessons on how to control one in C in college.
    Now I need to do this in labview and using an board from NI
    How can do the control of the three motors in same time?
    What the best board to do this. Maybe the NI PCI 6034.
    But I will need more than one?

    At least some of the NI motor controller boards have up to 32 digital lines which can be set to input or output. I did not write the software for our systems but we are using quite a few of the digital lines for our systems and have no problems reading the digital inputs or setting the digital outputs. Also, the digital outputs offer a high current sink capability and usually can be used to drive external drives without any interface circuits.
    The digital lines are available on a separate connector of the NI boards and there are also break-out boxes (with screw terminals) available. I do not see any serious problems to do your control tasks just with one NI motion controller board, as long as you do not have any special requirements (high sampling speed, high frequency pulse output etc) for the digital lines.

  • How can I control 3 stepper motors w/ amplifier by sending TTL pulses from DIO96

    We have NI PCI-DIO-96 board and we have 3 stepper motors with amplifier and encoders. We want to control the motors by sending TTL pulses directly from the DIO-96 board to the amplifiers. Is this possible? What would you recommend if this is not a good approach? Thanks in advance.
    Roman Zeylikovich

    Roman,
    Thank you for contacting National Instruments. While using a motion controller would be the recommended approach for any type of motion application, you may be able to use your DIO board to generate a TTL pulse train to control the step and direction inputs of your drive and motor. You will need to make sure that the current sinking and sourcing specification for the DIO-96 fits your stepper motor. That board is not designed to source very much current at all so this is one issue you will need to verify. Also, this board does not have any counter/timer logic that can handle quadrature encoder inputs.
    Again, this digital device is probably not the best solution to control a stepper motor, but, depending on your hardware, could be configured to work proper
    ly. The PCI-7334 is a low-cost stepper motion controller that can control up to 4 axes and is designed to easily accommodate these types of applications. You can browse through more information on our Motion controller boards at the following website:
    http://sine.ni.com/apps/we/nioc.vp?cid=3809〈=US
    Let us know if you have any more questions or comments.
    Regards,
    Michael
    Applications Engineer
    National Instruments

  • How can I control a dc motor speed using an optical switch?

    I am trying to use LabVIEW to create a VI that controls the speed of a DC motor. The system needs to have an user set rpm and the DC motor needs to adjust the duty cycle to obtain the correct rpm dependant on the load. A disk with holes and an optical switch is being used to measure rpm.
    The current problem is that I cannot get the rpm based on the optical switch.
    Thanks for your help!
    Attachments:
    Speed reg.vi ‏183 KB

    The error for the samples to write does not appear after redoing the vi. Thanks. The controller seems to be working mostly.
    However, the issue with the Tone Measurement reading inaccurately at low frequencies still exist. Any ideas?
    I have attached the latest vi.
    Thanks again!
    Attachments:
    speed_reg_v2013-05-07.vi ‏183 KB

  • How can I control my step motor

    I am using a 6006-DB 3-mothor driver and a NEMA step motor model 405-SM, both from AMSI corp. I would like to control my step motor using LabVIEW. We use the LV. 5.1.1 version and we have a PCI-MIO-16E-40 as adquisition card.
    The sistem I want to built is to control my step motor and while turning detect the intesity variation on a photodetector which is conected to my adquisition card.
    I wonder if somebody has an idea how to do that.
    Thank you in advance
    Daniel Hernandez

    Ok I understood, I can use my PCI-MIO-16E card to control my steper motor driver, I will try to do that. But, if I use a DB-25 connector, how can I use my PCI card??
    I was thinking to use the parallel port, directly, to conect my steper motor driver.
    I attache some VI someone passed me. (It use a Setbit.vi and out port.vi)
    Attachments:
    MoteurGOTO6007-DB.vi ‏81 KB
    MoteurGOTO.vi ‏87 KB
    Commande_moteur.vi ‏10 KB

  • How can I backup an external hard drive using Time Machine?

    How can I backup an external hard drive connected to my MacBook Pro using Time Machine?

    Attach drive, open Time Machine preferences, be sure external drive is not in the Exclude list.

  • Can I control a stepper motor by a time varying velocity input?

    I want to control the motion of the stepper motor by a velocity input that looks something like a Sine wave.The velocity is changing as a function of time. Can I change the velocity of the motor at a prescribed time interval?
    Thanks in advance
    Kevin

    Thanks for getting back to me on this. The controller card that I have is the PCI-7342 controller card. The time of a cycle is about seven minutes. I want to ramp the RPM of the motor from zero up to a max value then return it to zero and then go in the opposite direction . A graph of the RPM vs Time is attached.
    I thought that I could input an array of velocities into a Load RPM VI and specify the time for each input.I have not been able to do this as of yet, because the load RPM VI will not take an array input.
    All these inputs would be made in labview so they are inputs for the controller card. I was under the impression that the controller card generates the steps and direction from the data entered in labview and sends the step and direction impulses to the driver. Do I have the method of operation right?
    Do you think this is possible?
    Thanks again

  • How do you controlling a stepper motor

    I want to control a stepper that is lifting a scissors lift but I want to calibrate it to different height enter in the heights into memory and then recall when necessary.

    Not sure if you were looking for electrical help or programming help. If you want more details you could reply to the thread....
    You need a stepper motor controller. This is an electronic circuit. They can probably be found with a web search. The range in prices from $50 to $1000 or more. Or you can build one using componants from National Semiconductor or Allegro or Texas Instruments or other chip makers.
    Depending on motor configuration, you can have a unipolar (6 wires, 3 wires per phase) or bipolar system (4 wires, 2 wires per phase). If you don't have instructions with your motor, you can figure out phasing with an ohmmeter.
    Usually the controller has a square-wave input and a direction input. Sometimes some other inputs. Usually there is one step (or even one microstep, depending on the controller) per rising edge. Sometimes they have an analog speed input, but this kind of controller is probably not right for your application.
    You can count steps in one direction. The stepper controller takes care of powering the windings to make the motor turn round. Then count steps back. Unless you have stalled the motor, the motor steps are very repeatable in location. If you remember how many steps from some reference point (i.e. all the way in one direction, say), you can save the position reference and come back to the location by counting up or down until your current position reference matched your saved reference.
    Hope this helps some.

  • How can i control my new mac mini using my new macbook air? Thanks

    Hi, I would like to control and even file share my macmini using my macbook air... the mac mini is plugged into the family 50inch plasma... so getting access to it is not always easy! I'd like to play itunes, films, file share, just about do everything from the macbook air as if I was on and in front of the macmini... i'm hoping to do this from any country using wifi!
    I've looked at screens - vnc client, but can;t find anywhere where it says I should download the app... is there a master to download to the mac mini, then waht do i download to the macbook air to enjoy control... also am i expected to download twice and pay twice?
    I'm very new to the mac world... loving it, but lots to learn! Appreciate your help, thank you
    Chris
    PS... bonus if I can also control the mac mini using my iphone4 and ipad 2 (yup, my bank balance took a major hit.... apple certainly got me hooked!)

    Sceen sharing is built into the OS  go to your help in the finder and type in "screen sharing"
    To set up screen sharing: (on the mini)
    Choose Apple menu > System Preferences and click Sharing.
    Select the Screen Sharing checkbox.
    To specify who can share your screen, select one of the following:
    All users: Select this if you want to allow any user with a user account on your computer to share your screen.
    Only these users: Select this if you want to restrict screen sharing to specific users.Click Add at the bottom of the Users list and select a user from Users & Groups (accounts you have set up in Accounts preferences), Network Users (users on your network), or your Address Book. Or click New Person and enter a name and password to create a sharing account. Then select that user from the list and click Select.
    Click Computer Settings and set the following options:
    Anyone may request permission to control screen: Select this to allow anyone on your network to request to share your screen.
    VNC viewers may control screen with password: Select this and enter a password that VNC viewer applications can enter in order to control your screen.
    It’s recommended that you not set a password if you only share this computer’s screen using the built-in screen sharing viewer in Mac OS X.

  • How can I control the PP (monitor) volume using my computer volume controls.

    I'm no longer able to control the PP (monitor) volume using my computer volume controls. I've always controlled the monitor volume using my computer volume levels, but starting today, that has changed.
    The volume is just playing at the level recorded with no way for me to turn down or up.
    I performed a disc repair and that didn't solve the problem.

    Does the OS volume control affect anything?  System beeps and sych?

  • How can I pay for photoshop CC without using a credit card?

    My son is paying for CC without using a credit card, The subscription is being taken from his bank account/debit card, I was told this wasn't possible by an adobe rep. Is it possible?
    Adobe told me everyone that has a subscription must have a credit card to pay.

    A debit card, if it can be used as a credit card, can be used to pay for anything online. If he's using his debit card to pay for his CC account then it is possible. The rep may have just been referring to using a checking account being a method that isn't possible.
    He needs to stop using his debit card to pay for anything online as debit cards are unsecured so if someone were to acquire the card number they could clear out his checking account and your son would be unable to do anything about it.

  • Closed loop control of DC motor drive using PCI 6251

    Hi
    i am using NI PCI 6251 for closed loop control of dc drive.(shunt motor,220v, 0.5HP, 2.5A rated, 1500RPM)
    the dc motor is fed from a bidirectional dc-dc converter. this converter works in boost mode(forword motoring) and buck mode(braking mode/battery charging)
    the converter is built using mitsubishi IGBT module. at low voltage side of the converter a battery bank of 48V is connected and high voltage side the motor is connected.
    An IR sensor is developed to measure the speed of the motor and a hall current sensor is used to sense the converter current.
    in the control part i have an inner current control loop(PWM controller) and a outer speed control loop.both controllers are PI controller. To measure the speed i have used counter of the DAQ assistant, then frequency. then this frequency is converted to RPM using labview.after giving the speed and current signals  to the controllers , then i started  tunning the PI gain, but at the starting the duty cycles was 100%, so the IGBT got damaged immediately. now how to tune the controllers during the closed loop operation.  the switching frequency of the converter is 20KHz.   
    can any body suggest me how to run the dc drive in closed loop ?
    thanking you.

    Hi Premenanda
    The freq data receiverd from the daq assistant has the units of Hz, or in terms of motor speed, rps (rotations per second). I can see that you are trying to convert that to rpm (rotation per minute). which can be done by dividing the rps speed by 60. Instead, you are multiplying it by 60 and also comparing with 2000. the resultant multiplied value is displayed in your program only if it is smaller than 2000.which is causing the problem here.( as seen in file 'original code.png)
    I have attached a file named 'modified code.png' that shows how the conversion from rps to rpm is done. Please do the required changes in your code and let me know if it works.
    Attachments:
    modified code.png ‏18 KB
    Original code.png ‏15 KB

  • How can i read XML from local drive using Javascript into Live Cycle

    Hello,
    I am creating PDF Form using Acrobat LiveCycle.
    I want to write java script for load data into relative field and data present into xml file which is located at local drive
    I have write all method for parsing xml which is required ............... but i am stuck into how to read/open/load local drive xml using javascript?

    sandyrock:
    You'd better post this message to Adobe LiveCycle forum: http://www.adobeforums.com/webx/.3bbeda8d/
    You can use postMessage method in LiveCycle JavaScript to communicate with host application,the host application can be a web brower like IE.
    In IE you can use IE javascript to access local XML file.

  • How can I pay my auto renewal without using my gift card balance

    My auto renewal is up in about 2 weeks. However, I don't want it to pull from my current gift card balance. Is there a way to pay for it seperately?

    Unfortunately no. About the only thing to do is buy another gift card for the service amount and redeem that.

  • How can i control the motor movement of stepper motor using a NI PXI 7330

    Good day to all,
    i'm a newbie in programming in motion control of NI. I just want to ask if how can i control the clockwise and counter-clockwise rotation of a stepper motor using NI PXI 7330 module. all i can do is the counter-clockwise rotation using the example vi (Simple one-axis move.vi) found in the examples of LabView 2009.
    Thanks

    what type of limit switch sensor are you using and how did you wire itß What are your MAX settings regarding the limit switches?
    Good day SIr Jochen,
    I am using two reed switch for the reverse and forward limit. I wired the signal wire of the reed switch to the limit ports(forward and reverse Limit) and its ground to the digital ground of the UMI-7764.
    the attachment below is the my max configuration about limit switches
    Attachments:
    max configuration.JPG ‏155 KB

Maybe you are looking for

  • Unable to close parent browser window

    Hi, I am trying to close parent browser window from POST-FORM trigger using java script as it is described on metalink. My browser (IE 6) appears to be hanging when trying to execute web.show_document with java script. I am pretty sure that it is a k

  • Internal Update Server Error Code help

    Error code in FlashInstall.log  [warning] 1407 12044 vs [warning] 1403 12030 I am trying to figure out why my internal update server wont connect past the certificate handshake. I can get it to work with a self signed certificate from the machine nam

  • Print:Panel To PostScript Method

    I´m using labview 2011 and I want to use the method "Print : Panel To PostScript Method" and I can´t find it, I can only the others print methods. Can someone upload an example with this method, so I can copy it? I really need it. Thank you guys!

  • What does it mean This software requires Mac OS X version 10.6.8 or

    after downloading the latest itunes im unable to update my new iphone 5 because it says "this software requires Mac OS X version 10.6.8 or later" My computer is all up to date thanks

  • Installing Photoshop CS6 error?

    I got these error messages while installing photoshop CS6, and illustrator cs6 on my laptop. ERROR: DW050:  - Microsoft Visual C++ 2008 Redistributable Package (x64): Install failed ERROR: DW050:  - Microsoft Visual C++ 2008 Redistributable Package (