Control two different parameters at the same time

Two motors were connected each other rigidly. One motor controlled torque and the other motor controlled speed. I generated some torque and speed data which represented one cycle of motion from a motor simulation. I like to send these two different data sets (torque and speed) to two different motors at the same time. Torque data sends to one motor and speed data sends to the other motor to see the response of the load profile. In order to do this, I thought about using multithread, but I am not sure it will work for this application. Usually multithreading delay the CPU time so the overall control process might be delayed, right? If you have better idea, please let me know.

If you are using one motion controller to control both motors, you will probably run into problems if you try to use multithreading on the PC. However, you can execute up to 10 programs (threads) at a time, in addition to host communication, using on-board programming. For more information on on-board programming please refer to the following tutorial: Developer Zone Tutorial: On-board Programming in FlexMotion
Best wishes!
Dawna P.
Applications Engineer
National Instruments

Similar Messages

  • Collecting data from advantech-usb4704 with two different apps at the same time

    I wonder if I can access to Advantech-4704 with two different applications at the same time?
    I use this block in my vis.
    I have enough ports, but inputs are needed in completely different applications. Do I have to close one of them or can they run simultaneously?
    Thankyou!

    Dear gtu,
    as nathand said, usually it is not supported to access the same physical resource simultaneously from multiple programs. In case of DAQmx for instance, you will get an error message which says that the resource is already reserved. I suppose the same would happen with your driver, however it might be worth a try.
    One workaround could be however if you revise your applications and merge the codes if it is possible so that no concurent resource allocation takes place.
    Best Regards,
    Adam Cseh
    Applications/Systems Engineer
    National Instruments

  • HT204380 Can you FaceTime two different people at the same time?

    Can you FaceTime two different people at the same time?

    No, not at this time. Feedback to Apple goes HERE, and click on the appropriate section.

  • How can I log into two differant accounts at the same time in two windows without the second window affecting the first.

    I'm trying to log into two facebook accounts at the same time in differant windows. When ever I log into the second account in the second window it changes the login in the first window. When I hit home or any other link the first window account has been logged out and logged into the second window account. I tried installing a second copy of firefox in a differant folder that the first but it seems to use all the files of the first installation. If I can get 2 toatally seperated instalations that don't rely on the same history, cookies, cache, etc I belive that will solve my problem. Please help.
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)

    Nah, that won't work. Facebook has a feature that gets your IP Address, so as soon as you sign into one on the same computer, it changes the other login for safety purposes (say, someone was on a public library PC. They forgot to log out. Someone else logs in, and it automatically logs them out). You'll need 2 computers to do that.

  • Is it possible to realize two different processes in the same time with TDMS?

    Hello all,
    we have one TDMS but a lot of workstreams. Is it possible that 2 different workstreams in the same time realize anonymization in TDMS?
    Thanks in advance!!!
    Ilkin Mammadov

    Hello Anita,
    I am sorry.I mean we have a lot of projects (for example Procurement, Finance, Logistics, etc) and each of them wants to anonymize. But it is existing just one TDMS. Can these projects start with anonymization in the same time or they have to wait till one of projects finished anonymization?
    Thanks in advance!
    Best regards,
    Ilkin

  • How to compare two different characteristics at the same time in polestar

    Hi Gurus,
    I would like to analyse the e fashion universe in polestar with comparison of previous year product line with current year product line at the same time.
    is there any way to do that we can compare two years of the product line sales revenue at the same time with comparison chart like 2003 T shirts vs 2002 T shirts 
    in polestar we can compare the two measures at the same time but i want to compare the sales revenue of product lines of two years in a comparison chart at the same time.
    Regards and thanks
    Abid Paul

    Hi Stratos,
    I am actually able to compare the Measures  but i want the comparison between the two different characteristics like this year  productline  vs last year productline at the same time with say one measure like sales revenue or any other.
    Is it possible to compare the both and it should represent in the chart as well at the same time.
    In the polestar i can compare three measures at the same time but i want to compare characteristics like year  2009 productline VS 2008 productline with one measure say sales revenue.
    I would really appreciate if you could help me out.
    Regards and thanks
    Abid

  • HT2688 How to play same song of two different computers at the same time

    Hi I have turned on Home Sharing. So one computer can play music on another.  Is there any way to have one computer play what the other computer is playing at the same time.  Other than just starting the same song as close in time as possible on each computer.

    create an album of all of the photos you want to order, open the album, select all and order - be sure teh photos are cropped to the print size so unexpected cropping does not occur during the printing process
    LN

  • Is it possible to order two different cards at the same time? I do not want to pay shipping costs twice.

    Hi, here's my problem. I made two different Christmas cards that I want to hand over in person. When I order one however, I can not select the other one, despite the fact that I want them both delivered to the same adress. Is there a way to order both as a bundle?
    Thanks a lot
    Best, Stefan

    Afraid not.

  • Keys playing two different sounds at the same time

    I keep getting one of the synths whenever I'm playing the Pop Kit, or any drumkit, with my MIDI. Basically when I hit a key, two sounds come out of it when it's only supposed to be one. I've rebooted GB and the MIDI with no success. How can I fix it?

    That's weird - never heard of that phenomenon. Could it be that the second sound is coming out of your keaboard? What's your setup?

  • Time Division Multiplexing and Processing Different Loops at the same time

            Hi, I am new in Labview so you may find my questions too silly, sorry about that
    I want to design an interface to control the test&measurement devices remotely. I have two desks and there are several devices on these desks. The real problem is to use two different devices at the same time. To do this I heard that I can use time division multiplexing. But I couldn't find enough information about it in Labview. Another advice I heard was to use a matrice and hold the on/off state of the devices in this matrice. 
    Where should I start the design to create such a system? Do you have any advices? Thank you in advance.
    My basic GUI is attached.
    Attachments:
    InterfaceAli.zip ‏42 KB

    As Mike pointed out you cannot communicate in parallel on the GPIB bus - unless you have separate buses for each instrument - and that defeats the purpose of a bus. I am not sure about LXI.
    With regard to your VI:
    1. Do not use global variables to pass your data around.
    2. You should use the Array data type, not the Matrix data type. The Matrix data type in LabVIEW should only be used for matrix mathematical operations (linear algebra) which cannot be easily performed on the array data type. You have many more tools in LV to work with arrays.
    3. The Event structure needs to be in a parallel loop. This is basic data flow. If you do not understand this concept, get some training, either though the online tutorials or through a class.
    4. Use Value Changed events and place the button terminals inside the event case for that control.
    5. The parallel loops need to have a Wait or some other function which causes a delay. Otherwise, the first one to start executing could consume all available processor resources. These are called "greedy loops." 
    6. Use integer data types for case structure selector inputs. Floating point values are coerced to integers at the inputs. If the values resulted from calculations, unexpected rounding effects may occur, resulting in the wrong case being selected. In some cases using type defed enums may be even better. The underlying data is integer and the enum item names show up in the case selector labels, helping to document what the case does or why it was selected.
    7. Remove the timeout case from the event structure since it never executes. Also avoid Use Default if Unwired on the terminal with your matrix (array) data. You never have a situation where an empty array is appropriate.
    Before going any further with the program questions, you need to carefully define your requirements.  How many instruments will you have? How many can be active at one time? What kinds of communication between the program and the instruments is required? This includes commands to the instrument, data returned from the instrument, error handling, and timing requirements. What will be done with the data? Display, save to file, use to automatically control another device? What safety requirements or constraints need to be met? Once you have a good requirements document, then you can begin to determine what kind of program architecture is best suited to meet the needs.
    I suspect that you may be making some things much more complicated than they need to be while ignoring other important issues.
    Lynn

  • Stream from iMac to 2 different ATV's; different movies, at the same time?

    Can I stream  from my iTunes library on my mid 2014 iMac; to two different 3rd gen ATV's, two different movies at the same time?

    Thank you Alley_Cat for your reply!
    Yes...all devices are enabled for Home Sharing with the same APPLE ID, all on the same network, the content is in iTunes and compatible, computer and iTunes running, and I am initiating playback on the AppleTVs themselves via the Computers icon.
    playback is is fine on 1st ATV. When I TRY to connect to ATV #2... and try to connect to my iTunes library i get:
    COULD NOT CONNECT TO _______ LIBRARY MAKE SURE COMPUTER IS ON THE SAME NETWORK AND ITUNES IS UP TO DATE AND ITUNES IS RUNNING.
    iTunes is up to date ver11.3.1.(2) .  As noted before,same network iTunes compatible, running and initiating playback on ATV's via Computers icon.

  • I would like to import two different cf cards from two different cameras into the same project/folder and have them be in order of the times they were taken, is there a trick?

    I would like to import two different cf cards from two different cameras into the same project/folder and have them be in the order of the times they were taken, any ideas on how to do this?

    Just import them normally and sort the project by date. They will fall into place. If you tried this and it isn;t happening then make sure the data and times on the two cameras are identical and make sure you are sorting by date and time and nothing else.

  • Acquiring a signal from two separate DAQs at different rates at the same time

    Hi I am trying to setup a system where I need to build two separate arrays one from two separate sets of data. The data needs to be brought in at the same time, but at a different rate. One set is from the PCI-4472 and will come in at ~10Hz, while the other is from a SCXI-1102 that is connected one channel on a PCI-6070E at ~3-5Hz. I was wondering how to have the two be read at the same time, but at the different speed. I am using LabView 6.1. Thanks in advance.

    Hi Muheesh:
    Since your DAQ's are working at an exact multiple of one another, what you could do is fill alternate channels with some "DUMMY" data...like zeros. Then you could index the array and match it up with the faster card. It might seem like a waste of memory, but it will give you two sets of aligned data, which seems to be what you need. If you're operating them at some weird multiple, it's a bit trickier. Whatever you do, you're going to have to insert some bits somewhere. Look for a least common factor (LCF) of your sample rates, and see if you can divide by that before logging the data.
    Eric
    Eric P. Nichols
    P.O. Box 56235
    North Pole, AK 99705

  • My MacBook is almost two years old and has started running really slow. It gets bogged down when it is running different programs at the same time, like Safari and Pages. It didn't react this way until recently. Any advice would be very welcome.

    My MacBook is almost two years old and has started running really slow. It gets bogged down when it is running different programs at the same time, like Safari and Pages. It didn't react this way until recently. Any advice would be very welcome.

    Launch Disk Utility and select the icon of the internal drive (the drive itself, not the volume icons below it.) Is the SMART status "Verified?" If not, replace the drive immediately. If the status is "Verified," the drive may still be failing. Back up all data, if you haven't already done so. Reinstall Mac OS X, then run Software Update. Test with all wired peripherals disconnected. If it's still slow, you have a hardware problem.
    Mac OS X 10.6 Help: Reinstalling Mac OS X

  • Controller different Input in the same time in a real Scenario...(SIMULATION IN 2 TANKS CONTROLLER BY PCB BOARD)

    Hi! I really need help....
    I´m doing a simulation where I can controller the input and output with one external PCB, all is working properly (the communication) but my problem is, I can´t open where ever I want the different valves...I mean, I must wait until the process is finish...
    The program is working with diferents process like this:
    §Process 0:
        Programinitialization. Tanks and pipes in zero state. Control for this state with  “pump on” button.
    §Process 1:
        §State:
             “ Pump on ” button istrue: Pump 1 isrunning, andTank 1 starts to be filled with water.
             “ Pump on ” button is false: nothing happen, go to the next process
    §Process 2:
         This process is controlled from the “Control 1”button with is who control “Valve 1” for the discharge of water from tank 1 to tank 2.
    §Process 3:
          This processiscontrolledfromthe “Control 2 ”button with is who control “Valve 2” for the discharge of water from tank 1 to tank 2 if “Control 3 ” button is close or if “Control 3 ”button is open the water go out from the loop.
    §Process 4:
          This processgiveyoutheoptiontocome back totheprocess 1 ortotheprocess 2 dependingofthestate in process 3.
    So my problem is I want  run different processes in the same time, without having to wait out the current process is running....
    this look like this:
    and with the differents states...so I was trying to use a Statechart for try to improve the simulation....
    like this:
    But when I was tried to implement in labview with the statechart module i can't find the way to interconexión with this new module...
    Because i need two differents regions...but i can't use the connexion between them....
    Some new idea, help....all is welcome!!!
    Thanks in advance.
    Elena

    Buenos días Alvaro,
    Si, mejor en español
    Si, me has entendido bien, exactamente es lo que me gustaria. 
    Empece por mi cuenta con labview y hay muchas cosas que se me escapan... Voy a implementar la máquina de estados a ver si asi soluciono el problema.
    Muchas gracias!
    Un saludo!

Maybe you are looking for