DC motor speed control using LQR controller

can i control the speed of a DC motor using Linear Quadratic Regulator (LQR) controller in LAb view

In short, yes. The best experience is when you actually have the LabVIEW Control Design and Simulation Module. Here are some examples related to this topic:
C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\Control and Simulation\Case Studies\Mechatronics\DC Motor\CDEx DC Motor with State-Space.vi
C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\Control and Simulation\Case Studies\Mechatronics\DC Motor\CDEx Robust DC Motor.vi
C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\Control and Simulation\Control Design\State-Space Synthesis\CDEx LQR.vi
Notice that you have much more examples of LQR and Motors under:
C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\Control and Simulation\Control Design\State-Space Synthesis
C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\Control and Simulation\Case Studies\Mechatronics
C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\Control and Simulation\Case Studies\Electrical Machines
Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

Similar Messages

  • DC Motor speed control

    Hi,
    I am trying to control the speed of a 36V 2.5Amp 3000 rpm max speed DC Motor using LabVIEW.
    I need someone to guide me what are the hardware required to do this.
    1) Which DAQ is most suited for controlling the DC motor ?
    2) Any other hardware required such as a controller, etc ?
    3) Any example programs for DC motor speed control ?
    4) Any circuit diagrams explaining the connections to be made.
    I wil be grateful if someone helps me with the above said things

    Hi Kabi, 
    A DAQ card will not be able to provide the power to the motor, you should be able to generate an analog control signal and pass it through an amplifier. If you are using a servo motor it should be possible, if the motor is a stepper motor you will need a drive that you can control with step and direction commands. 
    -N
    National Instruments
    Applications Engineer

  • Stepper motor speed control

    Dear Reader,
    I want to control the speed of a 4-phase stepper motor using LabVIEW 6i and PCI 6024E card. Hence I am approaching you for help and advice. I want to control the speed of a stepper motor, which is used for rotating the diffraction grating used in the monochromator.
    Please try and answer a few of my questions:
    1. Can I interface the stepper motor directly with the card PCI 6024E, or I need a drive for that purpose?
    2. I just want to rotate the stepper motor at a fixed speed, meaning that I don’t want to change the speed of the stepper motor in between, I need a few fixed speeds, what are the problems of controlling the stepper motor using the PCI 6024E cards?
    3.Have you been successful in interfacing your stepper motor
    with the 6025E card?

    I have attached a library about steppers from Brad Hedstrom. It is very old and I think he would write it differently today, but it answers all of your questions. Except the typenumbers of the interface cards and that is answered by: they all are ok.
    greetings from the Netherlands
    Attachments:
    stepper.zip ‏96 KB

  • Thruster control using PID controller

    Dear All,
    Actually my project is related to heading control of an underwater system using PID controller - A Labview Application.
    Till now, As per this forum discussion, I have completed the rotation count measurement of a compass C-100 device using Event structure and cFP controller.
    Now I need to integrate the PID controller for thruster control according to the count value measured.
    Could you please anyone guide me to start implementing the same. Please do the needful.
    Thanks and Regards,
    Dinsulpri.

    Dear nathand,
    Actually I need do a heading control application of a underwater system by using PID controller by the help of thrusters.
    According to this,Firstly,I have completed the rotation count measurement of the system by interfacing the compass C-100 (for checking) with the cFP controller.It is working fine.
    Now I need to do the PID controller part based on this count value measures, that is , I need to give the control signal to the thruster in order to release the twist of the system.
    I just gone through the PID part in the labview and understood the concept and simulated the basic examples given in that.
    My Understand as follows, Please validate the same and give me your suggesion on this,
    1) Need to give Setpoint should be a thruster voltage .
    2) I dontknow what to give in the process variable field.
    3)Apart from this, how can I show this concept schematically with out connecting the thruster manually? Is it possible to show the demo in chart analysis format? 
    Please validate the above points and guide me to start working on this task.
    The rotation count measurement application, Till now I did was attached with this. Please go through the same.
    Thanks and Regards,
    Dinsulpri.
    Attachments:
    Compass_Event Structure.vi ‏18 KB

  • Simulating Electronic (Analog) Motor Speed Control

    Is there a way of simulating (Analog) Electronic Speed Control in Multisim 10?  The system involves a permanent magnet DC motor with quadrature encoder, a frequency-to-voltage converter, operational amplifier circuits, and a MOSFET driver.  The parts that I am wondering about are the motor and encoder.

    Multisim has a motor but I don't see a quadrature encoder. The only problem I see is with the quadrature encoder as it partially works in  the mechanical area on a rotating shaft. There are no moving parts in Multisim or any other spice software that I know of. That would have to be simulated by creating a circuit in the electrical area that would mimic the mechanical function of the quadrature encoder. This could be a huge task and I wouldn't even begin to know how to accomplish that.
    Multisim's motor has a pin on it that electrically represents the RPM as a voltage that is read on a multimeter. I have found that it doesn't always work as expected in all applications. You would just have to try it and see it it works for you by adjusting it to your motor specifications.
    This is all I can tell you and if someone has an idea I would hope they would post it for you
    Kittmaster's Component Database
    http://ni.kittmaster.com
    Have a Nice Day

  • URGENT!!! motor speed control

    Dear all,
    first let me tell you my system detail:
    1. Hacker A100-8 brushless DC motor
    2. Master spin 170 pro opto (speed controller)
    3. power supply
    4. NI DAQ USB-6353
    I have already run this motor by using transmitter and remot control, like RC planes fly. Now I would ilke to run this motor from computer. let me give you my setup:
    PC > DAQ > speed controller > motor
                                       ^
                            power supply 
    now I would like to use either matlab/simulink or labview, to control or run my motor in real time using generating PWM signal. can anybody help me out? Thanks in advance.

    Since you are wanting to use DAQmx and not any of the Motion software that is made for LabVIEW the examples will be very limited. I suggest playing around with the PWM and Digital Out functions to get an understanding of how they operate.
    http://www.ni.com/tutorial/2991/en/
    You can also take a look at this example below which uses DAQmx to control a stepper motor. This is a little different than what your DC motor control setup will look like but it should be good for reference if you understand how stepper motors work.
    https://decibel.ni.com/content/docs/DOC-6385
    I still suggest posting this in the general section of the forums as it will get many more views and thats really what your application is about. This forum will get more views for things like SoftMotion which is NIs motion control software. Since you are working with DAQmx however you would want people who work more frequently with DAQmx to view your post, which will be in the general section of the forum.

  • Temperatur​e control using pid controller

    sir i ve a doubt that how should i control temperature at a particular value using this PID controller here i attach screen shot of my block diagram.please show me the path how should i controll
    Attachments:
    Capture.PNG ‏20 KB

    Hi,
    I am also looking for some what same situation. Did you get any answer?

  • Help me in my mini project about dc motor control using labview

    hi,
       actually the idea is that  using pid controller in labview.. controlling motor.i.e giving a setpoint to pid... n checking whether motor is running accordinly using a sensor.. i.e feedback n/w...  i dnt knw hw to proceed.. can u help me with the circuit diagram

    Hi swats,
    "i dnt knw hw to proceed.."
    I suppose you mean "I don't know how to proceed..", something is wrong with your "o" key
    I would suggest going to the library of your school or university and get a book on basics of electric devices. There you will find a lot of hints on how to measure speed of motors and how they work. In fact your question covers several seminar hours in "Electrical Measurements" course at university...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • BLDC Motor Speed from Controller

    In the tester I am building, I am having troubles acquiring a stable motor speed.  I need a stable speed so that I can control the motor speed to 1100 +/- 50 RPM.
    We have a compressor connected to a Dart 700BDC controller, and a cFP-CTR-502 counter input connected to one of the hall sensor inputs on the controller.  The counter is set up just to continually counting the number of pulses (counter overflow is handled within the test application).  The test application gets the counter value and timestamp from the Fieldpoint VI's approximately every 500 milliseconds. It compares these two items to the data from the previous iteration to generate an RPM.  I've attached a VI that has the routine that I am currently using.
    When I run the motor, I have RPM values that fluctuates beyond my 50 RPM window.  Do I need to tweak my routines to display a more stable reading?  Or is a different solution required?
    Attachments:
    Monitor Motor Speed.vi ‏13 KB

    Hi OlderJohn,
    The first you should try is lowering your sample time and perhaps even your proportional gain. Are you familiar with PID control. I recommend reading a great article on it here
    Joe Daily
    National Instruments
    Applications Engineer
    may the G be with you ....

  • Brushless DC motor control using NI PCI 6251

    am doing my project Speed control of a sensored Brushless DC motor. am using NI pCI 6251 daq. now my motor is running.but i dont know how to calculate the speed. in BLDC motor, hall sensor is attached. can you send me the sample program for calculating the speed and to give as a feedbackk

    Will you please sent me VI model of BLDC ?
    my mail id: [email protected]

  • CRIO motor control using AMC Drive

    Hi
    I am trying to setup a simple DC motor control system with cRIO-9081, NI 9401 and AMC PWM servo drive 12A8.  Can someone please tell me if this AMC drive is compatible with my other NI products?  Do I need anything else to setup a simple closed loop speed control for a small DC motor?  Any advice or example is very much appreciated.
    Thanks

    Hi SunnyX,
    It seems like your servo drive is expecting an input of +/-10V analog.  Are you able to confirm this in the device manual?  If that is correct, you will not be able to generate the necessary signal with the 9401.  You will need another module that you can program to output this signal such as the 9263.  
    You could also consider using the modules designed specifically for motion control and the SoftMotion Module to simplify the motion control programming.  Please let me know if you have any additional questions or comments!  Thanks.
    Regards,
    Kira T

  • Really need help (motor control using labview)

    hi all readers,
    im new beginner. really need help for my project. i've been assigned to monitor/control motor using labview 8.5 (using NI DAQmx). the problem is, the techinician told me that i cant use 3phase motor with this card. things that i need to displayed using labview is :
    torque
    power
    current
    voltage
    speed
    really appreciated if readers can help me with this:
    wut type of motor shud i use that compatible with NI DAQmx
    thanks a lot.

    Hi fauziana,
    NI data acquisition devices are primarily designed to take measurements, so it's a good idea to measure the signals that you have mentioned with a DAQ device.
    You also can use DAQ devices for control tasks, but for reliable and deterministic control behavioryou typically need to use a real-time operating system (not Windows!). If you want to learn more about the pros and cons of using DAQ devices for motion control tasks, please refer to these threads. Still for standard motion control tasks it's much more efficient in terms of development time, to use a dedicated motion control device for the motion control part of your application.
    In general the control part is independant from the motor type, as these devices only generate control signals (+/- 10 V). There are many power drives available, that accept this type of control signal and you should select your motor according to the requirements of your application.
    For a more detailed system consulting, please contact your local NI branch. To select the products that fit best to your application requirements a face to face discussion is much more efficient than a discussion forum thread, because there are a lot of parameters that need to be taken into consideration. If you tell me in which country you are living, I can provide appropriate contact data to you.
    Thanks and kind regards,
    Jochen Klier
    National Instruments

  • I'm working on DC Motor control using DAQ. There is sufficient voltage output from DAQ but not current. What should i do so as to drive the motor

    I'm working on DC Motor control using DAQ. There is sufficient voltage output from DAQ but not current. What should i do so as to drive the motor. Could you suggest me appropriate driver IC using which this problem can be solved.
    Saravanan.T

    You really should use a DC motor controller to control a DC motor, look at the 754410 IC for a good example. You should be able to interface these to most DAQ devices.
    Alan

  • Dc motor control using myDAQ

    Hi,
    I'm building a DC motor control using myDAQ i have run into a couple of problem with the STOP button and the Max en Min speed. For some reason the waveform chart goes crazy i'm going to attach my  the VI file. 
    Project description:
    -An engine-ON-engine-OFF button
    -A control for faster / slower
    -A switch for left / right
    -A button once maximum speed (100)
    -A button once minimum speed (10)
    -An indicator of the instantaneous speed (0 - stop, 100 maximum)
    -An indicator for the direction
    Could anybody tell me why it happens and how to solve the problem?
    Thank you very much!
    Best,
    Istrael
    Solved!
    Go to Solution.
    Attachments:
    pulsgenerate Folder.zip ‏30 KB

    Hi iounathing i appreciate the reply it works better now i have fixed the start button issue and the crazy waveform chart.
    I think i'm missing something after falling edge and rising edge (if statement?) because when i turn the speedmeter to "0" or "100" the waveform chart keep sending low an high pulse. I wan't a high steady pulse by "100" and low steady pulse by "0" and in between low / high pulse.
    Regards
    Sorry for my bad english i'm from Aruba.
    Attachments:
    pulsgenerate Folder.zip ‏60 KB

  • 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

Maybe you are looking for

  • Motorola V3r and iSync sends phone contacts to wrong folder

    I want to sync my phone to a Group called Cell Phone in my Address Book via iSync. iSync has recognized my phone without a problem but I'm not having any luck directing the phone numbers from my phone to the Cell Phone Group. The phone numbers are go

  • Reg change in the status profile in the process order

    Dear all, By default one status profile ZPI0001 has been assigned to an order type ZP10 in a plant, the requirement is at the time of process order creation we want to change the status profile to ZPI0002 and create . this is applicable for one plant

  • Unable to shrink tempdb

    Hi All, This is to bring to your notice that when iam trying to see free space using shrink database it is showing 180GB free space.But when i am trying to shrink individual data files they are only showing free space in MBs.Further analysis sussgest

  • Services to monitor for SCCM 2012 DP only

    Hi,I am trying to figure out which services to monitor on a remote DP only server to determine if sccm can access that server if everything else is up and running properly. What services does SCCM use to determine if a remote DP is accessable and ava

  • Detect if Time Stamp control user dialog has been pressed

    Hi, I have to make some changes to my project. I can't modify existing program blocks, so I must figure out a way to detect if user has pressed  user dialog icon for setting up time (control type is Time Stamp). I now I can compare current values wit