Can I use SoftMotion to simulate a PID motor control loop using a Solidworks model?

Hi
I'm not a labVIEW user yet. But I probably will become one when I can do the following:
I have a Solidworks model of a complex machine with multiple servo motors. Can I use labVIEW plus SoftMotion to calculate the needed motor forces and aply these forces on the Solidworks model making some parts in the model move and can I get positional feedback from the Solidworks model which I can use in labVIEW to calculate the motor forces again. This way I could use labVIEW to simulate the complete motor control loop including some PID filtering.
I could find some posts about SoftMotion, but they all seem to handle about SoftMotion in combination with external hardware. But I would like to do a complete software simulation.
I hope this is possible.

Hi Melomania
Solidworks for SoftMotion works in an interesting manner. First SoftMotion runs in labview and plots a trajectory path based off the input from the user. The generated points are controlled by speed, velocity and acceleration. These generated points are sent to SolidWorks where the physics engine takes over. SolidWorks calculates the ammount of force required to move the component the given distance and also if there are any collisions that take place. Basically the whole process is open loop with no PID being implemented. The purpose for the software is to test your motion system for collisions and calculate the required torque for your motors to move and the velocities and accelerations provided. A system prototyped with SoftMotion Solidworks will still need to be tuned when constructed in the real world.
For your application I would look into Control Design and Simulation Toolkit.
Thank You
Eric Reid
National Instruments
Motion R&D

