Stepper control with labview

Hello again,
Im developing a project with a lazer pointer attached to a stepper motor, my program allows me enter a value and make the stepper  "step" a certain amount of times .This works ok but I have to stop the program running and start again in order to make the stepper step again.Is there a way that I can enter a value to make the motor rotate then enter another value to make it rotate again without stopping and starting the program. Ive attached my vi
any input is much appreciated
Attachments:
jonnystepper.vi ‏133 KB

Thanks!!
Right here goes, the array in the while loop defines the sequence for half step mode, this array contains 48 values and therefore if all the elements are read this gives 48 (half) steps which corrosponds to 90 degrees of rotation (the motor gives 3.75 degrees per full step). The for loop part of the vi allows me to enter a value in to the control named index 2, the array in this part of the vi contains values that corrospond to a particular number of half steps.So if I have 48 in the first element and 24 in the second element this allows 90 and 45 degrees respectively, if 0 (first element) is entered into index 2 the for loop iterates 48 times and therefore I get 90 dgrees of rotation,if 1 (second element) is entered into index 2 then the for loop iterates 24 times and I get 45 degrees of rotation. What i would like to achieve is .......enter 0 into index 2 then start the program, when the motor has finished rotating  I would like to change the value in index 2 to1 and see the motor spin again without having to start and stop the program.
Apologies for explanation........I hope you can understand the jist...please feel free to tell me if you think my method is incorrect or contrived
with freunlichen Grüss

