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
Similar Messages
-
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 -
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 ???
Thankssnook 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 -
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 KBHi 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 -
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- -
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 -
Running 2 stepper motors with LabVIEW using RMV ST400-NT controller and driver
Hello, I am new to programming as well as motors in general so please bare with me in my attempt to explain myself. I have a project involving laser therapy and I am attempting to control two stepper motors from Falhauber, Type AM2224-R3-AV-4.8. I will be using a RMV ST400-NT controller and driver. Original plan was to use 3 stepper motors for control in 3 axis but realized 2 axis is complicated enough. My power source is an Agilent E3630A. I am new to this whole thing and from what I have read form examples and other posts is that NI drivers seem to work best for these applications. I've written simple programs from examples, reading and watching videos. I want to know whether it's possible for these to work together using LabVIEW and also a nudge to help me get started would be much appreciated. Can someone please help guide me in the right direction, I feel a bit lost when it comes to all this. Thank you for your time and consideration. Also, I will be using Windows 8 laptop with Labview 8.5. I have attached pics of components I will be using.
Justo T.
Attachments:
photo 1.JPG 1150 KB
photo 2.JPG 987 KB
photo 3.JPG 1085 KBHi jtarula,
I want to preface this response by saying that I am mre familiar with NI controller and driver rather than the one that you have. I am assuming that you are using the dll provided by the manufacturer here:
http://www.rmv.com/download.htm
With these, you should be able to interface with LabVIEW using the call library function node. What the controller is capable I am uncertain of. I am certain that you should be able to since another user has commented on the use in LabVIEW before in another forum post.
I also want to let you know that LabVIEW 8.5 is not supported on Windows 8, which means that you may run into some compatibility issues. Here is the compatibility chart.
Paolo F.
National Instruments
Applications Engineer -
Lin engineering stepper motor driver
Has anyone out there written a motor driver VI for a stepper motor from Lin Engineering? Specifically, I'm looking for a VI to control a Silverpak 23CE with integrated controller (model 5718X-01P). A VI for any of Lin's integrated controllers might be useful as an example.
Hey jaydiep,
How does the Silverpak 23CE connect to the computer? Is it through serial, ethernet, etc? This will help in determining how you would need to communicate with this device.
Thanks!
Andy F.
National Instruments -
Is it possible to pickup a specific file from a folder?
Hi
I am wondering whether it is possible to pick a specific file from a folder. I have a shape where I have got a filename and I need to look for it in a folder.
Is that possible?
And how can I achieve this? The next step is to pick the file up and transfer it to another location. So basically in pseudo code I need to ask my defined folder with a filename as parameter. Get the file and move it to another folder.
Suggestions are most appreciated. ThanksAssuming you are using orchestration, you could
create an assembly, install it in the GAC, add a reference to it in your BTS
project, and call it from an Expression shape to resolve the receive
location. You would only really need one static method in a class. Be sure
to add a reference to Microsoft.BizTalk.ExplorerOM.dll.
Example:
using Microsoft.BizTalk.ExplorerOM;
namespace Phil
public class OrchestrationHelpers
public static string ResolveReceiveLocationName(string
inboundTransportLocation, string receivePortName)
BtsCatalogExplorer bts = new BtsCatalogExplorer();
bts.ConnectionString =
"SERVER=localhost;DATABASE=BizTalkMgmtDb;Trusted_Connection=True;Network
Library=DBMSSOCN;"
foreach (ReceiveLocation location in
bts.ReceivePorts[receivePortName].ReceiveLocations)
if (location.Address == inboundTransportLocation) return location.Name;
return null;
In your Expression shape within your orchestration, assuming a message
called "MyMessage" and a string variable "receiveLocationName":
receiveLocationName =
Phil.OrchestrationHelpers.ResolveReceiveLocationName(MyMessage(BTS.InboundTransportLocation),
MyMessage(BTS.ReceivePortName));
If this post answers your question, please mark it as such. If this post is helpful, click 'Vote as helpful'. -
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 -
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 KBHi 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 -
Hi,
I am relatively new to the labview codes for stepper motor control.
Let me start by writing what I am trying to achieve. I am trying to control a valve with a stepper motor. I have a bipolar stepper motor from Oriental motor co. mounted on the valve. I dont have the driver/ controller for the motor. I am thinking of buying a third party low cost controller that will drive the motor and use the labview to talk to the controller.
I am using labview 6.0 and I guess but I am not sure if one can write a simple stepper vi. that will allow one to get around. I already have 6024E data aquisition card running on the computer.
Can anyone suggest how should I go with in achieving this?
Thanks
SALHi Sal -
Most motion applications involve a controller, a drive, and a
motor. The controller runs a deterministic feedback-control loop
and sends updated commands to the drive. A separate drive unit is
necessary because the PCI/PXI bus is incapable of sourcing the current
required by the motor. The drive also takes commands from the
controller to handle error situations and shut down the motor
appropriately.
NI offers a line of motion controllers (PCI/PXI-733x, 734x. 7350) and
motor drives (MID-760x, 765x) that fit most stepper and servo
systems. The controllers have a driver call NI-Motion and an
associated API. This API lets you program your controller in
LabVIEW, LabWindows/CVI, MSVB, etc. If you choose to use a
third-party controller, it will have its own API (VIs and function
calls) provided by the vendor.
If you would like to program your own control loop to handle custom
inputs and algorithms, you can use the NI SoftMotion module. This
module allows you to create a custom controller from your LabVIEW
Real-Time system.
NI motion controllers and drives can be found here: NI Motion Hardware
The SoftMotion module is described here: NI SoftMotion Development Module
David Staab, CLA
Staff Systems Engineer
National Instruments -
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 KBHow 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
> -
I am currently using the arduino stepper motor example to control a stepper motor from sparkfun with an easy driver. The example works perfectly on the first run, however when I press the stop button and try running it again, i have to change the stepper motor number to make the stepper motor work again. I avoid using the abort button, as that can cause problems since the arduino is not completely closing off all its programs.
Can someone explain why this is happening? Thank you.So you are controlling the Arduino via LV right?
To give any kind of meaningful answer we really need to see some code...
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
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
Maybe you are looking for
-
Machine randomly shuts off and then comes back on.
Hello! Basically whats happening is my computer randomly shuts off (No blue screen just powers off) and then immediately comes back on. I am running three monitors and a single GPU. This has happened in two different cities (I moved) I have the same
-
Dear Friends, With PERNR (personnel no.) and REINR (Trip No.), i'm trying to print ABAP report using FM 'FITP_SEND_REQUEST' to print TRIP transaction data. The importing tables data need to be filled up in the FM. For filling data I tried using
-
Copy and paste is second nature. Does anyone know if its possible to have several open copy and past functions. Often one needs to carry more than one thing one needs to copy. Thx <Edited by Host>
-
Can somebody help me with deleting an array
Can somebody help with deleting an array
-
I pad froze on Itunes symbol with cord image under. Will do nothing but turn off. Please help! I finally brake down and by a used Ipad for this?!!?!