Controlling the displacement of 2 linear actuator

im using arduino to work the linear actuator 
1) im not able to sync the 2 linear actuators togethers 
2) stop at same distance with each other
3) im using dual channel 10A driver for DC motor board 
4) using labview to simulate this movment 
pls check the file below and offer any suggestion in doing so.
Attachments:
woirking linear actuator.vi ‏26 KB

Equal Height CSS Columns ~
http://alt-web.com/Articles/Equal-Height-CSS-Columns.shtml
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists 
http://alt-web.com/
http://twitter.com/altweb

Similar Messages

  • How to finetune the force control of an AC Motor Linear Actuator?

    Hello,
    I
    am hoping to find some help here with the following problem, which I am trying
    to solve for several days now....
    I
    am using the UMI-7774 and an AC servo-motor-driven linear actuator to do
    force control. Basically, I need the actuator to apply a constant force and
    react quickly to force changes. My system setup is as follows: I am using
    a PCI-7344 Motion Control Card to provide the analogue command signal
    (0-10V). This signal is supplied to the actuator controller (through a
    UMI-7774), which transforms the command signal to an amperage command signal
    (0-2.17Arms). This is the signal controlling the actuator’s torque. The actuator controller is working in torque mode. I use
    a Kistler PZT force sensor (ring type) and a Kistler amplifier as my feedback
    source. The signal from the sensor amplifier is directly connected to the ADC of the
    UMI. I am using MAX to tune my system and define a PID controller that gives
    me a good step response.
    (1)
    The results so far show that it works in principle, but I believe my system is
    not yet tuned optimally. However, the best step response results I have
    obtained and the PID parameters I used are shown in the attached files. As I am
    relatively new to this area, could you please advise me on how I could further
    improve the step response of the system? The current rise time and
    overshoot values are very good (a 3% overshoot would also be acceptable),
    but the observed undershoot is causing delayed settling. Also, the oscillation
    observed during undershoot is something I would like to remove.
    (2)
    I have tried increasing Kp and Kd values. Increased Kd does not seem to correct
    the oscillation problem. On the contrary, it destabilises the system. Increasing
    Kp causes an unwanted overshoot.  I have also tried to reduce the
    Derivative Sampling Period but that gave even worse results (System Inertia: J
    = 1.8629*10^-5 Kgm^2).
    At
    Td=2 the actuator was retracting on its own to its home position when I set Ki>=8.
    I got the most stable behaviour using Td=4. Is there any other way I could
    improve the actuator’s response?
    (3)
    I have seen that in some cases people have used a “double PID loop” one
    for the encoder feedback and one for the force feedback. Do you believe that
    this would improve system behaviour? If so, how could
    I implement two PID loops? I mean, MAX only allows me to enter
    one set of PIDs....or is there a possibility to set up a second PID-loop
    somewhere?....I have seen that the "Force Control Using Monitoring
    Force" example essentially works with two Closed-loops, but one of them is
    implemented in the application software and this would result in a
    non-deterministic and comparatively slow response of the system, right??
    Sorry for the long post and thanks
    a lot in advance for help and advice.
    Attachments:
    Force Conrtol Loop Settings Actuator-BEST.JPG ‏41 KB
    Step Responce Actuator-Force Feedback-BEST.JPG ‏58 KB

    Hello Jochen and thank you for your very nice reply.
    The past few days I have been trying to implement your advice, but unfortunately I did not have much success. Let me start by saying that explanations to my problem, the 2nd one looked more probable, as I always make sure that there is contact between my actuator and the workpiece I am pushing against. So, I unmapped my DAC by setting up the axis as a stepper axis with no feedback and I used the Load DAC to apply voltage and see when my actuator starts moving. That gave me the upper and lower limits for the Static Friction Compensation filter (please refer to attached image). I then implemented this filter and tried to retune the PID parameters, but the results I got were poor.
    I can now adjust the parameters so that there is no initial spike and undershoot, but now the force ramps up fast to a specific value and then keeps rising slowly. Vibration is observed at the point of transition from fast to slow ramp-up (ref. Step Responce Actuator-Force Feedback-WITH FILTER_v2).
    I could not eliminate the steady state error. When I tried to eliminate the steady state error by increasing Ki, or tried to create an initial overshoot by increasing Kp, I always ended up with an unstable system or a system with a response similar to the one shown in attached figure “Step Responce Actuator-Force Feedback-WITH FILTER_v1”.
      Do you perhaps have an explanation or comments for this behaviour? As for your other questions:
    Sensor Bandwidth: N/A, Charge Amplifier Bandwidth: 200 kHz, Low pass filter: No (Amplifier has the capability though)
    PID Update Period: 250 microseconds (fastest available)
    NI Motion Version 2.3
    Labview Version 8.5.1
      Thank you,
    Thomas
    Attachments:
    Step Responce Actuator-Force Feedback-Filter Settings.JPG ‏28 KB
    Step Responce Actuator-Force Feedback-WITH FILTER_v2.JPG ‏69 KB
    Step Responce Actuator-Force Feedback-Filter Settings.JPG ‏28 KB

  • Pulsatile Linear Actuator Control - Help Needed

    Hi,
    I have a VI that controls the speed of a linear actuator, which is placed within a case structure. A limit switch input switches
    the case structure between forward and reverse. This allows the actuator to move in a continuous motion either forward and
    reverse. What I would like to achieve is a pulsatile movement. The linear actuator operates for a set time and completely off
    for a set time.
    I have tried various approaches with the elapsed time function, alternating wait times but just can't seem to get this, any help
    would be greatly appreciated, I have attached the VI.
    Thanks
    Ger
    Solved!
    Go to Solution.
    Attachments:
    Pulsatile Linear Actuator.vi ‏95 KB

    A few things:
    Are you using the Run Continuously button?
    If so, stop and put this into a proper loop or state machine.
    I don't think the Elapsed Time function is what you're looking for.
    I think you want to use Time Delays between changing the output on your digitals.
    Take some time with the LabVIEW tutorials. They'll help you a bunch here.

  • Controlling Linear Actuator via Load Cell

    Hello,
    I need to control the position of a linear actuator based on the force feedback from a load cell (rated up to 100 ft/lbs) connected to the tip of the linear actuator.  What I want to be able to do is to set a force and have the linear actuator (driven by a stepper motor) move until it is within 0.1 ft/lb of the force setpoint.  Once within 0.1 ft/lb of the setpoint, I would like to hold and control to the setpoint based on a user configured hold time.
    I have the following hardware:
    PXI-1033 chassis
    PXI-7340 Motion controller card
    UMI-7764 Terminal Block
    P7000 Drive
    Omega Engineering Load Cell model number LC201-100
    Omega CCT-80 Load Cell Signal Conditioner
    Omega FAR-1 Power Supply
    I have the + output of the CCT-80 connected to the Analog Input (AIN1) and the - output connected to the Analog Input Ground (AIGND).  This output signal is -10V to +10V (verified by DMM)
    I have the ADC range set to -10 to +10
    I'm reading the ADC as fast as possible (get about 700 samples/second) and this just isn't fast enough to control to the precision that I need.  Also, it seems like there is a substantial amount of noise on this line.
    Does anyone have any recommendations on improving the speed of the ADC read, or how to reduce the noise on the line?
    If my requirement of holding to 0.1ft/lb is too strict for this hardware (7340 motion card) is there something else that I should try?
    If I'm missing any other info that is needed to help me out, let me know and I'll update this post.
    Thanks!

    Hello AMac,
    I have a setup similar to yours with a load cell attached to a linear stage. I want to use position control of the stage to apply a set load on the load cell (position-based explicit force control). Do you have a example VI I could look at if yours was successful?
    Thanks,
    Kyle

  • Minimize the chattering of a linear stage driven by a voice coil actuator(V​CA)

    I have a linear stage driven by a voice coil actuator (VCA), a capacitive probe is used to measure the movement of the stage. A picture is attached to show the basic mechanical design of the stage. Even though the resolution of the VCA is 0.5 um, the overall resolution of the stage is not that good. When I use controllers to achieve position controller of the stage, the stage is always chattering around the set value. It can only achieve 5 um in open loop and around 10 um in PID control. Is there any method to improve the performance by modifying the controlling VI? 
    I am using NI 6363 to give voltage signal to a LAA amplifier and the amplifier will convert the voltage signal to current signal and drive the VCA. It seems that the output of the LAA amplifier is not constant and it is the LAA amplifier that generate those chattering. The command voltage given to the amplifier is extremely constant with error less than 2mv, which will cause only 0.5 um displacement of the stage by theory. Such kind of motion is similar to the resolution of the sensor but it is only 1/10 of the actual motion noise which is on the scale of 5 um.
    The stage has a natural frequency of 30 Hz, which is determined by the stiffness of the springs and the mass of the moving stage. When I use FFT to analysis the movement of the stage, I found that the main noise comes from 30 Hz and 50 Hz (both for open lood and close loop PID). I also use FFT to analysis the command voltage given to the VCA in close loop PID control, the peak frequencies are 10 Hz, 30 Hz, 40 Hz, 50 Hz, 70Hz, 90Hz....
    Do I need to use some filter between the amplifier and VCA so that it can reduce the noise without influence the accuracy? Or I can reduce such noise just by using some noise block in the VI program?
    Thanks
    best
    Attachments:
    VCA stage.png ‏160 KB
    FFT of Error motion with constant voltage_f1.jpg ‏1782 KB
    FFT_command voltage_PID_f1.jpg ‏444 KB

    Hi Paolo,
    It seem the influence from the magnetic field is not a big issue in the position control of a voice coil stage(VCS). I attached some picture of the commecial design of similar VCS and all these stages do not shield the cable connecting the VCA and controller. Anyway, I will try this method to see if it can make the result better.
    BTW, for the filter, could you please recommend some model for me? As the current noise is just around the level of 1 mA, I think I may need a very precise filter.
    Thanks
    best
    Attachments:
    vcs 1.jpg ‏49 KB
    vcs 2.jpg ‏54 KB
    vcs 3.jpg ‏22 KB

  • Linear actuator controlled with external encoder and smart motor - randomly stops

    Hi,
    This is my first experience with Labview or any sort of programming for that matter.  I am using an Animatic Smart Motor Model: SM1720M version 4.15b with an Ultra Motion Bug linear actuator: 4-2B.125-SM17-3.2-1NO-B/EC4 and a 600 series optical encoder.  I am trying to write a VI that allows me to manually control the linear actuator using the encoder.  I attached the one I have been using, but for some reason it randomly stops working, generally  when the actuator is extended about an inch and 2 1/2 inches.  It stops in the same general area, but not the exact same spot.  Any ideas?  Any help would be much appreciated!
    Attachments:
    Manual Command.vi ‏29 KB

    1. The VISA Clear and VISA Close should be outside the loop. You do not want to be re-initializing the VISA session each time through the loop.
    2. You have the port initialized to use line feed as a termination character. When using termination character, you should not use Bytes at Port. Just set the byte count input of VISA Read to a constant larger than the longest message you expect to receive.
    3. With the termination character you do not need the waits between or before the reads.
    4. The 10 ms Wait in the outer loop is rather meaningless when the start button is True. The VISA Write takes much longer than 10 ms for the string you are writing. It does make sense to have a Wait in the False case.
    5. The start button is set to Latch When Released mechanical action. With that setting it retuns to False every time it is read. The result is that the code in the True case only executes one time for each press of the button. Is that what you want?
    A state machine architecture is more flexible and more robust.
    As to why it stops in a particular place, you have not given us nearly enough information to even guess. What is the relationship between motor speed and displacement? Where do you do anything with the encoder? What is the format of the encoder output? How far does the motor move at various speed settings during one iteration of the outer loop? Where is the command to stop the motor when it gets to where you want it? 
    What error messages, if any, do you get when it stops?
    Lynn

  • Control a linear actuator

    I need to be able to control a linear actuator from labview.  Can someone show me an example of how I might do this?  Also, I have no idea how I should wire the actuall motor up so that it can go forwards and reverse.
    thanks

    Hi Eileen,
    I'm not sure how exactly the Firgelli actuator would be wired, but according to their datasheet it can be controlled by "simply applying a DC voltage to extend the actuator, and reversing the polarity to retract it."
    I would recommend starting with using the DAQ Assistant Express VI to output a DC voltage from the PCI-6024E. There is a tutorial on Getting Started with the DAQ Assistant that should be very helpful. You will want to check out the "Configuring DAQmx Express VI using the DAQ Assistant (Analog Output)" section to set up a DC voltage output. Then whatever Analog Output channel you have configured your DAQ task for can be wired to the voltage input of the actuator.
    I hope that information is helpful!
    Matt
    Product Owner - NI Community
    National Instruments

  • Simple control of a linear actuator through LabVIEW advice

    Hello all,
    Was in need of some quick guidance. I purchased a Firgelli PQ12 linear actuator along with their LAC control board. They provide a sample LabVIEW program which I was able to run properly. What I would like to do is create my own LavVIEW program for the motor, basically with two inputs; stroke length, time. I would like for the actuator's stroke to simply extend and retract for a desired time period. What is the best way to go about creating a LabVIEW program for a DC motor? Any tutorials available for this application? Advice? Any help is appreciated. 
    Thank you!
    Edit - Details on what is being used
    http://www.firgelli.com/Uploads/PQ12_datasheet.pdf
    http://www.firgelli.com/Uploads/LAC_Datasheet.pdf

    Are you looking to use just basic LabVIEW? Or do you have any toolkits or modules? Here are a few links to an example and tutorial regarding DC motor control in LabVIEW:
    -Open and Closed Loop DC Motor Control VI
    http://zone.ni.com/devzone/cda/epd/p/id/4953
    -Using the LabVIEW PID Control Toolkit with the LabVIEW Control Desgin and Simulation Module
    http://www.ni.com/white-paper/6931/en#toc1
    Daniel K | NI Applications Engineer | Certified LabVIEW Developer

  • Linear Actuator Force Control

    How do I control the force and rate of travel of a linear actuator using Labview?

    You need to separate this into two different parts: hardware and software. You first need to determine what kind of hardware you need. You said you "believe that this can be controlled by the voltage". Are you sure? What does the documentation say? If it's controlled by a voltage level, what are the specs? This will help to determine what kind of hardware you need to buy and/or make. 
    The software part is the other half. This really isn't all that difficult, but the exact implementation depends on a lot of factors. One of these is whether you get a DAQ device from NI, or you get one from another vendor, or you build your own. I think you should spec out your hardware first. If you need help with this part of it you can provide more information and we can suggest a couple of items, or you can look over the products that NI sells, or you can call your local NI sales rep.

  • I am working with a pneumatic actuator and I want to control the supply of compressed air according to the load required using labview

    Hello,
         I am working with a pneumatic actuator and this is coupled to a generator. According to the load requirement I want to control the supply of compressed air into the pneumatic actuator. 
    can someone give somehints to write a control program using labview.

    haneeshcb wrote:
    Hello,
         I am working with a pneumatic actuator and this is coupled to a generator. According to the load requirement I want to control the supply of compressed air into the pneumatic actuator. 
    can someone give somehints to write a control program using labview.
    Well....
    What are the inputs and outputs you want to acquisition(voltage, current, TTL signals, load sensing...) and control(analog voltages, TTL signals, drivers,ssr,relays, power fets...)
    Aquiring a Daq is a start or Arduino Uno to read and control your hardware interfaces to your device
    what are the specification requirements and operations...
    Have you done a forum search on key words? "pneumatic"....
    Being general, opens discussion to nebulous assumptions which members don't have the luxury of time to spend..Though they are willing to help, you must put forth more effort in describing your project, requirements, sensing and controlling, but above all..."what is the problem that you are experiencing?"

  • Tuning an optical encoder with a linear actuator

    Hello everyone!
    I am trying to get an optical encoder (5 lead single ended, incorperated into an Ultramotion D2 series linear actuator) to read the position of the linear actuator's position to 4 decimal figures precision (0.0001), and the DAQ I am using is NI cDAQ 9121 with 2 channels. I decided to use the 65 mV configuration. The encoder has ground, channels A and B, index and 5V leads, of which I have omitted using the index and channel B. Channel A is connected to the AI+. The linear actuator has a scaling of 20,000 steps per revolution and a movement of 4mm per revolution (point to point configuration of the stepper motor drive ST5-S, by Applied Motion). 
    I am not sure if the above configuration is suitable, but I am limited to the current equipment. I have coded the program using LabVIEW 2014 and, while it seems to give a good estimation of the displacement to the nearest 1 mm,  it is not recording the fractions and counts anything that is 1mm or less as simply 1.
    My question is actually threefolds:
    1) How can I tune the encoder to read the exact measurement to the nearest 0.0001 accuracy?
    2) Am I using an appropriate configuration for the leads?
    3) If the problem is not one of the above, could it be something concerning the DAQ software settings and/or the code itself?
    Thanks for your advice in advance!

    Hey kmhijazi,
    Here I share the most general documentation about using encoders with DAQ devices:
    Using Quadrature Encoders with E Series DAQ Boards
    http://www.ni.com/tutorial/4623/en/
    Then, here’s a second resource where you can find more details that you can adjust to improve the measurement (i.e the Decoding type, which will however depend on your encoder specifically):
    Encoder Measurements: How-To Guide
    http://www.ni.com/tutorial/7109/en/
    And, here you will find how to create a test task in NI MAX to try changing these parameters and test if these improve your accuracy.
    Connecting Quadrature Encoders to a DAQ Device
    http://www.ni.com/getting-started/set-up-hardware/data-acquisition/quadrature-encoders
    I hope this can help.
    Regards,
    >>Daniel C.

  • VI for a stepper motor (linear actuator)

    Hi everybody,
    I have to controll a linear actuator (DRL28PB1G-03D, Compact Linear Actuator) so that it moves forward and backward. I have a NI PCI-7342.
    Please, Can you suggest me any examples or similar VIs?
    Thanks

    I was originally interested in your post because I am using stepper motors as well.  But anyways, I looked up your motor serial  number on google.  You should really read the pdfs stating how to install it and use it so you don't break anything.  The pdfs help a lot.  http://www.orientalmotor.com/products/pdfs/opmanuals/HP-1420-5E.pdf is the link to the operation manual I found, it SHOULD be the correct one.  But, I will also include the original link where I found the PDF:  http://catalog.orientalmotor.com/item/all-categories/gories-drl-series-compact-linear-actuators-lega... 
    Lester  

  • Linear actuator, motor controller and labview. Establishing connection.

    Overiew:
    I have a 12VDC linear actuator (potentiometer built in) connected to power and Jrk 21v3 USB Motor Controller with Feedback (http://www.pololu.com/catalog/product/1392). The USB motor controller connects to the computer through USB, actuator's feedback wires connect to the motor controller.
    Problem:
    Establishing connection between the motor controller and labview.
    What I have done so far:
    I installed drivers to the motor controller and windows detects it. NI MAX detects my motor controller (pic attached), but for some reason, when i try to access it through daq assistant in labview it doesnt see it. I also tried accessing it through VISA with no results..
    Help will be appreciated.
    Thanks
    Peter
    Solved!
    Go to Solution.
    Attachments:
    problem.jpg ‏124 KB

    You have a few things you need to look into:
    When you installed the software, did it install a USB > Virtual Com Port dll such as FTDIchip or similar? If so, when you hook up your device, it'll reveal itself as a normal (new) Com Port in Device Manager. You then need to try to talk to that com port.
    If you are trying to use the native USB on the board (as MAX has detected for you), then you'll need to use the .NET framework code provided by the manufacturer (probably written in C#), and make your own Constructors in LabVIEW. If you've never done this, it isn't trivial.
    I would call the manufacturer and just tell them what you are trying to do. They've probably dealt with LabVIEW before, and may have an example to get you started.
    edit: For fun, I followed the link you provided (which doesn't really work). I searched their site for "LabVIEW", and indeed got several hits. This one thing I downloaded (can't resist looking at code) was a gigantic turd ball. However, it did appear to use a normal Com port.
    Richard

  • How to Control the Valves and Pump with Labview?

    I have started a new project where I have to control the valves operation through Labview 2009,using PXI 1031, NI 5105(Digitizer) and NI 6251(M-series DAQ).
    The valves I need to control using the labview are:
    a) Pressure Reducing Valve (open & close)
    b) Remote control Valve(On & Off) with in-built actuator
    c) Flow control valve(open, semi open, partially open, semi close, partially close, fully close), 1%, 2%, 3%..etc
    d)saftey valve (opening closing depending on increase in pressure from certian limit)
    I hav eto control
    a) Hydraulic pump operation with in built gear-box
    Please let me know, how should l develop the VI for all? How to get started?, any helpful links? If there is any example code?
    Its little urgent !

    If you are not familiar with LV, I would suggest you go through the tutorials. Then take the leap and figure out how to use Action Engines and State Machines (search any of the terms I used that don't understand, there are a zillion threads on them).
    Then...
    Sit down and write stand-alone testers for each of the widgets you are going to control monitor etc.
      These testers will give you an idea if they really work the way you think, their character, and will serve as a "Sanity Check" when you think you are going crazy  durring development.
    THen integrate the tester so they can all work at the same time. This will become a utility screen that will serve you well when maintaining the critter latter in its life.
    Only then...
    write out a complete set of state diagrams that describe what you plan to do (don't cheat! ) and walk through them in your head until you are cetain it will all work blah blah blah.
    This step is optional but highly recomened...
    Compose a detailed set of documemtns describing what you have in mind and post them here (include the images, they will get many mor readers) and let people  pick aprat your design.
    When you have a final design, use everything you learned along the way to be a kick-ass developer.
    Along the way post distinct well defined question on this site and as long as it looks like you are trying someone will probably reply and get you going again.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    unless i'm missing something, i think you got mixed up, this is easy google for walk throughs
    i'm assuming this is the new 3tb tc AC or 'tower' shape, if so, its wifi will run circles around your at&t device
    unplug the at&t box for a minute and plug it back in
    factory reset your tc - unplug it, hold down reset and keep holding while you plug it back in - only release reset when amber light flashes in 10-20s
    connect the tc to your at&t box via eth in the wan port, wait 1 minute, open airport utility look in 'other wifi devices' to setup the tc
    create a new wifi network (give it a different name than your at&t one) and put the tc in bridge mode (it may do this automatically for you, but you should double check) under the 'network' tab
    login to your at&t router and disable wifi on it
    add new clients to the new wifi network, and point your Macs to the time machine for backups

Maybe you are looking for

  • Iweb and Safari 5: pages not displayed correctly

    Hello. I am designing some pages that appeared just right in Safari 4, but now that I use Safari 5 they are all wrong (they do appear correctly in Firefox and Opera). Is anybody having the same problem? l.

  • File Upload/Download, updating to SAP

    Hi All: Has anyone implemented the file upload functionality? Could you please share the details.... Iam successfully passing the file name from WD but get short dump with "   Termination occurred in the ABAP program "SAPLCNDP" - in      "DP_CONTROL_

  • Export Ultra Beat Kit to use on another computer? Multiple samples per key?

    I know I can save it in a session, but I'd like to export a custom UB kit, along with its samples, as a single file/folder for use on another computer. Is this possible? Additionally, I'm sure this has been asked before but I never found an answer. C

  • Premiere Elements 4.0 won't start, any help?

    Hi All, I'm running a fully updated windows xp media center edition os on my pc. I have premiere elements 4.0 installed. I haven't used it in about six months, but prior to that it was working flawlessly. I went to start the program today, and I get

  • Io exception: Connection reset VendorError: 17002

    When I switched from our development DB to our production DB, I now sometimes get this error when inserting a BLOB (average about 40k) using the Oracle Database 10g Release 2 (10.2.0.1.0) JDBC Drivers. Any help would be grealy appreciated! Here lies