Stepper motor and LabVIEW - loop

Hi guys,.

I'm trying to control a motor step by step using a 6008 OR. I did a little research and I know that there are some problems using the 6008 with a stepper motor, but for my project, it should work perfectly.

What I need:

A VI that will control a stepper motor and rotate the engine until the angle typed. The engine has a 7.5-degree increase. I build a VI that will continue to run the engine at the desired angle whenever I press the button 'GO '. But it only works for the first time that I press 'GO '.

The problem:

After the first iteration, if I press "GO" once again, it does not apply tension on the next pin, because it restarts the loop. And that makes the engine to become crazy.

The solution: (I don't know how to implement)

Make the engine go back to the initial position when I press the button "RESET". In the case, whenever I want to change the angle, I just push 'Reset' and then 'GO' and the engine would go to the desired position. Or even better: when I press the 'GO' button, the engine would automatically return to its initial position and then move to the desired position.

BTW: I would like to return to the initial position without having to do a 360 loop. I know how to do this.

The VI that I created is attached to this message.

Help, please.

Thank you.

Hi, Gear,

I tried to drive the stepper motor by a table of pre-defined and rotation of each step.

Hope that helps.

Tags: NI Software

Similar Questions

  • Where can I find the tutorial or sample Vi to control the position and speed of the stepper motor?

    Hi all

    I use a driver on 3rd for a stepper motor and I use USB6356 as the controller to drive the motor. Could you recommend some VI sample or tutorial on the position and the speed control of stepper motor?

    Thank you

    The best

    I think that what you are looking for is the LabVIEW SoftMotion Module:

    http://sine.NI.com/NIPs/CDs/view/p/lang/en/NID/14234

    Here is a good resource on stepper motor theory:

    http://www.haydonkerk.com/resources/StepperMotorTheory/tabid/192/default.aspx

    My recommendation would be to start from a counterexample of LabVIEW. These can be found in LabVIEW > help > examples > material input and output > DAQmx > input meter, output meter.

  • Help me build a stepper motor control in LV?

    I need control a single linear axis slide that is driven by a motor nema 34. It will be very simple move, start, move at a constant speed, stop, return. I do not have the engine.  I can use a controller and a software company that sells me the slide, but prefer to use Labview.

    I currently have a PXI chassis with a 6713 or 6704 available, or a '2 M Gate FPGA and cRIO-9073' with a NI 9401 I'll take delivery of every day now. I don't know much about the system in real time, but I have to learn it soon in any case.

    Can I use my existing hardware/software to create a stepper motor control, or at least can I use Labview to interface with a motor drive step by step if this is not possible. I am currently looking at a 34T 1 Vexta engine, but do not know much about the stepper motors and do not really want.

    Edit: Should have mention that I LV 8.6, with no motion software.

    Engines step by step to have two power circuits creating magnetic fields perpendicular to each other inside the engine (in mathematics a certain sense anyway) you can consider working like pistons on a crankshaft which are out of step 90 degrees. You can use LV to manipulate these two. Want to make their vector sum in different directions while moving. Imagine making a point on a chart around the origin orbit. You need to consider things like the speed at which you can start the dot in orbit. Engines step by step can't go very fast if you add the requirement that the application start and stop without having to build your own ramp.

    But it would be a big enough work for all, but more simple movements. You will need to learn less about stepper motors if you buy a motor controller that supports ASCII strings on a line of serial port as its instructions. I did recently with good results. LV must compose strings and write to the serial port of the PC. Having the engine go to a post 2205 units requires composing a string like this:

    d 2205

    go

    It works fine without another component or software purchases.

    I did something a little more complicated and wish now I had started with a decision to use the material in motion control of OR, or at least look at more the issue. When things are more complicated, using a serial port as the bridge between the PC and whatever the microcontroller is located in the drive motor starts to introduce limits you can schedule around with a lot more trouble.

    You have many options depending on your purpose what is and how much trouble, you have to take.

  • Linear actuator, motor controller and labview. Establishing a connection.

    Overview:
    I have a 12VDC linear actuator (potentiometer built in) connected to the and 21v3 Jrk USB motor with Feedback Controller (http://www.pololu.com/catalog/product/1392). Feedback from the actuator wires connect to the motor controller motor USB controller connects to the computer via USB.

    Problem:
    Establish the connection between the motor controller and labview.

    What I've done so far:

    I installed the drivers for the motor controller and windows detects it. OR MAX detects my motor controller (photo attached), but for some reason when I try to access it via the daq assistant in labview is not see it. I tried also access it through VISA with no result...

    Help will be appreciated.

    Thank you

    Peter

    You have some things you have to look in:

    • When you have installed the software, he was installing a USB > dll Com Port virtual as FTDIchip or similar? If so, when connect you your device, it will reveal itself as a normal COM (new) Port in Device Manager. You then try to talk to this COM port.
    • If you try to use the USB native on the map (as MAX has detected for you), then you will need to use the code in the .NET framework provided by the manufacturer (probably written in c#) and do your own builders in LabVIEW. If you have never done this before, it's not trivial.

    I would call the manufacturer and just tell them what you're trying to do. They have probably treated before LabVIEW and can have an example to help you get started.

    Edit: for fun, I followed the link you provided (which doesn't really). I searched "LabVIEW" of their site and indeed has achieved several successes. There is one thing that I downloaded (can't resist looking at code) was a gigantic turd. However, it doesn't use a standard Com port.

  • Problems when you try to move the 3 stepper motors

    Hello

    I have problems when I Isaiah to compile a 3 stepper motors control program.

    I have 3 steepest motors and controller (3 SMCP33 + SMCP33-EVA) nanotec.com, they also provide an example of Vi to control a motor that works successfully, but problems happen when I try to adapt the program to try to start the 3 Motors. The final application for this is going to be a Cartesian robot XYZ so finally I need to program coordinates to move the 3 Motors.

    I am new to LabVIEW, so what I do is try to adapt the nanotec example to order 3 engine as follows.

    -J' I assign each engine a different address, doing so that I can run each engine separately. But when I try to run 3 programs at the same time, they work but all moving them the engine (the first that has been run).

    -If I try to make a sort of sub - VI is the same thing, only one motor is driven.

    -Moreover, I get a warning when I try this, I have attached a screenshot of this.

    I have attached the Vi and texture it to improve my description.

    I woul be grateful if someona can help aport.

    Kind regards.

    Thanks for posting the original.  By comparing the two screws immediately gives an indication of what might happen.

    In the picture you posted you circled two places where you changed the address of the reader. In the Example.vi - Nanotec address of the player is connected to about 14 seats.  So when you try to run the other engines in your modified program, the 12 places, you have not changed the address of the player are always preset to motor 1.

    What you need to do is to divide the example VI in at least three parts.  The first part initialization. The next part moves the engine.  The last part ensures that the engine is stopped and made any required another stop.  Each party becomse a separate Subvi. Each Subvi has the address of the reader as input.  The initialization and shutdown parts are placed before and after a while loop.  The movement parts are inside the loop.  You can use three of each sub - VI for the three engines or a Subvi combined with subVIs move three to manage all three engines.

    I can't say what approach might be better without knowing more about how you plan to order the engines - one at a time or all three at the same time, what kind of feedback is used, how management mistakes and other topics.

    Lynn

  • Stepper - motor count measures

    Hello
    I am a beginner in the LabVIEW.

    I need an advice. How to count the number of steps of the motor stepper motor control turn the potentiometer and its rotation is necessary to complete the 170 steps. The LabVIEW I did the manual control of a stepper motor. I used two case structures. First of all for the start and stop of rotation and the second to change the direction of rotation.

    When the motor turns to the left, the "number of steps" is incremented, and when it turns clockwise, the number in the decrements of the indicator to zero, but I need to decrement the numbers, which are recorded during a turn to the left (for example) 56 instead of 0, -1, -2, 57, 58, 59...)

    Can it be somehow put implement into my program or is there another solution for counting steps?

    Thank you

    Instead of 2 nodes (one in each case) feedback, you need 1.  But to make life even simpler, use the shift register that you already have.  Most of the logic inside case structures is not necessary.  Just incrementing or decrementing based on orientation.  Put this value in the registry to offset.  That will keep track of your number of the step.  Now for the boolean array to use index, just use the function Quotient & rest on your number from step 4.  The output remains will tell you exactly which line of your array of Boolean to use.

  • B6560 & 28BYJ-48 stepper motors controller!

    Hi all, a Hello,.

    Finally, I got my B6560 stepper motor driver controller.

    I am now looking at little cost of motor control to do my first tests.

    I got this reference: 28BYJ-48, but I don't get any information on the current, he pushes and he needs.

    http://www.poli.br/~Marcilio/Arduino/motor%20de%20Passo.PDF

    is there anyone who has already used the B6560 with labview?

    and how about the 28BYJ-48 engine any help? experience to share?

    Thanks advance.

    amayas

    The plug-volatge is 5V, phase resistance is 50 ohms. 5V/50ohms = 0.1Amp.

    -AK2DM

  • stepper motor DAQ

    Hey everybody,

    I have a stepper motor wich work good with "control engine daq-stepper (constant speed).

    My problem is the constant speed.

    I need to change the speed during the motion, and I don't know how to do this.

    Thanks for the help and sorry for my bad English!

    Hello

    With the example of a constant speed at all times generate you a PWM with a cycle of constant use.

    To change the speed you'll have to play with the duty cycle.

    To do this, you can take a llok at the following example:

    How can I change the use on my continuous pulse Train?

    Kind regards

  • USB-6501 as Stepper Motor Driver

    Hello

    I've been away from LabVIEW for awhile (6 years or more) and I have a small task to achieve and am really struggling to start.

    I have a USB-6501 DIO and Labview version 8.6.  I need to drive a motor not not that requires 4 input (in my case 2 Port (0 to 3)) and depending on the phase of these 4 signals with respect to the other (its a circuit of H-bridge) the engine to drive forward or backward.

    I started with DAQ assistant and I seem to be communicating correctly with the OID and the engine, but I'm not at the stage of being able to produce my 4 signals.  I know that the USB-6501 must be controlled with a timing (as opposed to the generation of a train of function for example).  However I am stuck at start-up my possible solutions seem very long breath that I was wondering if there was a quick and easy solution to produce my 4 signals?  I don't know I'm missing something.

    Any help/comments would be greatly appreciated, as I'm very rusty and I have no time my solution.

    See you soon,.

    Karen

    I solved my problem...

  • order a motor, using labview

    What are the components do I need to order an engine step by step using labview?

    AlSi, I have a box or-usb-4431 daq. Who will be of any help?

    If his computer then,

    Material: PC > PCI card movement > UMI - 7774 > Motor Drives > stepper motor.

    Software: LabVIEW.

    Better, you can consult with an engineer of NOR. They can guide you better.

    Kind regards

    Leila

  • event structure and while loop iteration

    Hello

    It took me time to identify the problem I have, but I think I've nailed it and need help to solve.

    I am right to say that a while loop that contains a structure of the event will travel only once and then wait for another event to occur before a loop again?

    The question I have is that I need mark to a timestamp of a data acquisition driver (DataTaker) value, and whenever he changes the Labview event structure would take care of the rest of the incoming data.

    So is there a way to make everything in continuous loop on questioning my value of timestamps from my Datataker driver so that I can create an event Value (Signaling) for the Structure of the event to take care of?

    Thank you

    Richard

    Two options.

    1 put the stuff event to query a regular base in its own while loop that runs in parallel to the loop containing the structure of the event.

    2 put the stuff that you need mark in the case of delay of the structure of the event and a thread time-out value in the upper left corner of the structure.  Now, if no event to occur in this time, the structure of the event will run the case of timeout and the loop will iterate again.  The only problem with this method is that the case of timeout to run irregularly, or never at all if it turns out that events come more frequently than the timeout value.

  • Sequence special error in DAQmx create raster scan with 2 Motors of stepper motors: Error Code 200088

    Hello

    I am trying to create a LabVIEW program that controls two bipolar motors to create a raster scan. I use DAQmx and Labview 2012 SP1 with a usb 6008. I got the engines to move in one direction, but when I try and get them to move in another direction in a separate task, I get an error-200088 code indicating that my task is not valid. This happens at the beginning vi to move the motor x in the opposite direction of the task.

    The logic underlying the program is as follows:

    1. move the engine x a certain number of steps to the right

    2. move the engine are a number of steps down

    3. move the engine x the same number of steps as 1 to the left

    4. get off the engine is the same number of steps 2

    5. repeat

    I can get the steps 1 and 2 work but I have problems with step 3. I use a stacked sequence to show the task for each step.

    I appricate all the advice on this topic as part of a final year project

    Thank you

    Aoife

    You can solve this problem very simply.  Move all DAQmx departure calls happen * before * the structure of sequence rather than inside.  Similarly,.

    move all calls to DAQmx Stop and DAQmx Clear happen * after * the structure of sequence rather than inside.

    I would sequence the DAQmx Write calls to write the bit of direction * before * writing the bit clock.   And I highly recommend that wire you

    to the top of your tenants error and outs so you can be informed of any errors in the DAQmx tasks.

    -Kevin P

  • NOR-Fieldpoint supported in Windows 7 and LabView 8.6

    We have a 'classic' with an ethernet controller FieldPoint system. We want to be able to read/write from/to the FieldPoint network using a computer with LabView 8.6 and Windows 7. NOR-FieldPoint is supported in LabView 8.6 and Windows 7?

    Kind regards

    Nate

    Hi natewkidd,

    I feel like some confusion between the operating systems running on a development computer (as Windows 7) and real-time operating systems that run on our real time (such as the PS-2000) controllers. I will do my best to clear up this confusion first answering your questions.

    (1) what is the difference between 2009 LabView real-time and LabView 2009?

    LabVIEW Real-time 2009 is actually a software officially known as 2009 LabVIEW Real-time which is installed after the LabVIEW 2009 development software to allow the user to develop and deploy applications in real time on targets in real time as your PS-2000. You can consider the LabVIEW Real-time 2009 almost as a plug-in for LabVIEW 2009 deployment and development of real-time applications.

    (2) if I have a PS-2000 on the ethernet network and to use a computer that is running Windows 7 and LabView 2009 for record and display data, will I still be able to communicate with the network FieldPoint screws write FieldPoint to my Windows 7 computer?

    If you go just to use the PS-2000 as a network module (NOT to deploy a real-time application to run on the PS 2000 itself), you should be able to communicate with him using just the read/write FieldPoint screw on your Windows 7 with LabVIEW 2009 machine and the driver NOR-FieldPoint 6.0.5. In this case, you actually do not need the Module Time since you do not deploy the application to the target in real time.

    About the PS-2000 unsupported beyond LabVIEW 8.5.1, is because the controller's memory is not large enough to hold the software that is installed on the controller with LabVIEW 8.6.x Module real-time and LabVIEW Real-time Module 2009. For more information on this, you can check this knowledge base article.

    I hope it's useful! Let me know if you have any other questions.

    Thanks for choosing National instruments.

    Aaron Peña

    National Instruments

    Technical sales engineer

    http://www.NI.com/support

  • measure the angular speed, angle and trigger using a gyroscopic sensor breakout board and LabView data acquisition

    How to measure the angular velocity, the angle and trigger using a gyroscopic sensor breakout board and LabView data acquisition?

    There is a single channel data acquisition code which measures the angular velocity, angle and flexibility using a gyroscopic sensor breakout board and acquisition of LabView data attached to this, I need a help to creat two-channel data acquisition code?

    Hello

    Attached is a vi that you can use in order to read the measured angular position of an encoder.

    If you need more examples on the tasks that you can develop with NOR-DAQmx and LabVIEW, you just need to open LabVIEW and click Help > find examples > Input and Output material > DAQmx > entry counter.

    Kind regards

  • Compatibility of boards of daughter BasicTx and BasicRx with USRP2920 and LabView

    I want to know that girls BasicTx and Rx cards Ettus research base are compatible with USRP2920 and Labview or not.

    These cards also supports variable gain or not? Please confirm

    Thank you

    JK

    They will work, but you must use property nodes to configure them. No is no LO so ther is no center frequency setting. I and Q are separate channels so you must separate them and treat them as such. There are no gain as the boards primarily provide access to the ADC.

Maybe you are looking for

  • List of URLS used to build a web page

    Hello My request is very simple but I can't find anything about it on the website, or any add-ons. I want a simple list of all the URLs accessed during a web page load. So for example, visiting a newspaper such as the Daily Mail. The bottom left corn

  • Satellite P500-F12 - freezes after 5 minutes of game

    I recently bought a toshiba laptop P500-12F with the specifications below, the problem I have is that whenever I try to start a game like mount and blade or empire total war, the game works for between 5-10 minutes, but then crashes completely and th

  • Sat Pro 4270: Error IDE on the first commissioning.

    I'm putting a DVD/CD-RW but get error IDE at first startup (before message screen)Loaded with new BIOS 2.70 TRAD but not goNew drive is a Compal TSB24H1 Combo (Brand new)Do I need a different connector

  • Eject button does not work with the Vaio software

  • Time Machine with a 5 d Drobo

    I'm sure that there is no way to do it, but I really want to tell TM to start to throw the old backups to a certain level of ability.  Say that when reached 3 TB backup, empty the oldest to make room for a new back-up. As it is now, this depends on t