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

Similar Messages

  • 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

  • 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

  • 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

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

  • EMG based DC motor control using labview

    I have a project where i need to use my EMG data to control DC motor
    using labview.I've already got the EMG signal by using ADinstrument and
    import the signal to labview. The problem is i don't know how to connect
    the signal with DC motor. This motor will start to move when it detect
    the signal exceed certain value and stop when it less that value. I'm
    still new with labview and i'm using labview 8.0. Can someone help
    me?thanx

    Please check out our Biomedical User Group - there are similar project discussions going on there and links to the NI Biomedical Starter Kit - a free download for doing biomedical data acquisition, signal processing, and other tasks.
    Steve
    Visit the NI Biomedical User Group at:
    www.ni.com/biomedusers

  • Motor control using labview

    I'm new to Labview. I just installed a new labview system with analog output.
    What electrical component do I need so that I can power a decent size motor with labview output? The signal from Labview is only enough to power a tiny motor. Well, the only thing I know is to amplify its voltage using opamp, which doesn't do much since I need to increase its power.
    I don't have good electrical background, but I'm trying my best to learn.....
    Please help experts.

    MrCoolMan-
    This depends on several things.  I have a few questions about your application:
    1. What National Instruments Hardware are you using to control your motor?
    2. Are you using a Stepper or Servo Motor?
    3. How much power does your motor require?
    4. How are you planning on controlling your system?
    5. Does your motor require an analog or digital signal?
    The answers to these questions will be a good way to get started with your application.
    Regards,
    Mike S
    NI AE

  • Feedback application for a maxon brushed motor controlled with a EPOS2

    Hi,
    I want to implement a VI that controls a linear stage moving vertically. On the platform that is mounted on the linear stage i sitting a load cell. The platform has to move up and down in a sinusoidal kind of way, maintaining a constant load on the load cell (one can imagine a piston and cam system, where the piston is applying the load).
    The load cell is connected through a PCI 6014 and is working fine. 
    The computer can communicate with the motor through the "EPOS studio" provided by maxon, but it cannot perform such an advanced task and therefore I decide to use labview.
    I'm trying to modify the VI that is provided by maxon by implementing a feedback with the voltage from the load cell. I want the motor to move in such a way to maintain the voltage from the load cell constant. 
    I'm not very proficient with labview and I would like to know if this is possible and if so can anyone give some directions?
    Thank you very much,
    Matteo 

    Dear Jochen,
    Thank you for your answer.
    1. Which type of EPOS drive are you using? Could you please provide a link to a datasheet? 
    I am using a EPOS2 50/5, see attached pdf.
    2. Are you using a CANopen interface to the EPOS drive and is there also an option to use an analog signal as torque command?
    No, I'm not using the CANopen interface, but the labview VI provided by maxon (see attached).
    No, the controller has no input analog signal capability. 
    3. Are you using LabVIEW for Windows?
    Yes. 
    4. What's the voltage level of your load cell signal?
    +10V to - 10V 
    5. Do you have any idea about the required control loop timing?
    I'm not even sure I understand what you mean, so no, I don't.
    I just want to add that my application won't require a high speed. The vertical motion will be around 2 cm/s at most 3 cm/s and I was considering that quasi-static.
    Thanks a lot,
    Matteo 
    Attachments:
    EPOS2-50-5-347717_09_EN_303.pdf ‏472 KB
    maxon EPOS.zip ‏1520 KB

  • Motor control with 6024e

    I would like to set up a lab to control 1 to 4 axes using the 6024E card.
    Is it possible? I could do my own signal conditioning and amplification.
    I intend to try to use both stepper motors with some closed loop and brushless motors also with closed loop.
    Has anyone got some example solutions for this including what type of motors were used + labview VIs.
    Thanks
    Olivier

    I'm not sure if that would be possible/ or at least worthwhile, using one e series card. Have you considered using a motion control card? This will make the hardware and software implementation so much easier, and could be a cheaper solution in the long run:
    http://www.ni.com/motion/

  • 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

  • Motor control in labview

    I am a new user in Labview and has minimal knowledge on this software. As a part of my project I need to control a Stepper motor using a phidget (Unipolar stepper motor controller). In my case what needs to happen is listed in the steps below
    1) on selecting run the system is initialised and detection occurs to see if the phidget is attached
    2) User on clicking a button open the stepper motor will turn a certain number of revelutions to open the barrier
    3) Next on clicking close the barrier closes down i.e. the motor turns anticlockwise
    I have used the phidget examples provided to study this and the value at which the barrier is closed is '0' and the value at which the barrier opens in '14000'
    how can i set my switch to do this?

    As Bjorn said, a state machine is probably a good program architecture for you.
    Since you are not very familiar with LabVIEW, a good starting place it the on-line tutorials.
    You seem to have a reasonable specification for your project.  Before you start writing code, I strongly recommend that you design it first.  A state chart or a flow diagram is a good way to show what the program will do at each point.  For example you have not specified any error handling.  What will the program do if the phidget is not attached?  How long will the program keep the motor energized if the sensor or revolution counter never reaches the 14000 threshold?  What happens if it goes way past 14000, that is, it does not stop?  By planning all these things first you will find it much easier to write the program and more likely that the program will actually do what you want it to.
    Is this a school project, work, or something you are doing for yourself?
    Lynn

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

  • Advanced, Connected, Industrial Motor Control with Zynq-Take 2: The Avnet Intelligent Drives Kit II

    Avnet has just announced a revised Intelligent Drives Kit II for advanced, connected motor control based on the Xilinx Zynq Z-7020 SoC. The kit includes:
    An Avnet ZedBoard Z7020
    Xilinx Vivado Design Edition voucher
    Analog Devices AD-FMCMOTCON2-EBZ Module
    Brushless DC motor: 24V, 4000 RPM, with Hall sensors and a 1250 counts/rev indexed encoder
    8Gbyte SD card programmed with application
    Ethernet cable
    HDMI cable
    Micro USB cable
    12V ZedBoard power supply
    24V AD-FMCMOTCON2-EBZ power supply
    Linux drivers, application software, HDL source, reference designs, full schematics, and Gerber files
    MathWorks Motor Control Design Package (optional, North America only)
    Dynamometer dynamically adjustable load system (optional)
    Avnet Intelligent Drives Kit II
     

    Just to clarify one of the bullets, the MathWorks Motor Control Design Package is available from Avnet in North America, but the component products are available worldwide from MathWorks directly. Visit mathworks.com/zidk for a list of required products, getting started information, and links to tutorial webinars, or contact [email protected] for more information.
     

  • 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

Maybe you are looking for