Modified control loop.vi URGENT!!!!

je souhaite utiliser le "modified PID control loop.vi" pour avoir deux entrées acquisition distinctes et une seule sortie output à gérer.dois je simplement dupliquer ce vi ? Dois je imbriquer les 2 boucles dans une seule ?
merci si vous pouvez me fournir un vi adapté car je débute avec labview."

Bonjour,
De quel exemple parlez-vous? Pouvez-vous le poster ou me dire où le trouver?
Merci.
Matthieu Gourssies
National Instruments France

Similar Messages

  • Usb-6009 high-speed continuous acquisition for slow control loop application

    Hi,
    After watching a few Youtube videos, I successfully built a control loop in LabVIEW using my USB-6009. Currently, this loop is limited by the speed my actuator can take and respond to commands, topping out at 200 Hz. This is completely sufficient for my application. My question is more regarding the wasted potential of the USB-6009 to acquire samples at a much higher rate than what would be obtained if I used a simple single sample-on-demand during every iteration of the loop.
    It seems to me that having the USB-6009 continuously acquire samples and having my control loop periodically check in for the latest data when it is ready to execute would have the advantage of allowing me to average groups of samples together to lower the overall noise associated with the measurement process (I am reading voltages from an amplified photodiode).
    1) Does anyone know how I would instruct the USB-6009 to continuously acquire at say 10 kHz, so that on each loop I will have 50 or so samples that can be averaged together for a more accurate measurement of my control variable? Unfortunately, I'm new to this and not too familiar with DAQmx Timing.vi.
    2) I've heard that reading into a buffer can increase latency for moving data into the computer. Given the low speed of my control loop, I don't foresee this as being a problem. Is this a correct assumption? I can probably live with an extra millisecond of latency.
    3) I goofed around briefly with DAQmx Timing and managed to see a buffer overflow error. Certain rare events will by necessity cause my control loop to take much longer to execute, so I cannot guarantee that occasionally during normal operation I will not overflow the buffer. Can I suppress this error so that the dialog box does not pop up and the program continues to run uninterrupted? If the buffer overflows and old data gets overwritten it isn't a big deal for me since the control loop is only concerned with the latest data anyway.
    Thanks for any info!

    Howdy Patrick!
    Here is a picture of the front panel:
    Here is the block diagram:
    And I've attached a copy of the VI saved for LabVIEW 7.1.
    Regards,
    Barron
    Applications Engineering
    National Instruments
    Attachments:
    most recent samples.vi ‏73 KB

  • Performance issues using control references in Analog control loop?

    My main vi of a tensile tester control application calls a number of sub-vi's, including a analog control loop which controls the test. The control loop must update some boolean and digital indicators and respond to user input on the front panel of the main vi during a test.
    To simplify my main vi, I moved the control loop code into a sub-vi, and used control references to access the controls and indicators on the front panel. However, this has dramatically affected my loop performance, and the loop can no longer keep up with the acquisition speed.
    Do control references always cause such a slowdown? Is there anything that I can do besides moving the code back into the main vi?
    Thank You,
    David Creech

    I have had the same problem. I have discovered other funny things about references also; some kind of memory management (or mismamagement?) is taking place behind the scenes.
    Regardless, you can often do away with the references by passing the initial state of a control or indicator into the subvi, changing it inside, and passing the altered state back to the caller. Once back in the caller you update the front panel control or indicator by using a local variable.
    One thing to watch out for if using this scenario is the dreaded race condition; this can be avoided using a state machine. Check out
    http://www.advmeas.com/goodies/statemachine.html
    for a good example. It is a shame that references behave in this way; it limits thier usefulness.
    Perhaps someo
    ne else will point out a way to utilize them more sucessfully?

  • Timed Loop timing source - Control Loop From Task is too slow

    I'm trying to make a Timed Loop run at a period of 2 ms, with an analog input task running at 50 kHz as timing source. The input analog signal is scaled and fed into a synchronised analog output task on the same multifunction DAQ board. Using the built-in 1 kHz or 1 MHz clock as timing source for the Timed Loop works great, except for a slight time lag between the loop and my AI/AO tasks which over time becomes unacceptable because my task will be running for up to an hour. However, when I use the DAQmx Create Timing Source: Control Loop From Task vi to create a timing source, everything slows down and the fastest loop time I can get is around 20 ms. Any suggestions to get around this would be highly appreciated!
    System: LabVIEW RT 8.0 with DAQmx 8.0 running on an NI PXI-8186; NI PXI-6251 used for analog input.

    You're welcome!
    You can build an array, and if your data is not hugh (100's of MB) this may be the easiest solution. However, we aways suggest implementing the Producer/Consumer Architecture. Keep the PID in the Producer loop, but move the File IO to the Consumer. Also, it  appears that your instrument uses some form of serial communication, so that could cause lags in your system....
    What is your application about in general, what performance are you hoping for, etc?
    Joshua B.
    National Instruments
    NI Services
    NI Support Resources
    NI Training Resources

  • PID control loop slows down during execution.

    Hi, I am a attaching a LV8.6 code that i am currently using to control my engine experiment. I use PID control where the input signal is an rpm value that i measure using a counter. The ttl signal from the sensor is not clean and so i use an analog trigger to generate pulses on the counter from where i measure the frequency and hence the rpm. The output is generated as an analog voltage on an output channel. The problem i am facing is that the loop runs really good when i start off but gradually the loop keeps slowing down and this greatly affects my ability to control engine speed. I am not sure why this is happening. I tried increasing the sample size and rate (so as to increase the buffer size) but this didnt have any effect on the speed. I am guessing its a problem with the way i have my loops setup.. any suggestions would be greatly appreciated.
    Thanks, Shyam.
    Attachments:
    PID control loop.vi ‏33 KB

    Hi all..I realised my mistake soon after posting as usually is the case..the create channel vi for doing the analog output to the output channel was within the loop and slowing things down..when i moved it out..it fixed the problem!!
    Shyam.

  • Time controlled Loop faster than 1ms

    HI
    I work with Labview 8.2.1.
    I need a time controlled loop who is faster than 1ms. I tried to use the 1MHZ time source (see picture) but the loop does not work with this.
    Please help
    Message Edited by SteffenGrab on 11-30-2007 01:13 PM
    Message Edited by SteffenGrab on 11-30-2007 01:17 PM
    Attachments:
    Time loop.JPG ‏66 KB

    There is no picture to see...
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Time Controlled Loop?

    I am building an application that scrolls through an panoraminc photo to make it appear as if its rotating 360 degrees.
    So far i can get the image to scroll left and right continously by having a left and right button to click on
    what i am after is some ideas/direction on how i could automate the process, as in when you click the left button the image will scroll at a certain speed.
    I was thinking that i would need a time controlled loop where the the method for scrolling the image to the left occurs every few seconds.
    Thanks in advanced

    Use a inner class that extends Thread as follow:
    class MyTimer extends Thread{
    boolean continue=true;
    public void stopScroll(){
    continue=false;
    public void run(){
    while(continue){
    try{
    xpos=pictureScroll(img, xpos, "right");
    sleep(100);
    }catch(InterrupdedException e){
    }use
    Thread t=new MyTimer ();
    t.start();to start scroll, and to stop
    t.stopScroll();in button's ActionPerformed

  • Shell Creation Modify Control Files with Exclude Table Information  Step er

    I am try to create Shell using TDMS  I  am gettingbelow error while executing step Modify Control Files with Exclude Table Information.
    I am getting error saying that    //No such file or direcroty  Message no.: CNV_TDMS_13_SHELL000
    I am using NFS common mount as my install directory between CI & DB, please can you help me.
    Please can help me.
    Thanks
    Ramesh

    It appears that the directory for shell installation is not accessible from CI (TDMS execution server). Do the following -
    Copy the entire Shell installation directory (having TPL files) temporarily to the CI app. server and maintain the path of this directory in the TDMS package.
    Then execute the activity which is currently failing. Most probably it will finish successfully.
    Now copy the DDLORA.TPL file from this directory to the original directory on the DB app server and continue with your exports.
    I hope this helps.

  • How can I get the highest control loop speed?

    currently I am doing a nonlinear control.
    whose control loop speed is higher than 20k.
    My PXI is 8145 and 8175 , with DAQ card 6040E.
    Each time I need only one point in and then processing , then output a point.

    I would recommend configuring your program like the example program, Real-Time PID Control.vi, that ships with LabVIEW. You can find it in LabVIEW by going to Help->Find Examples and type "PID" on the search tab. The Real-Time PID Control.vi shows a good way to design your program for a single point in, single point out application.
    If you're aiming for a 20KHz loop speed, you may not be able to attain this with the PXI-8175, assuming you also have a normal priority loop running to handle the communication back to the host computer. To time your code, you can use the NI Timestamp Code Time.vit template that comes with LabVIEW 7 Express. The PXI-8176, benchmarked for sinlge point PID loop rates up to 40 KHz, may be a better solution for you application.
    It is
    also a good idea to disable the USB port and to install only the RT drivers you need. For information on how this is done, follow this link.
    Please let me know if you have further questions.
    Regards,
    Kristi Hummel
    Applications Engineer
    National Instruments

  • Temperature Control Loop

    I am new to Labview and am trying to do something that I think should be simple.  It is a control loop to perform a temperature control process.  Two setpoints are entered and the loop turns on the appropriate function to either heat or cool to that first setpoint.  Then it holds that temperature for a preset time and switches to the second setpoint (haven't gotten that far yet.)  It then turns on the heater or cooler to get to that next setpoint.  Once there it holds for a preset time.  My thought was to used the timed loop counter, feed the counter to an indicator while the it was not at temp, then once at temp store that counter value.  Once the difference between the stored value and the current counter was at a preset value switch the temperature set point.
    The attachment is under the heading testing case statements, that is kind of the way it turned out.
    I am currently learning on Labview 7.1.
    I have attached my current code: Be gentle.
    DrLarry
    Attachments:
    Testing Case Statements.vi ‏68 KB

    I cleaned up your code some, but i cant post it as 7.1, i'll post it as 2010 and a picture. You were close.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV
    Attachments:
    Testing Case Statements.vi ‏14 KB

  • 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

  • Modifying Drum Loops to fit 12/8 time

    My current project is in 12/8 time. When I try to insert drum loops there are virtually no drum loops to add (most options are greyed out). So I have changed the time to 4/4 so that I can access and modify a drum loop. Note - even though the time on the score is now in 4/4, the song is still a 12/8 song.
    When I insert a drum loop that I think is a good fit, the timing is seriously off. What is the best way or easiest way to get a 4/4 drum loop to fit a 12/8 song?
    Is there some simple fractional math that will help in the editing make this fit?
    Appreciate the help.

    My current project is in 12/8 time. When I try to insert drum loops there are virtually no drum loops to add (most options are greyed out). So I have changed the time to 4/4 so that I can access and modify a drum loop. Note - even though the time on the score is now in 4/4, the song is still a 12/8 song.
    When I insert a drum loop that I think is a good fit, the timing is seriously off. What is the best way or easiest way to get a 4/4 drum loop to fit a 12/8 song?
    Is there some simple fractional math that will help in the editing make this fit?
    Appreciate the help.

  • Modify control record and send out to external (TAMA) system using ALE

    Hi All,
    I have a scenario to send idoc from ECC 5.0 to 3.1R/3 and then to TAMA system (external system-through TRFC)
    In the inbound process code of 3.1R/3, I have to write a custom FM to modify the control record and point to TAMA system and then send it out to TAMA system.
    Has anybody got idea about this and what function module need to use for modifying the control record and send it out. Any help is really appreciated
    Thanks
    Ricky

    Hi Ricky,
    To access IDoc data and modify it in your custom FM, you could investigate the following FM's:
    EDI_DOCUMENT_OPEN_FOR_PROCESS
    EDI_SEGMENTS_GET_ALL
    They should allow you to access the EDIDD, EDIDC tables.
    The IDoc related functions are contained in the function group EDI1, it may be helpful to start from there.

  • Modify control record and send out to external (TAMA) system

    Hi All,
    I have a scenario to send idoc from ECC 5.0 to 3.1R/3 and then to TAMA system (external system-through TRFC)
    In the inbound process code of 3.1R/3, I have to write a custom FM to modify the control record and point to TAMA system and then send it out to TAMA system.
    Has anybody got idea about this and what function module need to use for modifying the control record and send it out. Any help is really appreciated
    Thanks
    Ricky

    Hi Ricky,
    To access IDoc data and modify it in your custom FM, you could investigate the following FM's:
    EDI_DOCUMENT_OPEN_FOR_PROCESS
    EDI_SEGMENTS_GET_ALL
    They should allow you to access the EDIDD, EDIDC tables.
    The IDoc related functions are contained in the function group EDI1, it may be helpful to start from there.

  • Problem in modifying control record

    Hi All,
    My scenario is Purchase order to Sales order. Once PO is created IDOC will be created and that idoc will be taken as source and i will be modifying the idoc in abap mapping as per requirement.
    All the segements are being modified and getting updated in IDOC but when i am trying to change the control record its not getting reflected in the r/3 but when i check in moni before comming to r/3 the xml struture has changed as per my requirement even for control record also but while comming from XI control record is not getting changed.
    I would like to change senderpartner and sender partner type in control records.
    every configurattion steps has been done  correctly.
    Would request your experiences if you would have faced any this type of situation in your projects.
    Thanks in Advance.

    Apply Control Record Values from Payload
    If you set the indicator, the conversion of communication parties to the IDoc partner is only possible for systems that are not logical systems.
    If you do not set the indicator, all combinations of communication parties and services are handled as services without party.
    If the IDoc XML structure contains a control record during outbound processing on the Integration Server, it is rejected and created again by the IDoc adapter. If you want to include additional values in the control record, set the indicator and provide an appropriate mapping for the values.
    http://help.sap.com/saphelp_nw04s/helpdata/en/96/791c42375d5033e10000000a155106/frameset.htm

Maybe you are looking for