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.

Similar Messages

  • 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

  • Parental Controls help needed

    I'm a little confused on parental controls.
    Applications logging: Nothing shows up at all. Does something have to be done to activate this? Does it only log certain (i.e. Apple) applications?
    Websites Visited: Does this only log Safari visits, or will it work with Firefox too? It started working and then just stopped logging.
    Chat: I realize that parental controls only works for iChat. Is there something else for other chat programs? Is there a way to limit access to other chat programs (there are so many) to force iChat use so it can be monitored?
    Thanks

    Still not working. It logged some website and chat activity for about three days and then nothing. I have tried turning on and off, restarting machine - still nothing. I am not sure about time limits or other restrictions - as far as I know nothing about Parental Controls is working at all.
    I realize this is "user to user" help. Is there an "official" place to get support or report this as a bug?

  • Java NetBeans IDE 6.1 Desing out of control, help needed!!! Please...

    Hi,
    I have a problem positionning the components in the desing view in NetBeans IDE.
    I see some tutorial, its look realy easy but still, I don't get the result I want.
    Did it exist a way to fix(lock) my component using the desing view?
    When I try to rezise or move my component, the others start moving to and rezise making a complet non-sense and it's the free-for-all help!
    Anyone know a link talking of desing in the netbeans more that the basic?(English or french or anyway any other language it's will stay more easy to understand than the move of the components in my interface)
    How to select deselect blue anchor when I rezising to select what components will affect another one?
    I know it's suppose to be more easy but maybe I do sometinhg wrong when I use the desing view I consider using another ide now ...
    Thanks for your help and comment!
    Edited by: equattro on Oct 5, 2008 10:02 AM
    Edited by: equattro on Oct 5, 2008 10:03 AM
    Edited by: equattro on Oct 5, 2008 10:28 AM

    This is a forum for matters concerning the Java programming language, not for the NetBeans IDE. Try to find a NetBeans forum for your NetBeans problems.
    I believe there's one on nabble.com and another on java-forums.org.
    db

  • 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

  • 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

  • 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

  • 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 recently had to restore my Iphone 4s and ever since I cannot double click the home button whilst the phone is locked and change my music. The controls come up and I can adjust the volume but I cannot change the songs. Help needed please!!

    I recently had to restore my Iphone 4s and ever since I cannot double click the home button whilst the phone is locked and change my music. The controls come up and I can adjust the volume but I cannot change the songs. Help needed please!!

    Have you guys been able to activate your iphone yet? I bought an iphone 4s from eBay and it worked fine, but the previous user had left some data on it, so last night I used the "erased all content and settings" to restore it to factory setting so I can start fresh and restore my backup. But now I'm stuck at the activation screen (I get the same "the activation server is temporarily unavailable")  and can't get it to activate, even if I use my old deactivated AT&T sim card (I'm on straighttalk now).
    I might try activating it with an active AT&T sim card from my fiancee's phone when she gets home, so I'll let you know how that works outs.
    If it's true that the server is down; anyone know when it will be back up again? Thanks in advance.
    iPhone 4s iOS 5.1.1 (9B206)
    Carrier AT&T 12.0
    Modem Firmware 2.0.12

  • 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

  • I am looking for a lab view schematic for hooking up a high-power motor driver to a linear actuator with feedback

    I need some help coding in labview 2012. I am hooking up a Pololu High-Power Motor Driver 18v25 CS to a Concentric LACT12P-12V-5 Linear Actuator with Feedback: 12" Stroke, 12V, 1.7"/s.  Thanks!

    Hi James,
    How are you planning to hook up your motor driver with PC? Do you have some DAQ device or hardware target to send TTL/PWM signals to driver?
    Regards.

  • 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

  • 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  

  • Help needed I have a canon 40D. I am thinking of buying a canon 6D.But not sure that my len

    Hi all help needed I have a canon 40D. I am thinking of buying a canon 6D.
    But not sure that my lenses will work.
    I have a 170mm/ 500mm APO Sigma.
    A 10/20 ex  Sigma   HSM  IF.
    And a 180 APO Sigma Macro or do I have to scrap them and buy others.
    ALL Help will be greatly received. Yours  BRODIE

    In short, I love it. I was going to buy the 5DMark III. After playing with it for a while at my local Fry's store where they put 5DMII, 5DMIII and 6D next to each other, using the same 24-105L lens, I decided to get the 6D and pocket the different for lens later.
    I'm upgrading from the 30D. So I think you'll love it. It's a great camera. I have used 5DMII extensively before (borrowing from a close friend).
    Funny thing is at first I don't really care about the GPS and Wifi much. I thought they're just marketing-gimmick. But once you have it, it is actually really fun and helpful. For example, I can place the 6D on a long "monopod", then use the app on the phone to control the camera to get some unique perspective on some scenes. It's fun and great. GPS is also nice for travel guy like me.
    Weekend Travelers Blog | Eastern Sierra Fall Color Guide

Maybe you are looking for