How to control DC motor in a simulation loop??

Hi,
I am Xiaofei, a beginner of LV. We plan to use feedback control on 2 DC motors using Simulation loop. Now the question is: i am not quite sure if the simulation loop is only a virtual simulation of the system, or it can be used to control the real system. We will use 2 encoders to detect the actual postion of the motor shafts, and the decoding code works well in a while loop, as the attached VI. But we don't know how to make it work in a simulation loop. Whenever we put it in a simulation loop and click "run", there's no response  no matter what we do on the system. So if you know, could you tell me if the simulation loop is suitable for our application and what we can do to run the encoders in it? Thanks a million!! 
Xiaofei

Hi Xiaofei,
Thanks for posting on the NI forums!  Can you tell me a little more about your setup?  What do you mean by Simulation loop?  Do you mean Simulation Module or Simulation Interface Toolkit?  What hardware are you using to control the motors and read the encoder feedback?  What kind of motors do you have?  Can you read the encoder inputs in LabVIEW when you turn the motors by hand?
Thanks,
Maclean G.
National Instruments
Applications Engineer

Similar Messages

  • How to control maxon motors using sinewave

    Hi, am using the maxon brushless motors controlled by epos2 24/5 contollers. I want to give an input like sinewave to run the motor .Could anyone help me on this. Thanks in advance..

    Hello,
    I have the same problem. I would like to do a velocity mode with a sinwave funktion. Did you slove the problem? 
    regards

  • How to control 2 epos motor using microcontroller 50/5

    Hi. i've done a program from epos integrated to labVIEW to control 1 epos motor. i do the program by using the given epos sub-vi to labVIEW, but i only know how to do for controlling 1 motor. Anyone can help me or tell me how to control 2 motors or wad is needed?? thanks for your help :-D
    Solved!
    Go to Solution.

    Hi Spydi,
    up to now, I never did it with two EPOS. But you should first check your setup with the EPOS-Studio. You need to set two different Node ID`s and after this works from the EPOS-Studio <you should do two seperate lines of programming in LabVIEW. I attach some VI`s from maxon which are simple in using for one EPOS. I assume you just need to program them in parallel.
    And you don`t need the CANopen Library, it`s possible to use but very difficult. The EPOS-Library from the download is a Set of VI`s which where developed by maxon in Switzerland and free of use, they use a Communication DLL behind. If you`re interested maxon develops a new release right now. If you want to use them instead of the one you already had, let me know, I can ask there for a BETA and place it here at the forum.
    Kind regards
    Alex Rudolph
    NI Switzerland
    Attachments:
    EPOS Module.zip ‏77 KB

  • How to control a 1hp motor using input from battery voltages

    I'm brainstorming ideas on how to control a motor based on an input from battery voltages. The idea is to monitor battery voltages and output ideal motor speed in order to get maximum effieciency for a specified period of time. The batteries will be recharged with solar panels while the motor is running, so I was hoping to use lab view to get rid of any human calculations or throttle controls to optimize performance. The problem is that I'm not sure if the labview equipment is powerful enough to control a motor of that size. 

    check out this link. i had similar problem but with a less power motors, but this idea should work. NI hardware can support upto 1.6 HP if you configure appropriately
    http://forums.ni.com/t5/Motion-Control-and-Motor-Drives/flyback-diode-value-for-12VDC-12-Amp-motor/t...

  • How to control the step motor in this situation?

    I have a PHI TRIFT3 ToF-SIMS instrument. The instrument comes with a default
    software. However, the software don't offer fine step motor control. I want to control
    the step motor using Labview.
    I got some info from a Japanese engineer of the company.
    The step motor controller is connect to a card in ISA slot. In the default software, I
    can send command like D2000(distance 2000) and A100(acceleration 100) to "port 2"
    to control the motor. I have a manual of the commands.
    However, I don't know how to send command from Labview. Here is a joysticker
    connected to COM1, COM2 is used for other vacuum control. The joysticker can also
    control the motor..Here are some reply from the company about the control.
    "We do not use special driver for control the step motor.
    This is just sending the serial command via RS232C per command instruction I
    sent you before. The only difference is, to simplify the hardware, we just talk to data acq
    module(wave form card) via PAHOST card(installed in ISA bus slot of the PC)
    to passthru the RS232C command to stepper motor control unit.
    If you try to talk to step motor. just send the RS command from Labview
    platform. (of course need to connect the step motor controller from PC,
    default TRIFT PC does not have a spare COM channel, might be need to add
    serial etension card or add the computer for Labview control)
    "TRIFT PC passthru the RS232 command throught ISA bus to PHI data
    acquisition box to stepper motor control.
    Joystick handled by default software , convert to stage movement
    command X and Y then send thru to ISA. "
    I tried to use the Basic Serial Write and Read.vi to send command to COM1 but I always
    get an error"1073807246 ocurred at property node(arg 1) in VISA configure Serial prot(Instr).vi->
    Basic Serial Write and Read.vi  Possible reason: VISA: the resource is valid, but VISA cannot access
    it."   I think this happens because the default software is also open and trying to control COM1.
    What should I do to accomplish the step motor control? Thanks a lot

    Just to start from scratch, have you verified that you can do basic communication with your serial port, ie successfully perform a loopback test?  Please let me know, and we will go from there.
    Logan S.

  • How to use sinewave to controll my motor run automatically.

    Hello
    I am now tring to use a waveform(sinwave ) to control my motor run automatically .I am using  labview2010 and EPOS50/5. Is there anyone can give me your suggestion? Thanks in advance.The attachment is the program for my epos.
    Attachments:
    epos and sinewaveform.vi ‏34 KB

    PS: My program for epos can work, but I don not know how to combine the sinewave program with the epos program to make motor run automatically.
    Thanks your suggestion in advance.

  • Could someone tell me how to control a small dc motor by using labeled and a NI 6008 daq. The motor is adjustable by using a pot that ranges between 0-V if that is of any additional benefit

     Could someone tell me how to control a small dc motor by using labeled and a NI 6008 daq.  The motor is adjustable by using a pot  that ranges between 0-V if that is of any additional benefit.

    Read the second thread you have a link to. While both of these will produce PWM signals, the first one is a couple of orders of magnitude too slow to do anything useful in control the speed of a motor, what you would see would be the motor run at the full speed, then stop for a period, then run at full speed, rather than at the "average of on and off"  as the Pulse Widths will be very long relative to the motor's response. The second one has a better chance, IF all you want to do is run the motor. If there is any other calculations ...   Look at both and try and get an understanding of what they are doing. For PWM speed control of a motor you really need a pretty fast pulse width, and probably some filtering to smooth out the resulting "harsh" waveform, giving you the "average" voltage resulting from the PWM.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • How to use Fuzzy Logic Controller for transfer function in labview control and simulation loop?

    I am facing problem with fuzzy PD logic controller for transfer function in control and simulation loop.
    Plz Help me in this regard...................
    i have attache snapshot of my program
    Attachments:
    fuzzy in simulation loop.JPG ‏52 KB

    Hi Sankhadip,
    Sorry for the late response. I was looking at your code and
    I noticed that the graph scale does not start from zero. That might be the
    reason why you don't see the transient in the simulation. To change the scales
    simply double click on the lower limit and set it to zero. If this is not the
    expected results, can you please post the expected results, so we can see what are the
    differences between the results . Also, you might be using different
    solvers, and that gives different results as well.    
    Thanks and have a great day.
    Esmail Hamdan | Applications Engineering | National
    Instruments

  • How do you control the motor in the continuous mode ?

    I use the NI 7334, I would like to create the program to control the motor in the continuous mode. please help me.
    Thank you very mich.

    Hellow water2006,
    Thank you for using our discussion forums.  In regards to continuous mode, are you referring to a constant velocity motion?  There are several examples on our website which will give you a good start on setting this up.  In particular the "Constant Velocity Move" example which is found at http://zone.ni.com/devzone/cda/epd/p/id/1206
    I hope this helps.
    Regards,
    Vu D
    Applications Engineer

  • How do I control the motors in a third party usb toy with LabVIEW?

    Any suggestions?

    Hi, if you are only wanting to control motors than you have a lot of options. Use the parallel port with a current driver, use the serial port and a micro to control the motor. If you want to interface the USB device than this is where to get started.
    http://digital.ni.com/public.nsf/allkb/42B604435E3F9604862565E20043CD30
    http://zone.ni.com/devzone/cda/tut/p/id/4478
    LabVIEW 8.2,8.6,2009...still learning

  • How to use waveform to control the motor(EPOS2)

    Hello
    I am now tring to use a waveform(sinwave ) to control my motor in labview2010, I am using the EPOS50/5. Is there anyone can give me your suggeation? Thanks in advance.

    need more detail on the hardware (motor and data card) you are using. also What do you mean by using sine wave to control motor? 
    Kudos are (always) welcome for the good post. :-)

  • How to reset indicators in a control design and simulation loop before each run?

    Hi,
    I am new to Labview. I have tried using property node to reset indicators before each run. But since it is in a simulation loop, it gets resetted many times. I am primarily interested in resetting only before each run. 
    Any hint will be of great help.
    Thank you!
    Regards,
    Divya

    Hi Divya, 
    This KnowledgeBase article describes 2 methods for resetting your Front Panel programmatically:
    http://digital.ni.com/public.nsf/allkb/08E7DDAE66A7D02C86256DDA00630E75
    However if you have tried these methods, and are still not getting the behaviour you want, it would be easier to help if you could post your code (or even a screen shot of the section of code where you're trying to reset your values)

  • Sensorless control DC motor based on mathematic​al model

    Hi,
    I have DC motor, I put together mathematical model and transfer function of torque, speed and position PI control too.
    Can someone help me to implement it to real process? I need control real DC motor with H-bridge with sensorless method based on mathematical model. (using LW card 6211)
    Thank you veru much.
    Attachments:
    servo_control.JPG ‏52 KB

    Dear Džon,
    First of all, welcome to the NI Forums!
    In order to actually implement a control system, you will either need Control Design and Simulation Toolkit  ( http://sine.ni.com/nips/cds/view/p/lang/hu/nid/138​54 )
    or you will have to calculate the inverse Laplace of your resulting function and implement the numerical model. 
    By implementation I mean that you will most likely have to use numerical Integration.
    How you should do it is the following:
    Get the highest order of the outputs derivate to the left side of you equation -->      a_n * Y^(n) = ....
    where a_n is your coefficient resulted to Y^(n), then divide by a_n so you have something like: Y^(n) = ...
    after this you must integrate n times in respect to time. So you will have the y(t) resulting function in time domain.
    From there you must implement the equation on the right hand side with numerical methods. At the end you will most likely have a DAQmx task or an Express VI to actually output your control signal. (for that please refer to the examples of analog output / PWM)
    However, if you have access to Control Design and Simulation Toolkit. You may realise your system in a simulation loop as replicate your block diagram structure. (Please check examples installed with the toolkit) 
    If you have a specific question then please feel free to ask, and provide as much detail as possible.
    Best regards,
    Peter
    Peter L.
    National Instruments Hungary
    Applications Engineer

  • How to control a NI USB 6210 from a Lab View program?

    Hi,
    I started today with Lab View with some earlier experience long ago.
    While it took me only about half an hour to get my first program running (great), installation time nor included (of course), I meanwhile read documents for some hours and cannot find out how to control measurement hardware in Lab View.
    I want to use a USB 6210 to set a 1-bit digital port. But at the moment there is no USB6210 available so I wanted to write (or do you say draw ?) the program without it and if possible simulate the hardware.
    I drew DAQ Assistant into my block diagram and selected digital line output but get "No supported devices found". I don't know if the appropriate driver was installed during Lab View installation.
    Also I don't understand the mechanism between DAQmx, tasks and the real hardware. Now I have a "Digital Bool 1Line 1Point" Control in my block diagram. How do signals get from program flow to hardware pin? How can I create a simulation for not connected hardware?
    Any help is greatly welcome
    Thanks a lot
    Martin

    Okay here is some more tutorials if you get some free time, specifically the hardware stuff will be relavent.
    NI Learning Center
    NI Getting Started
    -Hardware Basics
    -LabVEW Basics
    -DAQ Application Tutorials
    3 Hour LabVIEW Introduction
    6 Hour LabVIEW Introduction
    Self Paced training for students
    Self Paced training beginner to advanced, SSP Required
    LabVIEW Wiki on Training
    Launch MAX, it was known as Measurement and Automation Explorer, there should be a shortcut in your start menu / desktop.  Under devices and interfaces you can find your hardware and open test panels to control it.  This is the first place to ensure your hardware is working.  If the device isn't seen you'll need to install the drivers and DAQmx software.  If it is there, great.
    Now launch LabVIEW.  The easiest way to control hardware is using the DAQ Assistant.  It has many limitations and isn't recommended for large applications.  But for something quick and dirty it works fine.  You'll find it under the Measurement I/O >> NI DAQmx palette on the block diagram.  If it isn't there you may need to reinstall the DAQmx drivers.  This can happen if you installed DAQmx before LabVIEW.
    Also you'll find under Help >> Find Examples on the toolbar, many examples on controlling hardware.  Feel free to post some code if  you are having problems.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • How to use the motor feedback

    I use six servo motor to control them to form some traces.  the motor is from japan ,and every motor has its own encoder , and the endoer output to its servo drive to form closed loop .they say the motor system's closed loop is ve precise ,I do not have to connect the encoder to the motion controller . by the way I use pxi 7354 and umi 7774 to control the motors.  my application is to set the position loop mode to control the six motors'motion correlatively.
     but I want to try to connect the encoder to the motion controller .so the error comes out . first I have to select the step mode in the MAXI  I can start the motor even if I do not connect the feedback,  when I select the serve mode the motor can not work. why ?  the second when the feedback is connected , the motor had to work in a very low velosity ,otherwise the following error will reach the default.even I set the following error is very big , when the velosity come up to some extreme the motor will stop for the following error's limit
    who can help me

    Dear Sir/Madam,
    I have a similiar problem also. For example, I use Stepper mode with open loop configure in MAX to run a FUJI servo with no problem at all, but once it is configured to close loop in MAX the encoder value doesn't change when monitored from 1D interactive window of MAX. And eventually the following error came out and motor stop!
    I have set the correct encoder feedback parameter in Servo drive, and I can read the encoder value by Read Encoder.vi but How come it doesn't show the value in MAX? Is any configuration that I was missed out in MAX? Is need to set the encoder setting in MAX to match the servo encoder output?
    Thanks.  

Maybe you are looking for

  • How can i send money through itunes to another apple id ?

    how can i send money through itunes to another apple id account? and how do i response when the itunes gifts doesn't work?

  • Transformation

    when I try to activate the Transformation, it just tells me Activation failed, without any detail. I only have the following: Error while writing in routine Error while activating transformation What are the steps that I need to carry out in order to

  • Windows side of Mac Mini shuts down saying RAM is causing problem

    My windows side of my Mac Mini periodically shuts down saying there is a problem with the RAM saying I need a BIOS upgrade. What is that and can I do it or do I have to take it in or do I have to reinstall everything and give the windows side more ha

  • Mac drops to BSD login console.

    Hi all, I am new to the apple forum (and new to mac Os... I usually work in a gentoo linux environment). And, since having updated system software, My mac book pro drops to the nongraphical system console right after I enter the password in the graph

  • Cannot put in read-only the vendor screen - Authorization

    Hi all, I would like a role to display in read-only mode the vendor (business partner) screen (BBPMAININT). I assigned the BBP_PD_VL and BBP_VEND authorization objects with the 'display' attributes but the user still has 'edit' rights on the vendor p