How to fill a table only if a case statement runs?

Hello. I want to have a while loop with a case statement. When the case is true, it should read the analog data each iteration of the while loop via Daqmx and store these values in a table. If the case is wrong, I don't want to read all the data or to store anything else in the table. When the loop is finished, I want to have this available table to write to a file or something. How can I go about it?

Search for a "shift register. This will hold your data. In the case of fake feed the data in the table back through without change. In the case of true add the new value in the table to "build the table" or even better "subset of the table to replace' for a defined table size.

Tags: NI Software

Similar Questions

  • Someone knows how to fill a table more quickly?

    Hey everybody,

    I created a program that displays a graph of intensity, as well as a histogram of the values of intensity on a chip 1024 x 1024 (dimension X - Y). Currently, the program works well, the histogram takes FOREVER to fill but I was wondering if there is a way to increase the speed of everything including all points of data 1024 x 1024 = 1048576. Thank you!

    I realize complete the table of pixel by pixel is not the best route, but I'm not sure how to take the 2D table and use the intensity of each (x, y) point in a histogram.

    Thanks, to emphasize that I have no need to call the histogram works every time (rookie mistake), but as I said, I'm still not sure how to the 2D table in the histogram.

    And I reset the histogram when finished filling because I need to reset to see the changes for when I change (if necessary) camera exposure time. I have also attached my code.

  • How to fill a table/CompositeType script task?

    I want to be able to fill the table/CompositeType with input params that a user fills out.  Someone of you have sample code for this?

    Thank you

    -Stephen

    Figured it out in case anyone else wants to know...

    entries = new Array();
    var jsObj = {name: 'provider - VirtualMachine.CPU.Count', value: '2'};
    inputs.push (jsObj);

    var jsObj1 = {name: 'provider - Cafe.Shim.VirtualMachine.NumberOfInstances', value: '1'};
    inputs.push (jsObj1);

    var jsObj2 = {name: 'provider - VirtualMachine.Memory.Size', value: "8096"};
    inputs.push (jsObj1);

  • How to fill the tables preset in Word 2003 with the results of the tests?

    Hi all

    I have a simple test, where I measure different levels of DC, with a simple Vi which records test results to a text file.

    These results in the text file, were manually typed in a test report, which is a Word document with tables, but I have now created a macro in word 2003 that can take the results to the text file and added to the precise lines and columns in my word test report file.

    Issues, it is how can I get Labview, after he measured the levels of DC, write the results of tests on specific tables, lines and columns, in the Word document without any delete?

    The attached photo shows a tables and the yellow cells showing the cells that must be filled in test results.

    To LabVIEW: 2009


  • How to fill this table?

    Hello

    I have two tables. The "card" table contains the following fields:

    DESC FORM;

    NUMBER OF FICHE_ID

    AGENT_ID NUMBER

    NUMBER OF EQUIPE_ID

    DATE OF DATE_ACTIVITE

    DATE OF DATE_CREATION

    NUMBER OF TYPE_FICHE

    FICHE_CREE_PAR VARCHAR2 (400)

    NUMBER OF TOTAL_HEURES

    NUMBER OF TOTAL_HEURES_EXCEPTIONNELLES

    VARCHAR2 (4000) COMMENTS

    FICHE_MODIFIEE_PAR VARCHAR2 (400)

    DATE OF DATE_MODIFICATION

    the ACTIVITE_EXCEP_FAITE table contains the following fields.

    DESC ACTIVITE_EXCEP_FAITE

    ---------------------------- -------- ------

    NUMBER OF FICHE_ID

    NUMBER OF SERVICES_ID

    NUMBER OF ACTIVITES_EXCEPTIONNELLES_ID

    NUMBER OF TIME

    NUMBER OF ACTIVITE_EXCEP_FAITE_ID

    THE TOTAL_HEURES_EXCEPTIONNELLES field of the table INSERT must contain the sum of the LENGTH of each record in the ACTIVITE_EXCEP_FAITE table that contains the same FICHE_ID as the FICHE_ID of the table INSERT.

    I want to fill in the field TOTAL_HEURES_EXCEPTIONNELLES in record-breaking form, where TOTAL_HEURES_EXCEPTIONNELLES is NULL AND LENGTH IS NOT NULL with the cntent of the SUM of the DURATION grouped by FICHE_ID of PLUG.

    This application gives the records where the TOTAL_HEURES_EXCEPTIONNELLES is null and is not null.

    SELECT f.FICHE_ID,

    SUM (a2. DURATION),

    f.TOTAL_HEURES_EXCEPTIONNELLES,

    f.DATE_ACTIVITE, AGENT_ID

    Of activite_excep_faite a2.

    Plug f

    WHERE f.FICHE_ID = a2. FICHE_ID

    AND f.TOTAL_HEURES_EXCEPTIONNELLES IS NULL

    AND a2. DURATION IS NOT NULL

    F.FICHE_ID GROUP,

    f.TOTAL_HEURES_EXCEPTIONNELLES,

    f.DATE_ACTIVITE, F.AGENT_ID

    ORDER BY 1 DESC;

    Can you help me the bravado of the order of update?

    Thank you.

    Hello

    Is FICHE_ID the only condition to join the tables? If so, the update below can do:

    UPDATE SHEET f

    SET TOTAL_HEURES_EXCEPTIONNELLES = (SELECT SUM (a1.duree)

    ACTIVITE_EXCEP_FAITE A1

    WHERE f.fiche_id = a1.fiche_id

    )

    WHERE f.TOTAL_HEURES_EXCEPTIONNELLES IS NULL

    AND EXISTS (select null from ACTIVITE_EXCEP_FAITE a2

    where a2.fiche_id = f.fiche_id

    and a2.duree is not null

    );

  • How to fill a table with table loop

    I am a loop of an object array and that I loop, calling a function and this function returns 6 elements

    < CFLOOP from ="1" =' #ArrayLen (zz) # ' index ='k'>

    < cfdump var ="#zz [k] .getLine () # '> < p >

    < / CFLOOP >

    The cfdump above returns something like:

    [empty string]

    Street name1

    [empty string]

    [empty string]

    Ville1

    State1

    Zip1

    [empty string]

    Street name2

    Apartment AA

    [empty string]

    City2

    State2

    Zip2

    name of the Street 3

    Margenthaller Hall

    Suite 202

    City2

    State2

    Zip2

    etc.

    I need to insert these results into my table address while loop.

    When I did the following (see below), each repeated 12 times obtained record (don't know why)

    < CFLOOP from ="1" =' #ArrayLen (zz) # ' index ='k'> < cfdump var ="#zz [k] .getLine () # '>

    < name cfquery = 'test' datasourece = 'MyDNS' >

    INSERT INTO MyAddr (street1, street.2, street3, city, state, zip)

    VALUES ('#zz [1] .getLine () #', ' #zz [2] .getLine () # ', ' #zz [3] .getLine () # "," #zz [4] .getLine () #',' #zz [5] .getLine () # ', ' #zz [6] .getLine () #')

    < / cfquery >

    < / CFLOOP >

    Is there a way? to insert as I already had the address properly all loop but don't know how to use the result in the insert statement.

    Can anyone help?

    Where this table comes in the first place?

  • How to fill a table with marked text column?

    I hate research and typing so I was wondering if there was a solution to the following problem.

    I have a document that contains fault codes 5 characters in the body of the text (numbered steps). At the end of the document, I have a table which summarizes these codes: codes form a column and other columns contain information related to these codes (page number, area, action, criteria for vice etc.).

    Is it possible for me to score codes such as I could all import them into the column of fault code?

    I was leaning towards generating a list any and then paste it into the column, but I can't paste my list generated in several cells. FM will only allow me to paste the entire list into a single cell. Am I using the wrong approach or maybe missing a step between the two?

    I suggest the second approach of the Arnis, especially if a specific code is

    used in several places in the text. If so, you could make an INDEX of codes, instead of one

    list, which gives you all the pages where each code appears (after each code). This avoids having to organize the list.

    Van

  • How to fill a table every time that the user login?

    Hi people,
    Can u please suggest me what can I do if I want a sequence to be put into a table to SAMPLE whenever the user's login in the forms.pls help me to reach the requirement above. I use forms with oracle 9i.


    Concerning
    VIDS

    write your code on the trigger after LOGON
    or
    You can write simple insert on the CONNECT button on your application

    Bangoura
    [My Oracle Blog | http://baigsorcl.blogspot.com/]

  • build the table only if a case structure


    Hi adamkse,

    Here are a couple of screws for you to watch. I think they both what you want, the second is a better way.

    Notes:

    Enjoy the indexing feature in order to remove the indexing of tables yourself. So you don't have to change for the iterations of the loop if the size of your input array changes.

    You have been reset table "ucodes' each time as the outer loop. Then, which has been corrected.

    The reason why the second vi is better, because a table in a loop construction is generally a bad idea. LabView must make memory allocation as the table grows (does if the picture remains very low). It may take time, so its best to avoid it. First do you the big picture as he possible can get, then replace the elements starting at zero. Keep track of the actual size with a shift register, and then resize the table at the end.

    I hope this helps.

    Steve

  • Fill a table with the results of the refresh groups

    Hello world

    I need a little help.

    I'm working on an Oracle 10.2.0.4 on windows.

    I have a table I created like this:
    Table name: DIM_REPLICA

    COD_SEZ VCHAR2 (2)
    NOME_SEZ VCHAR2 (20)
    FLAG TANK (1)
    DATE OF D_REPLICA

    This DB I have 210 discount groups running every night. I need fill this table with the results of the refresh groups.

    So when the refresh for example called ROME group runs I need to write on the table the name ROME in the field "NOME_SEZ", a Y or N if the refresh Group has worked in the field of the INDICATOR and LAST_DATE refresh force ran into the field of the D_REPLICA. The COD_SEZ field is a code that I get other things. It is not necessary for the moment. I can add it myself on my own.

    Can someone help me please?

    I was looking on the tables SYS DBA_JOBS and DBA_REFRESH these data, but I don't know what to take and how to fill the table. Trigger? Procedure? Any help will be great!

    Thank you all in advance!

    This forum is for SQL * PLus, questions and your question is about general issues Oracle. You will get a better response by posting your question in another forum - probably the General database instance.

    Please close this thread and start over in another forum.

  • Fill a table with date values with a fixed increment

    Hello

    I want to fill a table with a date column with the increment of a fixed value date values. The start date is selectable, the increment is selectable and the number of records is adjustable as well.
    For example
    start date is 1905-Jan-02, 15:00 (DD-MON-YYYY, HH24:MI:SS)
    increment is 1 hour and 5 minutes
    None. records is 10
    then the dates in the table must be
    REC 1 1905 - Jan - 02, 15:00
    REC 2 1905 - Jan - 02, 16:05
    REC 3 1905 - Jan - 02, 17:10
    ....
    REC 9 1905 - Jan - 02, 23:40
    REC 10 1905 - Jan - 03, 00:45:00

    We are working on 11 GR 2, the number of records can be between a few hundred and a few million and they must be ordered with Crescent of time (maybe to have a whole id).
    Any ideas how to fill this table (simple and fast?) using sql / plsql are welcome.

    Thanks, Hannes

    Something along the lines of:

    SQL> alter session set nls_date_format = 'YYYY-Mon-DD HH24:MI:SS';
    
    Session altered.
    
    SQL> select trunc(sysdate,'HH')+((rownum-1)*(1/24)*(65/60)) as dt
      2  from dual connect by rownum <= 20;
    
    DT
    --------------------
    2010-Aug-26 16:00:00
    2010-Aug-26 17:05:00
    2010-Aug-26 18:10:00
    2010-Aug-26 19:15:00
    2010-Aug-26 20:20:00
    2010-Aug-26 21:25:00
    2010-Aug-26 22:30:00
    2010-Aug-26 23:35:00
    2010-Aug-27 00:40:00
    2010-Aug-27 01:45:00
    2010-Aug-27 02:50:00
    2010-Aug-27 03:55:00
    2010-Aug-27 05:00:00
    2010-Aug-27 06:05:00
    2010-Aug-27 07:10:00
    2010-Aug-27 08:15:00
    2010-Aug-27 09:20:00
    2010-Aug-27 10:25:00
    2010-Aug-27 11:30:00
    2010-Aug-27 12:35:00
    
    20 rows selected.
    
  • SQL: how to display the second string of the function in the Jobs table only if the function has more than one string.

    SQL: how to display the second string of the function in the Jobs table only if the function has more than one string.

    Hello

    You can use REGEXP_SUBSTR Oracle/PLSQL: REGEXP_SUBSTR function

    Select the function double REGEXP_SUBSTR('PUBLIC RELATION REPRESENTATIVE ','[^]+',1,2);

    Do you have any value of the column as no 2nd string?

  • How to fill out (display) values for several blocks in which there is no relationship between the blocks (tables).

    Hello.

    Is it possible to fill in the values (execute_query) several blocks where there is absolutely no relationship between the tables in the same form?

    There is no relationship between the tables. All are separate tables with different columns. None of the names of columns match

    & also the values of the columns do not match. I created blocks for all tables. When I click on run, only the first block of values (first picture) is filled.

    other values of block did not get filled. Is it possible to fill in the values for all of the blocks where there is not relationship, or when there is no master block?

    Is there something I can do for this? It is mandatory for me to put all the blocks in a single form.

    Help me, please. Please do not respond.

    Thank you.

    Create a key-EXEQRY-trigger on the block where 'throw you' the quers. In it, put something like

    GO_BLOCK ('BLOCK1');

    EXECUTE_QUERY;

    GO_BLOCK ('BLOCK2');

    EXECUTE_QUERY;

    ...

  • How can fill us with data in this table AR_RECEIVABLE_APPLICATIONS_ALL

    Hi all

    How can fill us the data in this table, I created a credit memo and marked it complete but I'm still not able to get the data in this table.

    What is the correct approach or any other alternative available.

    Thank you
    Ajay

    Hello.

    Ok. In the Menu, choose Actions and Applications.

    Octavio

  • How to fill a control ring with chains [] array?

    How to fill a control ring with chains [] array?

    It must be karma. (Try really bad karma because I couldn't post this question in my original)

    I must have been a Really bad guy in a previous life...  It's not like I'm bad in this one...

    So... what I want to do this time around?  Something that I thought would be easy... Well... it's a long story...  I had a simple solution, but the client wants something else.  -sigh-

    Here is what they want...  They want a control that allows for multiple selections to a control of the ring (or a control that allows a drop down selection menu).  Bites are filled at run time because it is based on 10 000 other precedents of things this particular choice.  So it must be dynamic.

    The snippet of code & images below show what I'm doing a little...

    The bottom image shows on the right bites which is filled in the control of the ring.  Since the number of items / items changes, I didn't have a bunch of controls stacked on another.  In addition, I have to deal with an unknown quantity of selections.

    Does anyone have a solution that can be recommended?  If so, can you share the solution / idea?

    Thank you

    RayR

    I have posted a code that does something similar here: http://forums.ni.com/t5/LabVIEW/array-of-cluster/m-p/1822451#M625032

    It uses a table hint and individual controls that are moved on top of the table and populated as needed.  This approach might work for you?  You would need a two-column table and only control ring, which you would fill properly whenever the currently active cell changes.

Maybe you are looking for