Build a table from an array

Hello

I have this table 1 d of large size (~ 20000 entries), and I'm building a small array of time of 20 samples of each and find its min and max values.

Such as the small table goes from i to i + 19 entries in the big table.

So far, I think I've managed to build the small table every time, but do not change the min and max values with each "new" table, I don't know what could be the problem.

It is on the lower part of the atteached vi, the upper part of the Xsub(i+1)-Xsub (i) vi and works very well.

Any suggestion?

Thank you


Tags: NI Software

Similar Questions

  • How to build the table with all the combinations of a source table?

    Hello

    I have a 2D array that contains the list of the power user-defined settings. The number of PSs (table rows) is not fixed. For example - 3 PSs:

    Stage of Min Max name

    PS1 3.0 3.6 0.3

    PS2 0.9 1.2 0.1

    PS3 1.7 1.9 0.1

    I need to build, from this list, a table of all the combinations as below:

    PS1 PS2 PS3

    3.0 0.9 1.7

    3.0 0.9 1.8

    3.0 0.9 1.9

    3.0 1.0 1.7

    3.0 1.0 1.8

    3.0 1.0 1.9

    3.0 1.1 1.7

    3.0 1.1 1.8

    3.0 1.1 1.9

    3.0 1.2-1.7

    3.0 1.2-1.8

    3.0 1.2-1.9

    3.3 0.9 1.7

    3.3 0.9 1.8

    3.3 0.9 1.9

    3.3 1.0 1.7

    3.3 1.0 1.8

    3.3 1.0 1.9

    3.3 1.1 1.7

    3.3 1.1 1.8

    3.3 1.1 1.9

    3.3 1.2 1.7

    3.3 1.2 1.8

    3.3 1.2 1.9

    3.6 0.9 1.7

    3.6 0.9 1.8

    3.6 0.9 1.9

    3.6 1.0 1.7

    3.6 1.0 1.8

    3.6 1.0 1.9

    3.6 1.1 1.7

    3.6 1.8 1.1

    3.6 1.1 1.9

    3.6 1.2 1.7

    3.6 1.2 1.8

    3.6 1.2 1.9

    How to build this table programmatically?

    (Note also that the number of rows in the source table is not fixed).

    Thanks in advance!

    Hi Berezka,

    using a magic of automatic indexing:

  • How to build a table of measured data permanently

    Have a good day for everyone,

    I have a problem about the construction of a table permanently. I tried to find the solution for a long time, even if it's a task really simle.

    I want to build a table permanently, virtually:

    I like to read data from a measuring devices and I would like to sotre it one by one, at all times. I made a simple VI to present one where my problem is. The random generator represents the data given the measuring device.

    At currently I am able to store data only 1. When I want to store then that it is crushed.

    Thanks for anyone who can help me.

    Hi LIG.

    no need for a structure business when you can use autoindexing:

    Also, the code snippet shows how to convert a number in your reading string. You probably prefer tanks instead of integers...

  • build efficiency table

    Hello

    I would like to know, wheather my solution is effective, or it can be done in a better way.

    I have a car with a labview driver mass spectrometer and an example live

    I want to change one of the VI. Here the used structure of the spectrum is a kind of cluster of waveform. I have attached a not only test VI funcional, to show. For the evaluation of the data, I need to use XY pairs / data, so I need to create X, type Y tables from this group. The size of the arrays are of the order of 10 thousends... Just in case, I'll use a thread of the queue in the evaluation of data (consumer loop) independent producer loop (about 0.5 Hz production data, so all the 2 sec, I get a new spectrum of the driver of MS).

    So my question is, is there a better way to create this type of cluster XY tables? Depending on the size of the data, in my experience, it can be a little slow...?

    Thanks for the tips!

    Dropbox link: (the discussion forum is not able to upload my VI... )

    https://DL.dropboxusercontent.com/u/8148153/Test1.VI

    In 2013 LV I think that the proposed solution would be OK, but in earlier versions, you are always better distribute all first and replace rather than use the autoindexing a for loop.  The reason of the dependence of version of LabVIEW is that exactly this operation has been greatly optimized by the compiler in 2013 of LV.

    Shane

  • How to build a table of TDMS file open

    Hello

    Examples NI TDMS - Express write data .vi (time domain), I can build a PDM file with 2 channels (sine and square waveforms) data, which are stored as test.tdms.

    Using Express read .vi data (time domain), 2 channels of waveform data are read. How to build a table later? How to separate the 2 channels of data in the tables 1-2 and manipulate the data using table functions?

    For example,.

    I want to collect 100 from index100 between channel 0 and their average. I want to take 50 samples from the channel 50 1 index and double each element.

    Thank you for your help.

    Bing@NCL

    Hey Bing.

    You can perform operations on different channels in the 2D table using the table to index. This will allow you to choose the channel to operate on, then you can perform the operation inside a loop on each element. In the included code snippet, I used a shift register to find the total cumulative values in channel 0 and then divided by the number of samples.

    I recommend you read some tutorials LabVIEW and bases of knowledge on topics that are related to yours. These could help a lot.

    I hope that my suggestions help,

    Chris

  • build the table when values change at run time

    Hi all

    I have a continuous stream of frequencies that continue to change during execution. I need to make a table of these values. I use the array build function. This option stores the first value only and the order of the day replaces the stored rather than settle down after that. I was going through the examples of labview and I think that by using the shift register can somehow solve this problem. However after an hour of futile play with lag, while loop records and build blocks table that I decided to post on this problem. I would like if someone can delete my concepts as well as a solution. The conceptual linkage is for what the first value to maintains have replaced. If I use the table of generation block the values that come should then fill the following vacant location logically. Instead, it replaces one only.

    You are right that I have simply the case that I warned the first sentence.

    Other methods require a certain amount of planning on the structure of data-handling. It is suggested at least...

    A better approach would be something like a circular buffer where you initialize an array of the desired size (for example 10000 items) and then start to replace the items. You can use the iterator of the loop you have to 'reduce' using quotient & reminder (which is the 'modulo' mathematical operation).

    hope this helps,

    Norbert

  • Build a table or merging of signals?

    I know that there is more than one way to merge waveform signals to display in a waveform chart. The two that I know are a fusion signal express vi and build the table. But I was wondering which of the two were more effective. I read once somewhere in this forum that this "generation" is one of the tasks much more time.

    Not very critical of what I'm doing (a data acquition loop takes a few milli seconds with table generation) but was just wondering if one or the other has a better way to do it. Or it could both be the same.

    Thank you.

    If I understand correctly, you only build a piece of data in an array of 1 x 1 each time through the loop.  If this is the case, then there is no problem with the way you use table build and build waveform to get your data on the graph with the timestamps of law.  It is perhaps not the most effective approach, but at a rate of 200ms update, you are unlikely to have problems.

    Build problems when you add constantly in an existing table because the table maintains more and needs to be reallocated whenever a new item is added.

  • How can I write time to build the table in just a few seconds?

    Hello world

    I am able to use "elapsed time" to send a time stamp to "build the table" using the output of 'elapsed time to text.  But after 59 seconds, it gives then a minute.  In the excel file, it is as follows:

    0 00:00:59

    0 00:01:00

    0 00:01:01

    I want to continue to 60, 61 seconds and so fourth.  When I try to connect to an another Subvi, it gives me a connection error.  Any help would be greatly appreciated?

    Thank you

    Ferriol

    I guess that's the Express VI, you can use the output of the time elapsed (s) instead of the number of seconds passed.  If you want a string, use the Format String VI, or build an array of DBL to add to the rest of your data.

  • Populating one table from another table

    Hi Forum...

    I'm trying to populate a table from another table using CFQUERY... I have no problem with the selection of data from the original table, but need help to get the data into the new table. I use MX 6.1 and access as the database server.
    The two arrays have domain names identical to the same place, and I don't want to have to code all the column names in the selection and insert command. for example

    < cfquery name = "GetData" datasource = 'somename' >
    SELECT * FROM AssetTable1 WHERE BarCode = "123456".
    < / cfquery >

    < cfloop query = "GetData" >
    < cfquery name = "InsData" datasource = 'somename' >
    INSERT INTO AssetTable2 (xxxx...)
    VALUES ("#xxxx... #'")
    < / cfquery >
    < / cfloop >

    I hope this makes sense

    Thanks in advance

    Dave

    If your tables are identical structures and their columns are of the same type and position, and both tables are in the same database, then put everything in a single query.


    INSERT INTO AssetTable2
    SELECT *.
    OF AssetTable1
    WHERE bar code = "123456".

    If the columns were in different positions, then you should be listed explicitly in the INSERT and SELECT the parts, but you get the idea.

    INSERT INTO table1 (col1, col2)
    SELECT col1, col2
    FROM table2
    WHERE all that...

    Phil

  • How to build a table using incoming data stream?

    I'm programming in VBAI but use LV as my Interface of Inspection. The VBAI program will go into a finite loop (x 1000) and the digital indicator with dbl vaule of food in front of the LV Panel if the value double is in order.

    In LV, how to build a table (index 0-999) with this stream?


  • How to build a table in a master/slave relationship?

    Hello NOR community,

    I can't build a table in a master/slave relationship. I want two paintings to be built for a fixed amount of iterations, once press the 'pressurization '. (This data acquisition would occur only once per program). I am new to Labview so I apologize in advance for my layout disorder.

    I want the slave program to create two tables and analyse the slope of pressurization to arrive at the same time as the master's program and the master program to continue to acquire data of pressure.

    Master slave relationship is even necessary here? How to pass a variable (pressure main once a loop without getting stuck in a nested loop situation?

    Here is a small example, just to show an idea (many things is not optimal in this example!). Based on your VI you have attached, you miss a lot of basic concepts of LabVIEW, you go through online training.

  • Build a table 1 d of sequential data for analysis

    I have an executable that needs to cycle at least 10 times and then check to see if the last three load average values lower than 5%. If so, I can cancel the executable, but otherwise I have to keep cycling until this is true. As it is now my executable is not fully implemented for this last requirement because I'm stumbling over how to build my data table. I tried a few methods different but all keep changing one value with one another, and I'm not sure how to implement some of the loop I saw here in similar cases. I have now so I can build a table once my iterative loop is finished, but I wish it were on the fly and re-enter the cyling process if necessary.

    I would greatly appreciate any help someone who is actually competent could provide. I have attached the code (version 8.5).

    Let's try this one.

    In the table of construction (with the concantinate mode on...) new data are added to the table first, not the last.

    The table is based and as it builds, the first (latest additions) three elements are averaged and then checked against a constraint of difference you set on the top of the screen.

    Sorry for the first code... I have yet to understand all these things of table.

    It works as expected.

  • Droping a table from within a procedure by passing the name of the Table as an Argument

    HII All

    I want to remove a table from a procedure dynamically passing the table name as a parameter of a procedure manual

    to do this, I wrote the following procedure

    CREATE OR REPLACE PROCEDURE DEL_TAB (TAB_NAME IN VARCHAR2) AS

    V_TAB_NAME VARCHAR2 (10);

    V_STMT VARCHAR2 (50);

    BEGIN

    V_TAB_NAME: = TABLE_NAME;

    V_STMT: = 'DROP TABLE' | V_TAB_NAME;

    RUN IMMEDIATELY 'V_STMT ';

    DBMS_OUTPUT. PUT_LINE(V_TAB_NAME||) e TABLE DELETED ');

    END DEL_TAB;

    but whenever I'm execute it gives me an error

    ERROR on line 1:

    ORA-06550: line 1, column 15:

    PLS-00357: Table, view or sequence of reference 'A' not allowed in this context

    ORA-06550: line 1, column 7:

    PL/SQL: Statement ignored

    Please tell me the solution...

    Thanks in advance

    Alisson

    Why do you want to implement this procedure? If you want to remove a table just issue the DROP of stand-alone statement. Why write a procedure for this? Also you must understand the difference between REMOVE and DROP in the context of RDBMS. You either use them which is incorrect. DELETION is to remove rows from a table and DROP is to remove the database table.

    And with regard to your problem

    > RUN IMMEDIATELY 'V_STMT ';

    This should be

    immediately run v_stmt;

    You closed the V_STMT variable is in single quotes. You must remove the apostrophes.

  • Alguien sabe donde quedo los botones o funcion (table from left to right) y (table from right to left) en indesign cc 2015

    Alguien sabe donde quedo los botones o funcion (table from left to right) y (table from right to left) en indesign cc 2015

    Tienes that features una version of MENA (for example Arabica).

  • In Photoshop, how can I change the background (Mount table) from black to white. I must have hit something because it changed suddenly mid-project and I cannot find anywhere in preferences to solve this problem.

    In Photoshop, how can I change the background (Mount table) from black to white. I must have hit something because it changed suddenly mid-project and I cannot find anywhere in preferences to solve this problem.

    Right-click on the pasteboard, and you should have a choice of colours from timeline menu.

    I would add that you should have a file to open it or it won't work.

    Gene

Maybe you are looking for

  • HP 15-d006sp updates?

    Hi allI want to know what type of updates can I do in this laptopI want the hd to an SSD and I need to know the maximum amount of RAM I can spend tooI searched online and found nothing on my laptop...Thanks in advance

  • Help the spikes of voltage high frequency Counting

    Equipment: NOR USB-6229 (250 ksps / s analog in., 16 bit DAC, 32-bit counters, and internal clocks) LabView 14 Problem: I have an experimental app where I need to count the points of tension (entire #) caused by electrons striking a sensor. These tip

  • All programs list

    Go to the Start button, selecting programs all does list all programs, about 8 of them.  How to get back my list of programs?

  • The Vista backup failure

    I am running Vista Home Premium and have been using the backup and Restore Center for weekly scheduled backups. I noticed that I get messages when I log on saying that Microsoft Windows backup has stopped working. However, the incremental backups alw

  • If I change the SO or change the hard disk, I lost the warranty?

    HP Pavilion dv7 - 7047cl Windows 7 64 bit