Table of while loop

Hello

How can I get the table while loop in the attachment?

Any help will be appreciated.

[Running LabView 8.5].

Thank you

hiNi.

What do you mean by "get a picture?"  You get a table that will have a random number in the 1st item and the number 10 as the second element.

You try to build a table of values that contain information on all iterations?  Then right-click on the tunnel and turn on automatic indexing.

Tags: NI Software

Similar Questions

  • Two questions in table "While loop"

    Hello

    I have two questions about creating tables in while loops. I'm using LabView 8.5.1.

    In its simplest form, my current while loop (delay set to 0, 2 s) has 3 variables that have been changed by moving a slider. They are each sent to a line in a block of 'Building the table' (data type is DBL 1 d) - this table is then written to a spreadsheet file, such as the three values are written to a new line (one value per column) whenever the while loop runs.

    Question 1

    How can I add a column 'Time' in this worksheet? In other words, get at the present time the loop works since then, from 0 seconds in the spreadsheet, via the table block building.

    I can think of how to do this with a loop For, but given that the While loop runs through an unknown number of iterations, I can't figure out how to get the counter to work.

    Question 2

    How can I text column headings on the worksheet?

    Thanks for the help and if you need anything anyone stating, please let me know

    To answer question 1:

    There is a function of 'Elapsed Time' you can put as the first colum of the data.

    This then reformatted your spreadsheet as
    Time Data1 Data2 Data3

    Time Data1 Data2 Data3

    Time Data1 Data2 Data3

    etc...

    To answer question 2:

    Build a table of positions, then write this table in the file only once, outside the loop.

    Your table with the data and time will write inside the loop.

  • While loop and table

    I'm weak and I can't get up.
    I'm playing a series of clips in order, so movieClip2 does not play until the end of movieClip1 (label = 'end'). I started with a three separate movieClips, each with its own listening port. Because all three looked like, I thought me save time by using a table and while loops. I have a dozen of these total movieClips, then rather than cut and paste each individual listener and if statement, it seems that there is a better way. And you smart people are the people who know. The output I am receving is: TypeError: Error #1006: value is not a function.

    Thanks in advance for any direction.

    I tried to use another method successfully. In my previous attempt, I used too many while and loops enterFrame, which caused problems of circular logic. Using only a few statements seem to solve the problem, as below. Thank you all for taking a glance at the problem.

  • storage of the data output of while loop

    Hello

    I have a data acquisition system set up to read the couple of a transducer. The output needs to be fed with an excel document, once the program stops running, or when a key is pressed.

    with the current code attached, the excel document is created, but it only shows the most recent series of data. How to make the table to store all the data coming from while loop?

    Ive only been programming with labview for two weeks, so chances are that it is something simple, but please help us in any case.

    JM

    To get what you expect, the Terminal output of table a while loop right click and select the option activate Indexing. Usually if you want to save data use queue to pass data inside the while loop to another loop/VI and perform data recording. For all that you have examples, please do a searc in LabVIEW help > find examples.

  • Create a While loop 2D table

    How can I create a 2D table which is updated and displayed on the front panel after each iteration. It is 2D because I have a voltage that corresponds to a load.  I want to see the current voltage corresponding to the intensity of the current, and all the previous tensions and charges while the while loop is still iteration

    Thank you

    Try this:

  • Add new values to an existing 1 d table in a while loop

    Hello

    I have a while loop that collects data from a DAQ Assistant and stores it in a 1 d table. The number of rows is defined by the user. I'm trying to average of data for each iteration of the loop. So far, I'm only able to get the table to smash the previous table with the new values.

    If the number of loops = 3

    First iteration second iteration third iteration 1 d New Array [divide by loop #]

    4.97                                      4.99                                               4.98                                            14.94                       for the average]
    4.97                                      4.99                                               4.98                                            14.94
    4.96                                      4.98                                               4.97                                            14.91
    4.98                                      5.00                                               4.99                                            14.97
    4.97                                      4.99                                               4.98                                            14.94

    I would like to make it as broad as possible because the number of loops will vary depending on user input.


  • How to extract an element of a table 1 d product within a while loop

    Dear all,

    IM new to labview. I got the task to create the program for the route of some settings in my lab. I created a program to interface sourcemeter keithley 2636b that will help me source voltages in a range and get the current and the resistance and ground them. I used a simple while loop for this. My problem is the following. I need t extract the nth element of the array created for resistance after each measure and store it in an array. I need to make a resistance measurement several times one after another and save the nth element each time these individual tables and push it into a buffer so that I can trace elements in the buffer against a setting (this is called a measure TLM). I tried several methods. Some nice guy / gal had posted a solution using the loop to retrieve an item. Its doesn't work don't not in my program I need to use a loop in my time loop and it gives is not the correct value. Kindly advice. IM in a lot of pain. Help!

    And indexing does not work?

    Why don't you check out 2D paintings and the bays of clusters and try to make your 'readable' with that code?

    Also there are many resources available online:

    Introduction of 3 hours
    Introduction of 6 hours
    Bases LabVEW
    Paced self-study for students
    Self Paced Training beginner to advanced, required SSP
    LabVIEW training Wiki
    OR learning
    Getting started with products OR

  • Creating a table with a while loop

    I want to create a table using a while loop but I don't know how to do it.  Basically, I want to do the same thing as in the image of the example VI in LabVIEW VIs, called 'Graph XY Data Types.vi' example, but with a while loop instead of a for loop.  The reason why I want to do with a while loop is because LabVIEW will not faint error or VISA data thanks to a for loop.

    LabVIEW certainly enable you to pass out a mistake or VISA through a loop for. The default value is autoindex output and thus creating a table but is a simple right-click on the tunnel exit to change that. For recent versions, it changes the Tunnel mode to "last value". You can also use a shift register.

  • Table 1 d in the while loop problem

    Hello world

    I searched this problem in the forum, but seems only some positions quite didn't answer.

    I'm stuck by saving the data in a while loop.

    I have a while loop, within which there are two exits in each iteration, I want to add to a table, and then after the while loop is completed, I want to combine these two tables in a 2D array (since the release of them must be a pair in my case).

    I tried 'Build array' and 'transpose array' and 'write in spreadsheet' element set, which maintains concerns me is how simply to add the result in a 1 d table during each iteration, these 2 outputs are in digital format, which prevent to directly create a table for it.

    Any idea is appreciated,

    Thank you

    Chen Kunsheng

    Here are some other ways to insert.

    It may be useful

  • loop for and while loop with empty table entry

    Hello

    I have a question with loop and loop.

    When a constant empty array (zero element) is connected to the loop For with "allowing the index", there are no interactions performed in loop For. But, if the loop is replaced by any loop, no problem.

    LabVIEW 2010

    Hello

    It is ok. I have no problem at all.

    For the 'loop' For when you connect the table thanks to indexing, the number of iterations is set to the size of the array. The iteration number assigned to N (in your case 10) is ignored.

    For the 'While' loop the number of iteration is defined by the Boolean Condition and the size of the array is ignored.

    Paul

  • Stop a while loop with outdoor table

    Hello

    I have a problem to stop the execution of a vi that uses a while loop and outside a table with two values of time intervals. I would like to stop the VI when the different values of the array are passed. I have attached here the code if you want to help me please, thank you in advance.


  • How to build a table inside a loop

    Hello world

    I have a fundamental question on labview. I would like to create a table in a loop 'for' in this way:

    inside the loop, if a condition named 'A' is true, then I add a new value to the first column of the table.  Otherwise, I have create a new column and start adding values in this column when the condition 'A' is checked, etc.

    I put an example of a VI when the 'A' condition is "improving the loop + 1 is not divisible by 5" and the values in the tables are to increase the loop + 1. The loop stops when the increment = 25.

    In this example, I have a single column with the values [1 2 3 4 6 7 8 9 11 12 13 14 16 17 18 19 21 22 23 24]

    while I wish I had a table of 5 columns:

    1 6 11 16 21

    2 7 12 17 22

    3 8 13 18 23

    4 9 14 19 24

    Note that this is just an example. More generally, the table may contain columns of different lengths.

    Thanks for your response

    Andrew

    Try to watch this VI I wrote, it takes a 1 d array and puts it into a 2D array based on a threshold. I think it's a pretty good example on how to insert a table of works. I hope it helps

  • What is READ the array returned by the DAQmx meter? How can I know the two functions DAQmx READ data stream in the same WHILE loop?

    I have a question about the order of execution.  In the WHILE loop, I have two things to measure, period and tension using the DAQmx READ functions for voltage and the meter.  In the end, I want to collect these data as points almost simultaneously as possible, as a pair and then send them together to another piece of code (not shown here) which them will result in some sort of command for an engine.  It would be run, and then I want to perceive the tension and the period at a time later and do the same thing.

    (1.) I'm a little confused on what the meter of the READ function is back because it's a table.  What is a picture of?  I thought that it was up to the value of the individual periods between rising edges.  The output of the counter 1 DBL d's a table. How many elements in this table, and what determines the size of this table?  Are the elements of the array the individual delays between the edges?  How many values are stored in the array by executing?   We take the AVERAGE of the last 15 items, but do not know if we are throwing some of the data or what.  How to understand the composition of this painting?  How can I change the composition of this painting?  Is it possible to measure only one period at a time, for example the time between TWO edges?

    2.) Will this WHILE loop execute as it gathers tension and a "period table ' (remains to be understood by me) by TIME running in a loop?  In particular, we want that the value of the tension associated with the value of the AVERAGE of the period "array", so we can use two data items to create orders of next control every time that the two values are reported.  The structure for the delivery of vi will be attached data in pairs like this?  I understand that one of the READING functions run not before the other function of READING in the WHILE loop.  I want that the period "means" and "strain (Volt) collected at the same pace. This vi will he?

    Thank you

    Dave

    Hi David,

    I suggest including the DAQmx Start Task function. If it does not start before the loop, it starts the loop and work very well, but it is not as fast and efficient. In the model of task status, task wiill go to run the checked each iteration of the loop and then back the time checked running when it restarts.

    The status of the task model: http://zone.ni.com/reference/en-XX/help/370466V-01/mxcncpts/taskstatemodel/

    Kind regards

    Jason D

    Technical sales engineer

    National Instruments

  • Update a table in a loop with a table, not a single value

    Hey everybody,

    I'm new to the Forum, but I do LabVIEW for almost a year now.  I work to make my code much more simple, but I encountered a problem that I can't seem to overcome.

    Say I want to graph a numeric control.  I'm updating the digital control to 5 and 5 graphic updates.  Whenever my loop is executed, the 5 is reloti.  Easy to see that the updates fast loop, my FP will have too much processing time.  How to pass control to an array and only draw table each, for example, 10 iterations of the While loop?  I thought using the 'i' in the While loop and a structure case (use is equal to? 10 as the true to update case).  That doesn't really seem to be the answer... Any help is appreciated.

    Hi, Mr. Bass,.

    Thank you for your post and welcome to the forums of NOR.

    If you want to update every 10 iterations, for example, you can use "Quotient and remainder" LabVIEW function found in the palette of the digital - divide the number of iteration by 10 and check the rest, if it is equal to zero then you're on the 10th, 20th, 30th, etc the iteration. You can then use a case structure and write your chart in the case of true, with the condition is true, if the remainder is zero.

    Let me know how you go with this method.

    Thank you

  • delete 2d array in the while loop

    I have a table 2D being initialized outside of the loop executing a state machine, how would a clear table 2d in the while loop? I guess I'm not sure what to wire a constant matrix empty 2D too =)

    When you want to erase (regardless of this Boolean condition), wire just a constant matrix 2D of your shift register.  See attachment.

Maybe you are looking for