Screw of PID can work in a loop of consumer?

Hi all

I'm working on the proportional valves with PID control. To do this, I have prepared a vi based on a design of producer-consumer model, however, it does not work. When I use a while loop incorporated all daq reading, writing and control tasks, it works. I'm confused about this.

You can see these two screws, one of them works the other not (based on the producer-consumer model), below, and also in the attachment.

Newbieeng - why you re the PID differently between the two versions (a single loop against two), then assume that the difference in performance was the result of the number of loops and not unlike the logic?

Following what GerdW wrote on the EGU % calculation, follow the math to explain what is happening. Evolve you your process Variable for a percentage of the value between 0 and the set value. It is, as already mentioned, a preposterous calculation. If your set point and your process variable are the two 0-10, then by converting the process variable to a percentage of the range of 0-10 will almost always the percentage being greater than 10. For example, if your process variable is 2 bar and your set point is 5 bar, the output will be 40%. Thus, the entries of your PID (which you should have probed, so you see what is happening) are a set of process point and 2 variable 40! 40 much larger than 2, the output of PID would be negative, but you have limited it to 0 - explaining why you get always 0 output. It has nothing to do with the producer and the consumer compared to a single loop.

Tags: NI Software

Similar Questions

  • How to transmit frames CAN cyclically inside a loop obey the emission data informed BCD?

    Hi all!

    I don't know if I don't completely understand the behavior of the situation below. I use LabVIEW 2014 and PXI-8513 card under Windows.

    NOR-XNET help reading I understood:

    Cyclical data : the data frame transmitted cyclically (periodical). The period is defined in the "transmission data" field in the properties BOX of the framework in the DBC file.

    But how the transmission time can obey informed transmission data in DBC file if I call the XNET write VI in a loop with a waiting inside? I don't know if I fully understand how it works in a while loop.

    I watch the program below, how writing would behave?

    While the loop contains a "wait until the next multiple ms" 100 and the signal selected database (dbc) has a transmission time of 0.02 s (20ms), how many times would the framework passed in the first loop?

    If your answer is "Although the time of transmitting the frame is 0.02 s in this case writing is written only once", I have another question: How can I keep a loop writing frames obeying the time of transmission of the image of the CBD? Consider that I have signals selected different frameworks at different times to transmit.

    Thanks in advance!

    When you use the XNET write Point with Single mode, it updates the value that will be transmitted according to the schedule specified in the XNET (DBC file) database. If you call multiple entries before the frame was transmitted, only the last value written shuts down during the NPC.

    If you look in the help file XNET under the API OR-XNET for LabVIEW-> Sessions-> Modes of Session, you will find information, including an example of how it works.

    In your example - if you have a timing loop of 100ms, but your message cyclic time is 1s, then will send you only the last value of 'editorial' more message cycle time. If your timing loop is 100ms, but your message time is 10ms, so you pass the value even 10 times (about... windows calendar and all that).

    In essence, you CAN transmitting frame continues to run in the background according to the time where you specified in the DBC file, but you can then update the values which are transmitted asynchronously using the single-point VI write.

    If you want to check the values passed are updated every time - you must use the stream or queue mode and your frames to the output of the buffer. That, or you must use a RT target that can update the data in a deterministic way.

  • How can I escape a loop at the bottom in the timeline

    Hi everyone, I am wanting to know if I can send the playhead edge animate again down the time line if it is currently in a loop at a point not yet passed. I tried tags and play from as an action triggered in the toilet and everything that I have work in a loop is stop and go to the url...

    Please help if you have any ideas. Thank you

    A simple example: http://www.heathrowe.com/edge/label-trigger/publish/web/

    An intro plays for 4 seconds; followed by a loop (the flashing of the title).

    I used the timeline triggers {} and tags to navigate.

    The animation reaches brand 4.5 sec and hits a trigger Action {}

    SYM. Play ('blink');

    Which redirects to the position of Timeline Label called blink at the mark 4s, creating the loop. This section of the timeline will never loop until the end user clicks on the title.

    The title of flashing a a Click, {handler

    SYM. Play ('one');

    Which it directs to another location of the label on the timeline called one, breaking thus the loop to another post.

    Download sample: http:www.heathrowe.com/edge/label-trigger/label-trigger.zip

    Note: When you get to the later label 'a' is an additional element (grey circle) with a handful of click to return to 0 (IE replay).

    Its a simple example, but if you plan to have a lot of items, good practice is to take advantage of the nested elements, groups and or symbols to "declutter" the timeline.

    HTH

    Darrell

  • Make the button generate code work in a loop

    I am trying to generate instances of a movieclip in my library on the stage and give them all the single variable and instance names in order to control later and perform certain actions based on the name of the clicked button. I can do it with the following code, but I wanted to use a loop instead to be more effective. Can someone help me to make this code work in a loop? Thank you!

    (labor code)

    var image1_mc:testButton;
    var image2_mc:testButton;
    var image3_mc:testButton;
    var image4_mc:testButton;

    image1_mc = new testButton ();
    image1_mc. Name = "image1_mc"; the name of the instance
    image2_mc = new testButton ();
    image2_mc. Name = "image2_mc";
    image3_mc = new testButton ();
    image3_mc. Name = "image3_mc";
    image4_mc = new testButton ();
    image4_mc. Name = "image4_mc";

    addChild (image1_mc);
    addChild (image2_mc);
    addChild (image3_mc);
    addChild (image4_mc);

    image2_mc.x = 50;
    image3_mc.x = 100;
    image4_mc.x = 150;
    image1_mc.y = 500;
    image2_mc.y = 500;
    image3_mc.y = 500;
    image4_mc.y = 500;


    (Here is my attempt of a loop, but it does not of course because I'm not sure that it is even possible to use a variable to name a variable: D)

    for (var i: Number = 0; i < 4; i ++)
    {
    var (' _mc image "+ (i + 1) +" "): testButton = new testButton();
    addChild ("image"+(i+1) +"_mc");
    'image' +(i+1) + "_mc".name = "image" + (i + 1) + "_mc";
    'image' +(i+1) "_mc".x plus i * 75;
    }

    Hey thanks that pointed me in the right direction. I had not yet used the tables. I managed to do the work. It generates now 4 buttons which return unique names when you press. I also added within the table event listeners. Yet more concise! Here's the code: (interesting bands forum [of the] media if you do not attach code: D)

  • Music apps can work offline on FFOS? And email?

    Hello

    Don't completely grasp the concept focused on the web (for the most part, but not completely) and I would like to know - the music app works offline, get music on my microSD card? And e-mail app, it works in offline mode (can I read already found and read emails without connection to the internet)?

    Best regards, best community out there

    Hello

    Thanks for joining Mozilla Support about your problem.

    Music apps can work offline on FFOS? And E-Mail? / /
    Yes. Apps for music and e-mail can work in offline mode.

    • Music application can fetch the music files from your micro-SD card.
    • You can read the emails already opened without connecting to internet using the Firefox OS email application.

    Thank you.

  • E-mail message full automatic download (incl. attachment) on iPad - so I can work offline on emails

    I would totally and automatically download my emails (including attachments) when connected to the network (WiFi or 4 G), so that I can work on my emails when 'off line' (i.e., plane). Now, I often get the error message 'message not downloaded from the server. Please your audience.

    There is no setting to do that automatically - it can vary on the type of network, you're on - some users have reported all their emails downloaded - others indicated only small do - you use a POP or IMAP account type?

    Another option is to consider an application like Documents 5 - but you must always manually download and store e-mail messages and attachments you can work later

  • goes into infinity "tabs" loop when I type any email 'Contact us' button how can I stop the loop?

    goes into infinity "tabs" loop when I type any email 'Contact us' button how can I stop the loop?

    You use a Mac, or you're on another platform?

    Any other use of platforms:

    • Mac: Firefox > Preferences
    • Linux: Edit > Preferences
    • Windows: Firefox > Options

    Press F10, if the menu bar is hidden under Windows and Linux, or use "> Firefox Options/preferences.

  • I can work between my Mac and iPad, but can not get my iphone to receive transfers?

    I can work on spreadsheets Numbers between my Mac and iPad, but can not get my iphone to receive transfers?  The numbers icon at bottom left of the screen, but none of my worksheets appear on my iPhone.

    Did you numbers is synchronization correctly via iCloud on your iPhone?  You could check that the connection of numbers to iCloud is turned on at two places:

    Settings > iCloud > iCloud Drive > numbers

    and,

    Settings > numbers > use iCloud

    SG

  • Hello. I just bought the Warcraft Battle chest but when I tried to install it, I am told that PowerPC applications are more supported. Is there a way I can work around this problem? Thank you.

    Hello. I just bought the Warcraft Battle chest but when I tried to install it, I am told that PowerPC applications are more supported. Is there a way I can work around this problem? Thank you.

    Except by running Mac OS X Server 10.6 inside a product such as VirtualBox or Parallels Desktop or decommissioning the BONE if possible on the Mac, no.

    (137544)

  • How can I create a loop with delays in the series?

    Hi all

    So I wrote a Labview program to control both machines. Very simply, one is a source of tension, and the other is a Lock-In amplifier. What I want to do is change the applied voltage, wait a few seconds for the response of GARLIC to settle, then take a number of measures of GARLIC, then those on average and save to file.

    Here is a flowchart of what I mean:

    I did it for the most part, but I'm having a little trouble with the delay. VI file is huge, so I tried to make a simplified architecture that shows the basics of what I do:

    (The string and the constant matrix constants aren't actually what I use, it's just to illustrate, because I don't know how to make a quick easy space reserved for diagrams... is there an easy way?)

    So my assumption here (and it seems that it is happening) is that, for each iteration more outside of the loop, the first thing it does is start the countdown and start the change applied voltage/etc. at the same TIME, right?

    And then he only goes in the loop of measure LIA once she completed both of these tasks, right? (Please correct me if I'm wrong!)

    Then, how would make a delay after the loop of measure LIA? If what I've said so far is correct, then if I put a 'waiting' in the main loop, I don't think that it works (or at least not be very specific) because he would begin as soon as the iteration, would therefore be cash while GARLIC measured, and so do not wait the right amount of time after the loop LIA was finished (if I even put that it is long enough that it was still underway after This loop was completed).

    Am I correct in what I said?

    What is the smart way to do this?

    Thank you!

    You're right about the order data flow, which is usually the fall of most starting LabVIEW developers.

    To add a wait behind the inside loop, ask a node pending within a structure (the simplest being a structure flat sequence) and add some sort of data flow from the output of this loop to the structure of waiting. This will force this structure will not work until the loop ends.

    That being said, there is a better way to do this. Look in the Simple State Machine with LabVIEW 2012 and more recent architecture model.

    Edit: NIquist beat me to it.

  • Is Chinese simplified program SQL can work in Chinese Traditioinal Server 2008?

    Is Chinese simplified program SQL can work in Windows Server 2008 and Chinese Traditioinal Traditioinal Chinese SQL server 2008?

    Hello

    Thank you for visiting the Microsoft answers community site. The question you have posted is related to (SQL) and would be better suited in the Community (Insert here). Please visit the link below to find communities that will provide the support ask youhttp://social.technet.microsoft.com/Forums/en-US/sqlgetstarted/threads

    I would say as you follow the link and check.
    http://sqlug.be/blogs/steves_sql_blog/archive/2007/06/13/import-Chinese-characters-using-cpdts-DLL.aspx

  • How do I set up a split screen so I can work between two websites simutaneouly?

    I want to be able to display two separate sites on my screen, so I can work from each Web site at the same time... I can get

    a Web site to display and to reduce it to enable 2nd site... but the 2nd Web site does not appear...

    Simple... open the two websites (nothing else) and then right-click
    your Windows taskbar and choose / vertical mosaic or
    Horizontal Tile Windows.

  • is it possible to open an attachment to e-mail sent by an Apple so I can work on it in Word?

    I was sent an e-mail from an Apple machine attachment and I can't open it.  How can I open it so I can work on it (I need to track changes made to this subject) in Word?

    Regardless of what type of computer sent the e-mail.  What is important is the program that created the attachment and the format in which the attachment was saved.  If the sender used Microsoft Word for Mac, you should be able to open the attachment to a Windows PC using Word.

    What happens when you try to open it?  Please do not paraphrase any error message.

    What are the 3 characters after the dot in the name of the attachment?

    What happens if you save the attachment and then try to open it?

    Which version of Word you have (click Help > topic)?

  • My office uses Windows 7 and my computer is running Vista 64 bit. My home computer can work with my office from a USB files?

    original title: office / Home compatibility

    My office uses Windows 7 and my computer is running Vista 64 bit.  My home computer can work with my office from a USB files?

    The game, August 5, 2010 15:24:35 + 0000, JerryPMP wrote:

    My office uses Windows 7 and my computer is running Vista 64 bit.  My home computer can work with my office from a USB files?

    Yes. There is no problem with their two different versions of
    Windows. The files contain not what anyone who still marks that
    Windows version they were created under.

    But there is a potential problem. If the files have been created with a
    another version of Office that you have, you may have
    Difficulty reading the. For example, Word 2007 and 2010 creates .docx
    files by default (unless you tell her save as .doc) and if you
    an earlier version of Word, you will not be able to open a .docx file
    unless you install the compatibility pack to
    http://Office.Microsoft.com/en-us/Word-help/open-a-Word-2007-document-in-an-earlier-version-of-Word-HA010044473.aspx

    or http://tinyurl.com/29f5scy

    Ken Blake

  • FSX can work with parental control times

    Can work with Flight Simulator X on an account with time limit, as I wonder if the little "15 minutes of the end" and "1 minute remaining" bubble will pop up in the corner of a flight full screen FS? "

    Thank you!

    Hi Matthew,

     

    The question you posted would be better suited in the Flight Simulator Forums.

    I would recommend posting your query in the links below.

     

    Community links:

    http://www.Microsoft.com/products/games/FSInsider/community/pages/default.aspx#community

     

    Contact technical support:

    http://www.Microsoft.com/products/games/FSInsider/tips/pages/ContactingTechnicalSupport.aspx

     

    I hope that the information above helps you.

Maybe you are looking for