Similar Messages

  • PID motor control

    VTrying to implement system similar to https://decibel.ni.com/content/docs/DOC-16983 with a9 volt DC motor max speed 350 rpm 
    The problem that I am facing in here is that
    1.>when i set a desired speed more than 200 rpm the controller output oscillates and suddenly becomes zero and the counter shows a random value(i.e feedback is not proper).For lower speed it works fine.
    2>Also the rise time for the system is very high..Whta could be the causes for these glitches?

    Hi nathand,
    I have configured the gains using trial and error method  and they seem to work well in simulation when i am trying to simulate the motor with its transfer function.The rise time seems large when trying to implement the system with hardware( cDAQ 9184 DIO 9401 Analog O/P card 9263)
    As you say the pulses might be wrongly filtered out.I have tried reducing the minimum pulse width parameter for the filter but that does not change results.But using it is necessary otherwise the counter reads garbage values.
    I am not working with system today but when i follow up tomorrow i shall surely check for errors in DAQmx read..Can you tell me what sort of eror you are suspecting might occur?
    I am uploading my VI for you to check if i have made a mistake in programming.
    Thanks
    Attachments:
    PID.vi ‏66 KB

  • Motor control by using UMI7764+7330

    I have 7330 controller card and UMI 7764.
    as i konw,UMI 7764 is only an accessories that supplies the interface,it did not have a drives function like MID 7***,and 7330 could only drive a steper motor......
    ...... can they drive the motor which has two  analog input(DC-12V~+12V)?
    and Is the output a pulse or an analog output?
    need I buy an MID 7*** card?

    7330 and UMI-7764 cannot  drive such a motor.
    Even though you buy MID, you also cannot control it.

  • Can I edit the data already displayed in tree control?

    I'm using a tree control to display some data in front panel. But after running the program, can I edit the data already displayed in tree control by using input control and let it change and display dynamically? In invoke nodes I can only find add or delete items in tree but can't find edit...

    There is no direct editing option available, same can be achieved in two steps by using
    --> Add Item Invoke Node
    --> Delete Item Invoke Node
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

  • 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

  • Motor control using pwm,pid

    Hi all,
    Can anyone help with this please.
    I have a counting circuit from a hall effect sensor and am controlling a motor using a PWM.I am controlling the speed of the motor varying the duty cycle and the motor is wired via solid state relay.these run fine.
    What i am trying to do now is connect through a pid as to control the speed of the motor.
    My understaning is that the set point is from the duty cycle, the process variable is the feed back from the sensor (rev per min) and the output is back to the motor to increase or decrease speed.
    Is this the correct understanding? and if so can you help with setting up.
    Attached is my vi.
    Regards Anthony
    Attachments:
    rev per min 5.vi ‏117 KB

    Continued from here: http://forums.ni.com/t5/LabVIEW/Error-200290-when-running-a-pulse-count-and-pwm-program-together/m-p...
    Please look at what I wrote there. You need only one loop. The PID and Counter Write functions should all be inside that same loop, along with the measurement. The PID will do nothing useful outside a loop.

  • Create servo loop using analog in, analog out & PID control

    I would like to try to use a PID loop to oscillate a hydraulic servo valve to a max rate of 325 cycles per minute, or 5.4 Hz. The feedback is a proportional +/-5 signal also. I am currently generating a sine wave, then summing the difference from the feedback signal. Works great upto 225 CPM, but starts to get slightly erratic more and more afterwards. Any ideas?

    I'd agree with John W. that the instability is likely tied to the delay.  I further suspect that you can improve your situation with some careful coding.
    The standard answer to questions about stabilizing a servo loop start with:  "Use LabVIEW RT because Windows can never be relied on to give consistent, deterministic timing."   However, that comes with some significant expense, both in $ and in learning curve.  Fortunately, your loop is fairly slow-ish and you might stand a chance of getting pretty decent behavior under Windows.  It's at least worth a try, eh?
    Here are some basic ideas:
    1. Your servo loop needs to run considerably faster than the 5.4 Hz max input sinusoid.  50+ Hz is a decent goal.
    2. Your servo loop needs to be tight and clean and run at high priority.  I'd highly recommend DAQmx and a timed loop.  Inside your loop don't use build array, don't configure data acq, don't write to file, etc.  Basically you are aiming to write RT-style code and hope to get away with running it under Windows.
    3. Never request data with an AI Read unless you're certain it's already available in a buffer.  I would recommend setting up AI as a continuous circular-buffered task, then always requesting the most recent sample(s).
    4. Make sure you send out your AO control signal immediately after you've received the AI feedback and performed gain calculations.  This reduces the delay John W. mentioned.
    5. Keep track of actual time in your loop.  Under Windows, your loop rate will NOT be perfectly consistent and will contribute to instability.  By keeping track of actual time and using it in your gain calculations (especially integral or derivative terms), you can reduce this contribution somewhat.  (You can't entirely eliminate it.)   You might get by temporarily using the built-in 'Tick Count (msec)' function, but eventually you'll probably want to use higher-resolution data acq hardware.
    If you keep having trouble, post some code...
    -Kevin P.

  • Trying to delete file from trash but get this: The operation can't be completed because the item "File name" is in use. All other files delete except this one. Please help

    Trying to delete file from trash but get this: The operation can’t be completed because the item “File name” is in use. All other files delete except this one. Please help

    Maybe some help here:
    http://osxdaily.com/2012/07/19/force-empty-trash-in-mac-os-x-when-file-is-locked -or-in-use//

  • I would like to know if you have to back up a macbook hard drive, can I use a external hard drive that has been previously used to back up several pc 's, or is it best to have a separate external drive for the Mac?

    I would like to know if you have to back up a macbook hard drive, can I use a external hard drive that has been previously used to back up several pc 's, or is it best to have a separate external drive for the Mac?

    In the Mac side of things, backups usually come in two flavors: clones or incrementals.
    A bootable clone is a bit-for-bit copy of all essential files in the startup volume. If using the Lions, clones can be made using CarbonCopyCloner or just plain old Disk Utility. These backups represent the safest protection of your info, but take the longest to do. Recovery is an inverse process: you copy the clone back into the internal drive.
    Incremental backups start with a complete backup of the startup volume and only copy whatever changed from the previous run. OS X includes the fully integrated Time Machine backup utility to do this. It is extremely easy to do and takes the least amount of time. Recovery is another matter altogether since you have to start with a freshly installed instance of the OS and have to apply all intervening backups to bring the result to the latest saved version.
    As for where the backup takes place, the recommended media is an external dedicated drive or drives connected via the fastest interface available on your Mac: Thunderbolt, USB3, Firewire, or USB2. Network-based backups, wired or wireless, are attractive but may not offer the same performance and hence take longer. Also important to note that the entire drive need not be completely dedicated to a single backup. The Mac's EFI firmware infrastructure allows for an unlimited number of partitions on a hard drive and each can be used for either type of backups.
    Holler if you need specifics on how to do each. This was just an executive summary.

  • Can you program a Slave's Node ID or Zone ID using the USB-8476 as the LIN Master?

    I am planning on using the USB-8476 LIN interface as the LIN bus Master in an application.  The application would require the USB-8476 (Master) to program a Node ID and Zone ID into a slave device that is on the LIN bus.  The slave device is a PIC12F1822 mcu + MCP2021 LIN transceiver.  After reading through the User/Software Manual for the USB-8476, it does NOT seem possible to assign an ID to a slave device.  It seems like you can only communicate with slaves that already have an ID programmed into their memory.  The Node/Zone ID terminology is used by our customer and may not conform exactly to the IDs associated with LIN.  I am new to the LIN world, so please let me know if you need more information about what I'm trying to accomplish.  Can you program a Slave's Node ID or Zone ID using the USB-8476 as the LIN Master?

    No need to respond to this topic.  The company that builds the slave device has a communications specification that was recently provided to me.  I should be able to use the NI USB-8476 and a call to the ncWrite function (NI-CAN Frame API function) to accomplish my goals. 

  • I am confused about something.  How do I read a book on my MacBook Pro?  I can't find the iBook app anywhere, which is what I use on my iPad.  The book I want to read is in my iTunes but I can't click on it.  My iBook library does not show up in iTunes.

    I am confused about something.  How do I read a book on my MacBook Pro?  I can't find the iBook app anywhere, which is what I use on my iPad.  The book I want to read is in my iTunes but I can't click on it.  Some of my iBooks show up in my iTunes but they are "grayed" out.  The only books that respond in iTunes are audiobooks and that's not what I'm looking for.  Is this a stupid question?

    Nevermind - I answered my own question, which is I CAN"T READ ANY BOOKS I purchased in iBooks on my MacBook Pro.  If I want to read on my mac I have to use Kindle or Nook.  Which means any book I've already purchased through iBooks has to be read on my iPad.  Kind of a drag because there are times when it's more convenient for me to read while I'm sitting with my Mac.

  • My Bluetooth USB wireless transmitter for my portable speakers has quit working.  Preferences says, "The selected device has no output controls", it used to work just fine.  Can anybody help?

    My Bluetooth USB wireless transmitter for my portable BT speakers has quit working.  Preferences says, "The selected device has no output controls", it used to work just fine.  The internal and a pair of wired external speakers work fine.  Can anybody help?

    Just tested something and it worked.
    If I put the headphones all the way in, the mac recognizes it as a digital output.
    But if i don't put it all the way in, it recognizes it as headphones and works perfectly.
    It's probably this crappy headphones.
    If anyone has the same problem, try this out.

  • I have a annual plan, it supposed must be used in two terminals, but i haven´t been able to install any app in a second computer, it always says that the app is only available as a trial download. What can I do to solve this issue, and be able to use my p

    I have a annual plan, it supposed must be used in two terminals, but i haven´t been able to install any app in a second computer, it always says that the app is only available as a trial download. What can I do to solve this issue, and be able to use my paid plan in two computers?

    Hi Susan,
    Please refer to the help document to fix this issue:
    Creative Cloud applications unexpectedly revert to trial mode | CS6, CCM
    You may also refer to the thread as below:
    creative cloud software says my free trial has expired, but I have a paid subscription
    Regards,
    Sheena

  • I can't activate my iPad and I'm sure i am using the correct apple id and password but when i press net it says it cannot be used to unlock this iPad

    i can't activate my iPad and I'm sure i am using the correct apple id and password but when i press net it says it cannot be used to unlock this

    You can try to figure out which Apple ID/email address and/or password you used to activate it by going to http://iforgot.apple.com
    If you can't, you'll need to contact Apple Account Security with your proof of purchase. 

  • I have a iphone 5 and I can login with my apple id to purchase music. However, when I try to login into icloud using the very same username and password that I use in the apple store it does not work to enter icloud, so what what gives???

    I have a iphone 5 and I can login with my apple id to purchase music. However, when I try to login into icloud using the very same username and password that I use in the apple store it does not work to enter icloud, so what what gives???

    I could do that, however when I select the icloud button (or whatever the heck it is) I am asked to enter the apple id and password. So if you are suppose to create another one for icloud you'd think it would give you the option at this point which would be logical.

Maybe you are looking for