Similar Messages

  • Automation unit control with LabVIEW

    I use LabVIEW 7.1 and NI FieldPoint devices (FP-1000) for educational
    purposes. I want to control a automation unit which has got 6 digital
    input and 6 digital output. Before I used the sequence structure, but
    actually I am not sure the solution whether true or not. How can I do
    like this control with LabVIEW?

    Duplicate.
    Try to take over the world!

  • Oriental Motor control with labview

    I am trying to control third party (Oriental Motors) stepper motor
    controllers with Labview. I have managed serial communication, but command
    aren't being sent. Can anyone help me?

    Hi Azim,
    It looks like Maxon posted a driver for the DES servoamplifier here: 
    http://shop.maxonmotor.com/maxon/assets_external/Katalog_neu/eshop/Downloads/maxon_motor_control/4-Q...
    The DES can communicate via a command voltage from a motion controller, in the NI case you would use a PCI or PXI 7340 or 7350 series motion controller, and set the drive to +-10V command input mode. 
    It can also communicate over Serial RS-232 or CAN. I believe the above linked driver implements serial communication, but I haven't had a chance to look at it, so I'm not positive. 
    See description of modes and comm interfaces here:
    http://shop.maxonmotor.com/maxon/assets_external/Katalog_neu/eshop/Downloads/maxon_motor_control/4-Q...
    Best Regards,
    Nate

  • Stepper Control with labjack

    Hi everybody,
    Im doing a project at uni that requires me to control a small stepper with labview. The program I developed can generate the correct binary sequence (using a 4 element array) but the problem im having is obtaining a high enough frequency to drive the motor at sufficient speed. Two pieces of hardware that ive tried to use are Labjack and NI ELVIS(to output the signals). I now Have access to NI DAQPad-6015.

    What frequency range do you need?
    Using discrete digital outputs toggling on/off, you will be limited by the iteration speed of your software loop. This is probably limited to 100's of Herzt, most likely less than 1KHz. Post your code, maybe we can help. Please note that software timing can be indeterminate due to Windoze overhead- the speed of your motor may not be constant. Also note that your stepper may stall out if you command it to accelerate too fast.
    The other option is that the DAQPad-6015 has 2 counter/timers that you can use to generate a wide range of frequencies and dynamically change and ramp up and down in frequency. But you would also need additional simple hardware (state decoder) to generate the 4 discrete phase signals that go to the motor drive electronics.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • 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 KB

    Hi 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

  • Off the shelf XY gantry system controlled with LabView

    I am looking for an XY gantry system that I can easily control from labview.  I need a workspace of 11 by 16 inches with minimum clearance of 6 inches.  I was wondering if anyone has used a commercially available XY gantry or has any experience with an XY gantry.
    I have found these two tables/brands that already have LabView drivers
    http://www.zaber.com/products/product_detail.php?detail=G-LSQ450D450D&tab=Series%20Features#tabs
    http://www.techno-isel.com/tic/Catdas/Gantry3.htm
    And this one that looks promising too
    http://www.animatics.com/en/products/table-top-robot/animatics/table-top-robot/2-axis-ttr-xy-configu...
    Both Zaber and Techno Linear do not know of anyone in my area (Loveland, Colorado or Denver area) that I could go visit to see a table and I would like to see a working system before making a decision to buy a new system. I have not been able to talk to an engineer/technical sale representative at Animatics yet. 
    I am looking at using the XY gantry to position a sensor over a tray of parts to measure some properties of the parts.  The system I am designing does not need an high accuracy table (+- 0.005" is fine).  I would prefer to spend about $10K for a XY gantry table including any required controllers and hardware. 
    Thanks,
    Brian

    You have a good start, but 2 other things that you need to consider are your load and speeds required.  This will determine the mechanics of the gantry(ball screw, acme screw, belt, bearing type, etc.).  It will also determine if you need servos or you can get away with steppers.  You then need to figure what kind of motion you need.  Point to point moves can be accomplished with non-interpolated controllers, but any kind of coordinated motion will need a motion controller that can do true interpolated motion.

  • Simple motor control with Labview

    Can anyone suggest a simple motor to be controlled by labview. I am interested in making a small scale elevator that is controlled with a labview interface. If anyone could point me in the right direction it would be greatly appreciated. - Bryan

    Attached is the vi for the program.  I will also try and attach the C code for the project.  It took a lot of failed attempts to get it working so I hope this works for you.  I don't have a schematic for you, but if you look over the C code it should let you know.  Also I used the CCS development kit 16F877A.  I'm not great at programming in C so there is a good chance you can clean it up a bit.
    I'll keep an eye on this post if you have any questions, when winter comes I'll probably work on this some more.
    Message Edited by nutmegzzzz on 09-19-2005 01:56 PM
    Attachments:
    Serial Read with Timeout version 1b.vi ‏169 KB
    LED and Motor Control from LabView - Complete.c ‏3 KB

  • Spindle motor control with labview

    Hi
    I want to control the spindle motor with Labview. It is maxon motor EC 32 with encoder and controller. I can control it with the GUI software. But, I am not sure that there have any such options in labview to control the motor? Please let me how I can control this spindle with the help of labview.
    Thank you for your co-operation.
    Best Regards
    Azim

    Hi Azim,
    It looks like Maxon posted a driver for the DES servoamplifier here: 
    http://shop.maxonmotor.com/maxon/assets_external/Katalog_neu/eshop/Downloads/maxon_motor_control/4-Q...
    The DES can communicate via a command voltage from a motion controller, in the NI case you would use a PCI or PXI 7340 or 7350 series motion controller, and set the drive to +-10V command input mode. 
    It can also communicate over Serial RS-232 or CAN. I believe the above linked driver implements serial communication, but I haven't had a chance to look at it, so I'm not positive. 
    See description of modes and comm interfaces here:
    http://shop.maxonmotor.com/maxon/assets_external/Katalog_neu/eshop/Downloads/maxon_motor_control/4-Q...
    Best Regards,
    Nate

  • MapPoint ActiveX Control with Labview 7.1

    I am looking for a basic example on how to integrate a MapPoint ActiveX control into a Labview vi so I can pull up maps at a given set of lat-long coordinates with zoom in and out capability.   I'm new to Labview and activex container use and have not previously attempted to program with MapPoint, but that is what I have to work with.  Not finding discussions on MapPoint use with Labview, at either MS site or here, so am looking for assistance to get me started.  Using Labview 7.1, MapPoint 2004 and Windows XP.

    Hi,
    I'm afraid I don't have any experience with MapPoint, but some of the other members might. If so, it would be great if they could post any code they may have...  
    As a general rule, programming ActiveX is a little tricky since properties and methods aren't always documented well. Furthermore, the ActiveX hierarchies for a particular application can change from revision to revision. This is why programs using activeX to interface with Word or Excel have problems with different versions of Office. If you have to use Map Point, you may want to check MSDN for any information they may have. You may also want to check out the ActiveX examples in the Example Finder by searching for ActiveX. They should give a general understanding of how ActiveX programming is done on the LabVIEW side of things.
    If you can use a web based application, it might make your life a little easier. You can specify lat long coordinates in Google Maps very easily. Im attaching a simple application that does this for you. Just enter the lat and long in decimal format and hit run. The resulting map will show up in the container on the front panel and you can pan or zoom to your heart's content. I hope this helps. Good luck with your application and happy holidays!
    Regards,
    Chris J
    Message Edited by ChrisJ on 12-20-2005 05:00 PM
    Attachments:
    lat long example.vi ‏33 KB

  • Solenoid Control with LabVIEW

    Hey everyone,
    Im brand new to LabView and I am in need of some assitance. Ive attached a picture of my block diagram setup. I need help with making the LabView code in order to help run this setup. I want to use LabView to activate my photoelectric sesnor, which when tripped will activate my solenoid valve immediately. The maximum allowable time between the photoelctric sensor being tripped to the valve opening cannot be greater than 50 milliseconds. I would also like to active my high speed camera 1 second prior to the electric sensor being activated. I have included the parts I am using in a list below. Thanks for all the help in advance.
    Solenoid Valve: SV-282 from Omega
    Photoelectric Sensor: Comet 14101A6517
    Output cDAQ: NI-9472 (powered by external power supply "NI PS-15 24V")
    Input cDAQ: NI-9421
    Camera: Phantom v7.3 (connected through ethernet)
    In summary: with labview, activate camera, activate photo sensor which when tripped will open solenoid valve immediately.
    Shervin Aslani
    Solved!
    Go to Solution.
    Attachments:
    IMG_20130730_142033.jpg ‏2537 KB

    I'm confused as well.  Why are you sending a signal to a sensor???  Provide power to the sensor all the time and read the digital output from it. Then, send a signal to the solenoid to activate whatever physical action you require when the sensor is triggered.
    EDIT:  One more thing.  Since LabVIEW lacks any sort of time machine functionality you're going to have a fundamental problem activating your camera 1 second PRIOR to your trigger signal.   Usually the answer to that sort of problem is solved by recording the video data constantly in a ring buffer and then when you receive your signal you grab the data.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • MCA control with labview(?)

     Hello I am a psysicist  trying to build a rotating photon detector (gamma camera) powered by a stepper motor. I am using a PCI-6503 to control the stepper motor and and ORTEC's ASPEC-927 Multichannel Buffer for the signal acquisition and I need some help & guidance.
     My problem is the control of my Multichannel Analyser, which is normally done with Maestro 32. I need to perform the following sequence: step (stepper motor) - begin counting - stop counting- export data (results) to Labview- next step etc. I have to find a way to do it through Labview.
    I tracked some NI forum posts referring to MCA drivers but they were too old (2000) I hope thing have changed since then. I have also been searching a lot in the internet but all I have come up with is either a publication "LABVIEW-BASED MCA EMULATION SOFTWARE FOR ORTEC MULTICHANNEL BUFFERS" or some reference to ActiveX usage for such a task. If someone has knowledge on the matter, I would like to know what is achievable and what is not. I have no knowledge of ActiveX programming whatsoever by the way.
    ps.I haven't found anything relative to the communication of  labview with Maestro 32 which is the default software provided with the MCA card nor "reading" the .chn output files from labview so I assume it is out of the question.
    thank you in advance

    Hi Ycano,
    Yes, you can operate your motor in velocity mode by using the Set Operation Mode VI to change it from position mode to velocity.
    As for your control feedback loop, are you bringing in the feedback from the load cell via a separate DAQ card? If the load cell outputs a voltage in the +/- 10V range (if it's not a current transducer or doesn't require an excitation voltage), you could connect it straight to the analog input on your motion controller and directly implement it in your control loop for your motion controller. That feedback could then be operated upon at a faster rate than if you brought it in separately from a DAQ card (a closed loop stepper system).
    Also keep in mind that load cells generally have a slow update rate, so they may be the limiting factor in how fast your system can respond to changes.
    Regards,
    Vijay S.
    National Instruments

  • Spykee Robot control with Labview

    Thanks to the Spykeedev community forum, where you can find the TCP protocol to control Spykee, we wrote a set of VIs for connect and control the robot. In the example normally ignore the TCP communications because not all the command return ever a response.
    For display the webcam images the robot a JPEG file and labview only decode JPEG reading from a file, not directly. Then the VI write to a binary file an after, read the file and decode the JPEG. This caous not get more than 2 images per second.
    Is necessary improve the VIs, and one of the main improves are decode the JPEG protocol directly without write and read the file, and convert it to a format that Labview can work (picture, IMAQ,...).
    Still there is no VI to work with sound.
    The VIs are writen in Labview 2009
    Hope this help,
    Attachments:
    Spykee_labview2009.zip ‏518 KB

    LabVIEW comes with RS232 examples.

  • VFD Control with LabVIEW

    I have a Mitsubishi FR-S510 VFD to control an AC induction motor,with the Mistsubishi software to set parameters and such-my question is this:
    I need a way to use LabVIEW to control the motor controller.I am fairly new to LabVIEW but thought someone may have been down this road before...any ideas would be greatly appreciated.
    Alex

    Hello Vinnygalbo
    I am planning to use LabView with a WJ200 Series (WJ200-075LF 15hp 200-240volt) Hitachi inverter for my CNC spindle motor. I was trying to download software for Hitachi Drives from your suggested site (http://www.ctiautomation.net/Software.htm). Unfortunately, the button for Hitachi is disabled; I could not find it there. Could you please upload it here that one you used for your application?
    Regards
    Apple

  • Simple device control with LabVIEW 7

    Hello,
    I have been a LabVIEW user for about 6 months and feel very comfortable with the "basics." I have used V7.1 with SCB-68 connectors as well as SCXI-1100 systems. I have written vi's that take voltage in from a variety of devices and produce good results.
    For the next phase of my "education" I would like to build simple vi's that do things like turn motors or pumps on and off. After that, I would like to be able to use a vi to say, adjust the speed of a DC motor.
    Are there vi's or links at the NI site that can help. I have searched the site extensively but have not found anything that propels the user from the passive analog input stage to using LabVIEW to interact with devices in the lab.
    Please advise.
    Thanks!

    Unless you're using the SCXI-1600 to drive the SCXI system, you should
    have a DAQ card that has a couple analog outputs on it. If you do have
    have the SCXI-1600, you'll need to get hold of a DAQ card that has
    analog out's on it. Check out NIs M Series of cards or the SCXI analog output cards.
    Once you have something that generatea a voltage, open the Example
    Finder in LabVIEW (Help>Find Examples) ans double click through
    "Hardware Input/Output>DAQmx>Analog Generation>Voltage" and
    you'll see several examples showing you how to create a voltage. These
    examples all have the source code included so you can see how
    everything is done. Use then as a starting point and save them
    somewhere else if yo modify one.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Maxon motor control with LabView

    Hello everybody, I am new here and I have been trying to learn how to make this process work for a while and I have ran out of options. LabView is very hard to comprehend.
    I am trying to control a Maxon motor using the epos 24/5 controller. I have a vi that does what I need to do, but I need to find a way to make the process run faster. Basically is going to control a wing that is going to go back and forth at very high speeds. I am not sure what I need to do, also I would like to generalize the process by being a able to input a function or a position wave of my choosing. If any of you all can help me it will be greatly appreciated. Thanks ahead. 
    Solved!
    Go to Solution.
    Attachments:
    Absolute Position Attempt.vi ‏26 KB

    Davide,
    I found some screen captures, this vi worked really well the only problem I ran into was the I could not adjust for the inertia of what I was controlling so it would  not follow the sinousoidal wave I needed. You can do a similar set up for analog input for position.
    I highly advise of learning labview properly first, instead of just going at it. As starting small knowing what is going on( a lot of little things) and working your way up.
    (i had help in this one so some of the details of the control such as outputting of the digital signal I do not comprehend fully)
    Carlos
    Attachments:
    Capture1.JPG ‏141 KB
    Capture2.JPG ‏263 KB
    Capture3.JPG ‏170 KB

Maybe you are looking for

  • How to boot from external firewire drive

    Apparently my internal HD on the powerbook has died as it repeatedly gives me the black screen "restart" message and re-install of system software fails. I have an external bootable firewire drive, which is a "carbon copy" of my iMac, however, it's S

  • I have a problem 4GS w/IOS 6

    I was recently using the photo app.  It has locked up with the shutter closed and the flash permanently on.  I have turned off the app but the flash stayers on.  I have powered down but the flash stays on.  I have tried a hard off holding down the ho

  • Error on display of remodelling rule in Quality System

    Hi, I have created a remodelling rule to delete a characteristic infoobject from a cube and the same in working fine in the development system. I transported the remodelling rule to the Quality system. the same was transported with out any error. But

  • "Disk is too slow/system overload"??? Help!

    Hey I'm running Logic Express on a G4 with OS X 10.4.10. My processor is 450 MHz, and my memory is 896 MB SDRAM. When playing back around 6-7 tracks, i get a message saying: "CoreAudio - Disk is too slow or System Overload (-10010)" or "CoreAudio - S

  • Table Link between Equipment and Sub-equipment

    Hi all My requirement is this I have one mobile set with a serial number. for that mobile set i have one battery with a serial number, now i want to link both the serial numbers, one as main and another as sub item I tried by maintaining the battery