DC motor Control with SoftMotion

Hello, Im currently working on a university project using NI hardware. At the moment i need to control the speed of a DC motor but im having some trouble getting started.
Im using Labview Version 9 on a windows 7 PC. I have a Compact Rio and a NI-9505 motor driver module.
I've searched the forums and it seems that PWM is a viable option, i've also come across LabView SoftMotionbut I am unsure as to what it can do.
My question is can SoftMotion be used to easily control the speed of a DC motor attached to the NI-950, and if so can someone please point me in the right direction of some examples.
Thanks

Post in this board

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

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

  • 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

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

  • 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

  • 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

  • Step motor control with a time delay

    Hi all,
    I am trying to control a step motor to move in vertical direction by Labview2010. The specific Labview function blocks are created by the manufacturer of the step motor. Now the axis can move up/down properly but my question is that I want it to move with a time interval. For example, we set the desired position to 10mm and waiting time 1s. When I click on the start button once only the axis moves 1mm and wait 1s. Then axis moves another 1mm and wait 1s. This action will obviously repeat 10 times until the axis reaches 10mm position.
    I will be very thankful if someone could give me some hints.
    Best regards,
    Nicky
    Solved!
    Go to Solution.

    You're welcome
    You should some more to the code so that it's more reliable. There might be some miscalculation between the travel distance and the resolution, i.e. 5mm travel and 2mm resolution will give the forloop 2,5. This should be either 2 or 3. I'm not quite sure how the for loop handles this. I think it will round to nearest. You should anyways check it out. Also avoid using 0mm.
    Good look with your project 
    Regards,
    Even
    Certified LabVIEW Associate Developer
    Automated Test Developer
    Topro AS
    Norway

  • Step motor control with a time interval

    Hi all,
    I am trying to control a step motor to move in vertical direction by Labview2010. The specific Labview function blocks are created by the manufacturer of the step motor. Now the axis can move properly but my question is that I want it to move with a time interval. For example, we set the desired position to 10mm and waiting time 1s. When I click on the start button once only the axis moves 1mm and wait 1s. Then axis moves another 1mm and wait 1s. This action will obviously repeat 10 times until the axis reaches 10mm position.
    I will be very thankful if someone could give me some hints.
    Best regards,
    Nicky

    You're welcome
    You should some more to the code so that it's more reliable. There might be some miscalculation between the travel distance and the resolution, i.e. 5mm travel and 2mm resolution will give the forloop 2,5. This should be either 2 or 3. I'm not quite sure how the for loop handles this. I think it will round to nearest. You should anyways check it out. Also avoid using 0mm.
    Good look with your project 
    Regards,
    Even
    Certified LabVIEW Associate Developer
    Automated Test Developer
    Topro AS
    Norway

  • DC Motor Controlling with ANSI C & DAQ Card

    Hello,
    I have 2 DC motors and a sensor. I have a NI Daq Card and i have a NI Connector board. I am trying to control DC motor with based on sensor values. Based on the conditions motors should move forward or backward. I am also using motor driver, i already connected my DAQ Card to computer and Connector block and i connected my motors to motor driver and my motor driver to connector block. And i also connected my sensor to connector board.
    I gave you a HIGH LOW example which is ritten in PIC BASIC. What i am trying to learn is how i will write in ANSI C and use with DAQ card. And with which function i can read the value of the sensor? Normally if i read port in PIC Basic i will easily read the value.
    I checked the DAQ CARD ANSI - C Examples but they aren't too clear. So this i just wanna ask someone who know this.
    And to show what i exactly mean, here are some code written in PIC BASIC
    INPUT PORTB.0                          ; Light Sensor
    OUTPUT PORTB.3                     ; Left Motor Forward
    OUTPUT PORTB.4                     ; Left Motor Backward
    OUTPUT PORTB.5                     ; Right Motor Forward
    OUTPUT PORTB.6                     ; Right Motor Backward
    ; to make code easy to read we are defining symbols for our ports:
    SYMBOL             LSENSOR                 PORTB.0
    SYMBOL             LMOTORF                 PORTB.3
    SYMBOL             LMOTORB                 PORTB.4
    SYMBOL             RMOTORF                 PORTB.5
    SYMBOL             RMOTORB                 PORTB.6
    Our functions:
    TURN_RIGHT_FORWARD:
    HIGH   RMOTORF
    LOW   RMOTORB
    LOW   LMOTORB
    LOW   LMOTORF
    TURN_LEFT_FORWARD:
    HIGH   LMOTORF
    LOW   RMOTORB
    LOW   LMOTORB
    LOW   RMOTORF
    GO_STRAIGHT_FORWARD:
    HIGH   LMOTORF
    HIGH   RMOTORF
    LOW   LMOTORB
    LOW   RMOTORB
    GO_STRAIGHT_BACKWARD:
    HIGH   LMOTORB
    HIGH   RMOTORB
    LOW   LMOTORF
    LOW   RMOTORF

    Hey there,
    I noticed that you have posted here (http://forums.ni.com/ni/board/message?board.id=250&message.id=31497) and got some answers
    Might be worth sticking to that forum.
    AdamB
    Applications Engineering Team Leader | National Instruments | UK & Ireland

  • 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

  • Tetrix DC motor control with Lego Mindstorm

    Hello, i am trying to finish an ongoing project which endpoint is to be able to graph equations on a white board by using the Lego Mindstorm and tetrix dc motors. THINK OF AN ARM. the problem i have been running into is that i do not know where to begin as synchronizing two tetrix dc motors seems to be impossible. if anyone has anything please let me know thank you. 

    Hi Lals25,
    I found a couple of articles that can come useful for you when trying to synchronize the motors. 
    Synchronizing Two Motors
    How to Calibrate NXT Motors to Travel the Same Distance
    Controlling NXT Motors
    Best Regards,
    amezam

  • Dc motor control with H-Bridge..DAQ

    So I have a USB DAQ 6008, DC motor, Hbridge and 2 Limit switches...
    What I need to have done is to control a DC motor so that it turns on for a 1 second and turn off for 2 seconds....and then as it approaches a limit switch it continues in the opposite dirrection and then for the switch vise versa...
    So far i can only turn on the motor but no timing sequence...
    I am kinda new to labview...so any help would work such as a tutorial or some guidance...thanks

    Hi cool,
    I'm not sure if the 6008 is the best option.  You may be able to do it by setting up a continuous analog output task.  Then you can use the DAQmx Stop VI to stop the task after 1 second and then the DAQmx start to start it again after 2 seconds.
    Justin D.
    Applications Engineer
    National Instruments

  • Quanser DC Motor Control Trainer missing VI's for labview 2009

    Hi my name is phillip, a student developer working with labview 2009 and the Quanser DC Motor Control trainer with ELVIS II. I have failed to run the VI for speed control, it appears to be broken and says four sub-vi's are missing and they are "Intergrator.VI," "Integrator (DBL).VI," "Transfer Function.VI," "and "Transfer Function (DBL).VI.". I happen to have installed the control design and simulation toolkit but this has not solved the problem. Please help!!!!

    Hi Phillk, I have the exact same problem with the missing VIs for the Quanser DC motor control with the NIELVIS also for Labview 2009.
    Can you please tell me where I can find these VIs? Can you send them to me if it is possible?
    I would really appreciate it, 
    I need the Transfer Function.vi,  Transfer Function (DBL).vi and the integrators too.
    Thank you, 
    Carlos M. Rodriguez  
    [email protected] 

  • Motor control by serial port

    So now I decided to move to a little hardware 
    I have been controlling the speed and direction of a DC motor by passing a combination of ASCII values and HEX values.For eg:- P20 will give me some speed P50 will give me another.M1/0 will rotate the motor in both the directions.S will give me counts which has been converted to the respective RPM.
    So I have no issues here. But now I have to implement a PID controller with it.
    That means Set Point will be decided by user(That is me) and Process Variable(PV) will I think be the feedback from the output of RPM.And, I think output of PID will be given as HEX to VISA.I don't know.Am I correct over here? 
    How to implement the motor control with the PID block?
    Can anyone guide me in the right direction?
    Attachments:
    Basic Serial Write and Read1.vi ‏23 KB

    Hi Sunny,
    the output of the PID is a number used to set an actuator. In your case you have to send that number to your motor control board, which expects strings (not any kind of HEX)! As you already gave examples of the expected strings you would use a FormatIntoString function to form the proper commands.
    VISA also only uses strings as in-/output, you have to create them anyway!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

Maybe you are looking for

  • AT&T network so bad it lies about entire cities!!

    Okay, I'm a phone nerd/tester you can say. BEFORE you reply: I put a line in this post to signify that the part after the lines where all just tests j did and not necessary to read to understand what I'm saying. You can read just everything above the

  • Data is not getting displayed into a table

    Hi, here i used 2 views Personal info view :--user fill the details in this and clicks go...Then the user entered details should be displayed into a table view... In context of personalinfoView i took a node as "personal" and added the details as att

  • Message archiving -Volume test

    Hey Guys We are planning to enable Message archiving for our interfaces. We have around 2 million messages waiting to be archived,the fear we have is that once we enable message archiving,XI will try to archive all these messages and might choke up d

  • Time Statement Form TF02 - Saturday Sunday

    Hi community, Could you explain how we can display Saturday Sunday in the TF02 form in case there is no time event please ? I already set up the feature LDAYW (value 7) Very useful when an employee is working on Sat or Sun according to his/her work s

  • Any one know how to change user name on ipod classic

    how do i change user name on i pod