Maintaining a calculated value for iterative calculation

LabVIEW Forum Dear members,

It may seem like a trivial question, but I'm having trouble with this problem using the LabVIEW vi & environment.  I explain as follows:

I need calculate and display as a graph, the content of a hopper which is initially filled to 100 tons.  The hopper is to be released and filled at the same time, I have values for filling and discharge in 1 second intervals.  The contents of the hopper is a calculation simple mass balance, hopper content = materials of entry - exit.  Here are the first few sets of data:

Material in hopper off content theoretical hopper hopper

0                                     0                                                 100

0                                     1.534057                                   98.465943

0,345 5,250186 93.560757

0.6                                       6.801075                                   87.359682

How can I calculate iteratively and use the calculation "Content theoretical Hopper" hopper upstream and downstream?  I use the Simulation & control framework so I can't use the loop in this frame.  Attached is the program vi far and Graph2 XY build is where I'm wanting to display these data in content of hopper.

Any help would be appreciated gratefully.

Kind regards

Hi bunnykins,.

You asked a question of LabVIEW on the Discussion Forum of the tiara.  Please repost on the LabVIEW Discussion Forum.

Brad Turpin

Tiara Product Support Engineer

National Instruments

Tags: NI Software

Similar Questions

  • Recommended to refer to the calculation of the values for parameters of Linux (kernels, etc.) before installing Oracle

    Hi all

    Hope you are fine...

    Please, I need to install Oracle... WEU it will be (DB Oracle 10 g - 11 g or E-Business suite 12.1 - 12: 2), how can I specify the parameters of Linux values especially grain before proceed with the installation?

    Is there a reference that I can follow which help me to specify the correct values for parameters/kernels Linux?


    Thanks in advance.


    Kind regards

    Mohammed

    Mohammed... wrote:

    Thank you, Hussein...

    If I need to install 12.2 but "RAC ASM", is there another note for the purposes of operating systems?

    Kind regards

    Mohammed

    Mohammed,

    You must follow the same doc, just make sure that you install first - CRS refer to the Documentation online database Oracle 11 g Release 2 (11.2) for more details.

    Thank you

    Hussein

  • Import of CSV with loop value FOR

    Good afternoon

    I'm new to LabView and trying to write a VI that will eventually run a set of calculations on a set of data with millions of data points. I want the VI to count the number of data imported points of the. As they are written to a CSV file array. The number of points eventually will help me determine the behavior of the end of my calculations, it is not optional.

    I have trouble getting the file to read each successive line. The value 'for the iterations of the loop"feeds into the 'start reading Offset' «Worksheet File.vi reading» My intention was that this would result in a new line being read in the table with each iteration of the loop. What I get is the first value read over and over again in the first row of the table. Any ideas?

    Thanks for your time and help,

    Wes

    JWTyler wrote:

    I read it one line at a time so that the iteration of the loop is incremented at each line, to give me the size of the sample.

    Is there a better way to count how many points is imported? I could not find another way...

    There is a beautiful VI called "Table size" which will also do for you.

  • How can I display the display value for an element of lov in another area

    My page has a few elements that allow the user to select specific criteria for their report.
    pn_person - select point based on lov. Lov shows the name of the person and returns the code of the person in pn_person

    When the user has made their choice, they press a button that the report is generated.

    I want to do is show the display value for one of the search fields in the title of the report (for example, person_name) region. I think to do that I need to create a (hidden) pn_person_name point, then I put & pn_person_name. as a region

    However, how can I get the value of pn_person in pn_person_name display?

    I thought that apex_item.text_from_lov, but don't know how to use it - what elements (types), the calculations / process I need to create...

    THX Caron

    Published by: user11267129 on January 7, 2010 15:01

    Published by: user11267129 on January 7, 2010 15:02

    Published by: user11267129 on January 7, 2010 15:02

    Caron:

    You can use javascript to set the value of 'pn_person_name' to display the LOV selection value.
    Set the form field HTML to the elements attributes for the element of selection as list page

    onchange=$s('PN_PERSON_NAME',this.options[this.selectedIndex].text)
    

    CITY

    Published by: city has on January 7, 2010 17:22

  • List using select value for relationship building

    I have a form of interactive report. I have one "after Header" (LOAD) of the process running the sql commands that will fill a table with the data that the report needs for a given week.

    I have a select list element that works like a "before header" which retrieves a list of the dates in a table. Dates containing only the first day of the week for the past two years. It is called "WEEK_OF" table and the column is called "WEEK_OF_DATE".

    The default value for the select list is the first day of the current week. And then all of the first day of the week of the WEEK_OF table.

    I wish that the process of LOADING using the value in the Select list. So, to start, I would list to display the report to begin with the data of the current week and the current week.

    So I tried to use the variable: WEEK_OF_DATE (name of the element) as the start date of the report. However: WEEK_OF_DATE is null.

    Also, after that I have the status, I would choose a new date in the list and have the report automatically refreshes with the new data.

    Any ideas what I am doing wrong?

    Hi Lyle,

    When you set a default value for a selection list that should be used to filter a report, I thought it best to do using a calculation, dependent on the element is NULL and the header before running. If other calculations are based on this value, it should have the sequence number low to ensure that the value is available for those.

    Andy

  • Best way to set the default values for the form elements

    Hello

    I have a form with a lot of defaults that is mentioned below...
      Field                      value  
      created by             :APPL_USER
      creation_date         SYSDATE
      last_updated_by     :APPL_USER
      last_update_date    SYSDATE
      item1                     value1
      item2                     value2
    I am currently using calculation-> after presents... then when we create/update a record... these computaion takes place and the default value for the inserted values get... THIS WORKS PERFECTLY WELL.

    I want to know... If this approach is fine OR we can have a better approach to achieve...?

    Thank you
    Deepak

    Hello

    I think it's good if it fits your need.

    But why you have these fields in the form?
    created by: APPL_USER
    CREATION_DATE SYSDATE
    last_updated_by: APPL_USER
    last_update_date SYSDATE

    The user can enter the ones?
    I thought that those who are to audit and I would fill those drop with trigger in the database.
    So that you get the same "correct" values if you need to manipulate the data with example of sql client

    BR, Jari

  • Enter the value for the data files:

    Hi all
    I use 10.2.0.1.0
    I have a tablespace "hg" with two data files.
    whenever I use after an order to drop this tablespace I hv asked values for data files
    Welcome is:

    SQL > drop tablespace hg, including content and data files;

    SQL > drop tablespace hg, including content and data files;

    I have two data files to the tablespace named as hg.dbf, hg1.dbf

    now what I hv value to enter? or how to calculate the value.


    Thank you

    Honey says:
    Yes I know its 'AND' but when I using the '&' then oracle asked me of ' enter the values of the data files: "k".
    Please try first, then the calculation of the value.
    It can be a variable binding value.
    If you find the answer please suggest steps

    Simple words, the "DROP TABLESPACE" command does not support '&' character. & is a substitution of placeholder for SQL variable * more.

    Even if you provide the value for the "data files" prompt, the command does not work as it would lead to "drop tablespace including contents tsname *"details of your file *.

  • How to select the values for each check box in a group of records

    Hello

    I have a requirement in form 10g. In this form there are 10 records are display each record has a checkbox is there if I click on the check box save number one and number three and make some changes in the text field (field adjustment is the number data type) and then finally, I want to see the total a total amount called field.

    In this, my question is how to select specific to a group of records records? and finally these selected records are inserted in a table.
    Because I am not able to read these records at a time.
    Is there any table to define a record group to fetch each of them individually for example Rec [1] Rec [2]... like this if yes please suggest me the steps how to do this.

    Thanks in advance
    Prasanna

    Published by: user10315107 on December 17, 2008 23:44

    OK, so you want to shoe the total amount in the form itself (I guess that somewhere under the dashboard lines?).

    You can do this easily using formulat elements:

    1 create a new item in your block where the field amount is places, set "section of the database" on the 'No', 'calculation mode' to the 'formula' and the 'formula' himself to something like:

    CASE WHEN :BLOCK.CHECKBOXITEM=CHECKVALUE THEN :BLOCK.AMOUNT+:BLOCK.ADJUSTMENT ELSE 0 END;
    

    This formula returns 0 if the checkboxitem is not checked, otherwise the sum of amount and adjustment (of course you can adjust the names of elements and the value for 'Checked')
    2. place the element in the layout, if you wish.
    3. set the property "Query all Records" to "true" for your block elements, this is necessary for the calculation to work
    3 create a control block to keep summary article in a, "Single Document" set to 'True '.
    4. place a new element in this control block, set 'Calcuation mode' to 'Summary', 'Summary block' to your block elements, 'Summary point' in newly created formula section in the block elements
    and function of synthesis for the "sum".
    5. place the element in the layout

    She's.

  • the min and MAX values maintain their good values tia sal22

    the min and MAX values maintain their good values tia sal22

    Hi all

    I have problems a little value to stay in their correct min and max values min and max.
    Continue to change their values (up and down) trying to get the max value to only display the maximum value at a given time and the same for the min value.  I looked at the examples max and min and it seems that it should be in a while loop
    http://forums.NI.com/NI/board/message?board.ID=170&thread.ID=359822

    but I would add another while loop and if so put it in the loop for? or is there a better way to do it.

    TIA sal22

    Hi sal22,

    I thought it was just one example you found somewhere, because it is called red rooster. See the attached example.

    Mike

  • NULL values for some elements of the XML reading tree

    I am confirming that I interpret correctly all the elements of a custom data XML structure defined by my application (the schema is completely under my control).  Some of the elements in my XML tree are read as NULL values, even if similar items are readind as expected.  I have checked some obvious things like misspelling the names of keys, but have not yet find the problem.  Anyone who has debugged similar questions - what else could cause this?

    Example XML:

    
        1.0.0.0
        1000
        MyAppsName
        
            
                1000
                userDefined
                StructName
            
        
    
    

    And extracted C++ w/comments at the end of each line about what I see (DataManager is my class of CRUD operations):

    In DataManager.hpp:

    QVariant mCustomDataStructsTopLevel;
    QVariantMap mCustomDataStructsTopLevelMap;
    

    In DataManager.cpp:

    mCustomDataStructsTopLevel = mXda.load(Utils::dataFilePath(customDataStructsFileName));  // XmlDataAccess; verified loading w/no errors
    mCustomDataStructsTopLevelMap = mCustomDataStructsTopLevel.toMap();
    
    qDebug() << "appName element value: " << mCustomDataStructsTopLevelMap["appName"]; // Outputs "MyAppsName" as expected
    qDebug() << "lastId element value: " << mCustomDataStructsTopLevelMap["lastId"]; // Outputs null (specifically: QVariant(, ) ) - this is NOT expected
    qDebug() << "appVersion element value: " << mCustomDataStructsTopLevelMap["appVersion"]; // Outputs null (specifically: QVariant(QString, "") )  - this is NOT expected
    

    OK, I got the feeling (and actually hoped) it was a silly mistake of face-palm on my part (compared to a problem of BB10 who had little chance of getting fixed).

    The problem is that I copy the structure of custom data from Starter to my Active dir to my data directory to first install but do not crush him on subsequent launches, as the copy in the data directory is what the user changes and relies on.  I was not a delete and reinstall on each of my iterations, so I wasn't really loading the modified versions of my XML I wanted--just, I was getting a day old stale version which was actually for the items I didn't expect NULL values for nulls.  DOH!

  • Getting the values for the attributes of the user in IOM

    Hello

    I have it here is the snippet of code that retrieves the values for all the attributes user OIM 11g. But this code returns the exception of null pointer for attributes with null values. I also put if condition to check for null pointer exception, but always the null value is thrown in the newspapers whenever this code snippet is executed in the event handler.

    Any thoughts?

    private Map getUser(String userKey) {
      Map users = new HashMap();
      User user = null;
      UserManager userManager = (UserManager) Platform
      .getService(UserManager.class);
      try {
      user = userManager.getDetails(userKey, null, false);
      logger.log(ODLLevel.FINE, "User: {0}",new Object[] { user });
    
      } catch (NoSuchUserException e) {
      logger.log(ODLLevel.ERROR, e.getMessage(), e);
      } catch (UserLookupException e) {
      logger.log(ODLLevel.ERROR, e.getMessage(), e);
      }
      Set AttrNames = user.getAttributeNames();
      logger.log(ODLLevel.FINE, "User Attributes: {0}",new Object[] { AttrNames });
    
      Iterator itr = AttrNames.iterator();
      while (itr.hasNext()) {
      try {
      String AttrNAme = itr.next().toString();
      logger.log(ODLLevel.FINE,"Current Attribute is : {0}::",new Object[]{AttrNAme});
      if( user.getAttribute(AttrNAme).toString()!=null && user.getAttribute(AttrNAme).toString().length()!=0){
      String AttrValue = user.getAttribute(AttrNAme).toString();
      logger.log(ODLLevel.FINE,"Attribute: {0} and Value: {1}",new Object[]{AttrNAme,AttrValue});
      users.put(AttrNAme, AttrValue);
      }
      } catch (Exception e) {
      logger.log(ODLLevel.ERROR, e.getMessage(), e);
      }
      }
      return users;
      }
    

    TIA

    A call to ToString on null will give you the exception. You should check that the value is not null before calling toString() on it.

    In addition, you must perform an additional control on the user object that you receive after your try catch block. If the user object is null, then there is no need to run code on the user object.

  • How to find out the ASCII values for the Spanish character

    Hello

    I had an obligation to maintain the Spanish character and must also always records based on the Spanish character.

    Kindly guide me for below.

    To filter the records that contains Spanish characters?
    To get the ASCII values for the particular column?

    For example, we can find the ASCII value of 'a' using the select syntax ASCII('a') double.

    But I want to find the value of the particular column ASCII values. That is to say. name.
    For example, the customer name is 'Suresh', I want the ASCII values for the entire name of 'Suresh '.

    Please do the necessary help / advice on that.

    Thank you
    Orahar

    To expand on what I said in my first post, you want to do something in this direction:

    with t (thename) as
      (
      select 'Suresh' from dual
      )
    select thename
         , substr(TheName, level, 1)
         , ascii(substr(thename, level))
      from t
    connect by level <= length(thename);
    

    The result of the above query is:

    THENAM S ASCII(SUBSTR(THENAME,LEVEL))
    ------ - ----------------------------
    Suresh S                           83
    Suresh u                          117
    Suresh r                          114
    Suresh e                          101
    Suresh s                          115
    Suresh h                          104
    
    6 rows selected.
    

    Note that the WITH statement is only there to simulate a table for this example. With a table, all you do is get rid of the with and replace it with the name of "t" for your table name (also the name of the column with name column has in your table).

    Finally, I suggest that you post your question with, an example of table and the output you want for PL/SQL forum. There are people out there who will give you all sorts of ways to solve this problem.

    HTH,

    John.

  • Where does FireFox get the default value for a preference of. What is the format of the file that contains the default value?

    Where does FireFox get the default value for a preference of. What is the format of the file that contains the default value? I need the actual default value for an individual preference.
    Topic: config shows some default values, but I need the source from which everything: config returns to the default value.
    Any help in this direction is greatly appreciated.

    User Agent

    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x 64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    The preferences that are not hidden if they have by default are stored in two JavaScript text files in the Firefox program folder
    You can open them in a tab in Firefox through these links:
    resource:///defaults/pref/firefox.js
    resource:///greprefs/all.js

    (702598/forum/1/702598)

  • default value for 20/40 mhz coexistence

    Hello

    Someone will be kind enough to give me the default value for the "20/40 mhz coexistence?
    It's in the tab advanced, Advanced Configuration, wireless settings, in the section "Settings advanced wireless (b/g/n 2.4 GHz)" at the beginning.

    Thank you very much for your help!

    Must be enabled. See page 110.

  • Invalid value for the cursor.xscale property

    I am creating a property node for "cursor.xscale", but when I try to write a numeric entry in it, it does not accept any value (at least all the values that I tried). An error indicating that the value is not valid. What is a valid value for this property and what exactly makes this this property (not a lot of documentation available I guess)

    the XScale property is a number from 0 to n - 1, where n is the number of scales X you have on your chart (usually 1).

    Here is an example of chart scales of X 3 and 2 cursor associated with the scale 'Time' and 'Time 2 "respectively.

    The reason why it is important, it is that the X values read you in the column 'X' cursor will be different depending on whether the cursor is associated with one or the other ladder, as you can see above.

    HTH.

Maybe you are looking for

  • I forgot my iTunes password

    I forgot my iTunes password

  • Equium A60-173: stops often

    Hey guys, I have a problem with my laptop, that he often cut only when something like a scan virus and when I start up again it reconise even that windows didn't close properly. I checked and it is not a problem with the power supply.So I was just wo

  • Come posso configurare alice mail con crome di windows vista?

    Con her posta elettronica alice mail di telecom italia improvvisamente non riesco più ad eliminare her posta dal cestino oppure dare altri che comandi if blocca full the pagina scollegandosi if abbassa the intensity we must solo riavviare pagina per

  • "The key or passphrase is incorrect.

    According to my new umpc win7 "the key or passphrase is incorrect" to my wep network. Unfortunately the key is correct, this is win7 is not working. There are a number of other winxp, vista, linux systems, a printer, who use this key network very wel

  • BlackBerry Smartphones using BB Messenger on the international scene

    I'm heading to the Australia on a trip in the next few months and I was wondering if I will still be able to use BB Messenger on my curve while I'm foreign... If I can, are there additional charges that will be assessed?