Placing several sets of data on a graph (LabVIEW for Excel)

I read in a 2D array (first rank values of the x axis, 2 values for the value axis in line, 30 columns) of a number of excel files. With each iteration of my loop for example, I read in 1 all of these 2D table data, and I'm tracing the curve (using Excel Insert graphic) before I close this file and move to the following.

I want, however, must be able to generate 1 chart at the end with all sets of data together. So far, whenever I'm iterating, new data erased the old, and in the end I only get 1 set of data (the last game) on the 1 graph.

I searched through the Forum similar topics, but 1) I have all my data read or typed into a nice big table, they come in the iterations instead, 2) my data values do not share the same values for the x axis, while the beach is almost the same (from 0 to 1) and the number of data points is always 30 (3) I don't think I can use shift registers because all my data is obtained in my loop, when I open Excel (also in the loop) files and read them, so I did not 'Original data' to initialize the shift register.

Any suggestions on how I was able to read the data, graphics, read the new data, then graph on the same graph without losing my old data?

Thank you!!

Kalyie,

You may need to force your data to have the same category axis.

Another option would be to insert data in excel instead of a graph. From within excel you could have a set graph in place who knows where the X values and are there for each data set and it will draw it automatically.

You can also try messing around with the Graph.vi of update to Excel.

I had limited success with the Excel update Graph.vi, but worth a visit.

Thank you

Joel C

National Instruments

Tags: NI Software

Similar Questions

  • Several sets of data on a single sheet

    Hello! I am a newbie in scripting Illustrator and I would create a set of labels that are data-driven. The labels must be printed 16 photos per sheet. I got the XML file to work and Illustrator is able to pick up data however it only allows me to change the first label of who. AI.

    What should I do to be able to print 16 different sets of data labels per sheet?

    ledesirardent wrote:

    Oh and I've already grouped. Don't know what else I'm supposed to do here.

    Before running it, you draw a rectangle on top, select the rectangle and all others, and then group all.

    For your second question, all you need is an effect of transformation (4 * 4) to the dataset you.

  • Select single dataset in several sets of data based on the priority column

    Excuse me if a similar question has been answered before. I don't seem to find the correct search terms to find the solution.

    On the question - I have the following data:
    +---ItemID---+---ItemName----------------------+---CompanyID---+
    |    1001    | Item  1001                      |       1       |
    |    1001    | Tuote 1001                      |       2       |
    |    1001    | Artikel 1001                    |       3       |
    |    1002    | Item  1002                      |       1       |
    |    1002    | Artikel 1002                    |       3       |
    |    1150    | Tuote 1150                      |       2       |
    |    2000    | Item  2000                      |       1       |
    |    2000    | Tuote 2000                      |       2       |
    |    2222    | Tuote 2222                      |       2       |
    |    2222    | Artikel 2222                    |       3       |
    +------------+---------------------------------+---------------+
    with t as (
            select 1001 ItemID, 'Item  1001' ItemName, 1 CompanyID from dual union all
            select 1001,    'Tuote 1001',   2 from dual union all
            select 1001,    'Artikel 1001', 3 from dual union all
            select 1002,    'Item  1002',   1 from dual union all
            select 1002,    'Artikel 1002', 3 from dual union all
            select 1150,    'Tuote 1150',   2 from dual union all
            select 2000,    'Item  2000',   1 from dual union all
            select 2000,    'Tuote 2000',   2 from dual union all
            select 2222,    'Tuote 2222',   2 from dual union all
            select 2222,    'Artikel 2222', 3 from dual
        )
    select
        *
    from
        t
    As you can see, not all companies contain the same elements. I would need to get a list that contains each itemid only once, and element name (and other non-visible areas in the example) the first company in which the item is found. CompanyID 1, 3 and finally 2 would be a priority. Thus, the example above would result in the following list:
    +---ItemID---+---ItemName----------------------+---CompanyID---+
    |    1001    | Item  1001                      |       1       |
    |    1002    | Item  1002                      |       1       |
    |    1150    | Tuote 1150                      |       2       |
    |    2000    | Item  2000                      |       1       |
    |    2222    | Artikel 2222                    |       3       |
    +------------+---------------------------------+---------------+

    Hello

    This is called a Query Top - N , and this is a way to do it:

    WITH     got_r_num   AS
    (
         SELECT     ItemID, ItemName, CompanyID
         ,     ROW_NUMBER () OVER ( PARTITION BY  ItemID
                                   ORDER BY          CASE  CompanyID
                                                   WHEN  1  THEN  1
                                        WHEN  3  THEN  2
                                        WHEN  2  THEN  3
                                             END
                                 ) AS r_num
         FROM    t
    --     WHERE     ...     -- Any filtering goes here
    )
    SELECT     ItemID, ItemName, CompanyID
    FROM     got_r_num
    WHERE     r_num     = 1
    ;
    

    The tricky part here is to get an expression that will sort the CompanIDs in the order where you want them (3 comes before 2). If this order applies to other queries outside of it, then you really shouldn't hardcode into any question. Instead, add a column to the table of society (or create a society, if you do not already have a), which indicates the sort order and join to that table.

    The overall functionality of DUNGEON (DENSE_RANK...) could also be used to achieve these results, but you mentioned that there are "other fields not visible in the example", which means that you would probably use a phrase quite complicated for each of them. The above query is easily extended. Add any columns you want both SELECT clauses.

    Published by: Frank Kulash, June 21, 2010 16:41

  • Corresponding to a set of data from one table to another

    I have a table - Table_1 with columns A, B, C, D, I have another (Table_2) table with columns B, C, D.

    I try to get all the rows in Table_1 where the values correspond to columns B, C, D.

    The catch here is that returned from TABLE_1 lines should be the same number of rows as in TABLE_2 and the value in TABLE_1 from 'A' should be the same for all these lines. So--Table_1 could return several sets of data where the VALUE of A is different for each SET but - the 'GAME' must match all other values in TABLE_2 exactly (including the number of lines for each game)...

    Any help is greatly appreciated. I hope that I said above clearly enough.

    -create tables

    create table t1 (a varchar2 (10), varchar2 (10) b, c varchar (10), varchar2 (10)) d;
    create table t2 (varchar2 (10) b, varchar2 (10) c, varchar (10)) d;

    -create data, 5 games in t1 with 2 correspondents sets

    insert into t2 values ('1 ', '2',' 3');
    insert into t2 values ('2 ', '2',' 3');
    insert into t2 values ('3 ', '2',' 3');
    insert into t1 values ('a', '1', ' 2 ', 3');
    insert into t1 values ('a', '2', ' 2 ', 3');
    insert into t1 values ('a', '3', ' 2 ', 3');
    insert into t1 values ('b', '1', ' 2 ', ' 3');
    insert into t1 values ('b', '2', ' 2 ', ' 3');
    insert into t1 values ('c', '1', ' 2 ', ' 3');
    insert into t1 values ('c', '2', ' 2 ', ' 3');
    insert into t1 values ('c', '3', ' 2 ', ' 3');
    insert into t1 values ('c', '4', ' 2 ', ' 3');
    insert into t1 values (has "', 1 ', ' 2 ', ' 3'");
    insert into t1 values (has "', 2 ', ' 2 ', ' 3'");
    insert into t1 values (has "', ' 3, ' 2 ', ' 3'");
    insert into t1 values ('e', '4', ' 2 ', ' 3');
    insert into t1 values ('e', '5', ' 2 ', ' 3');
    insert into t1 values ('e', '6', ' 2 ', ' 3');

    Select * from t1 where one (not in
    Select a from t1 where does not exist (select 1 from t2 where b = t1.b and c = t1.c and d = t1.d)
    Union
    Select one of (select one, count (*) NTC group by a t1) where NTC! = (select count (*) from t2)
    )

    A B C D
    ---------- ---------- ---------- ----------
    1 2 3
    2 2 3
    3-2-3
    1 2 3 d
    2 2 3 d
    3 2 3 d

    6 selected lines

  • XY graph, initialize multiple groups of data and update a single set of data

    Hello

    I have developed a VI to control the coordinates XY of a platform using two engines. A version a little kwicks xy plotter.

    The detail that I could use help in is the following:

    1. I have 469 (or 400 ~ ish, there are two modes) of the discrete points to be initialized/connected to a XY graph such that a cursor on the XY graph can break discrete points. It's well done.

    2. I have to keep track of the current position of XY. It's also well done

    3. I have to keep track of the former x - y positions, where I was able to extract the data correctly. This is done by a switch.

    4. almost all VI has an a giant loop, although sequenced by 0 of the past a structure of case to another until you reach the final "global dummy.

    Now, signals which are processed to the engine through a USB digital signal generator, I think not that the specifications are necessary. Essentially I needed bitmask each individual movement, so the 'engine of movement' part is embedded in the giant of while loop. This means that whenever I have add a new feature to my VI, engine movements slow down, each time that the operating system on the computer decides to run an automatic update, drivers slow down. I do not have the luxury of multi-threading or a microcontroller immediately.

    At this point, my engines are terribly slowly, and I'll try to find a way to make them run faster. I am sure that the bottleneck is actually treatment for my data XY graph.

    My XY graph manages 3 sets of data,

    a. 469 discrete points (table 2 x 469) or 400 ~ ish discrete points (2 x 400 ~ table)

    position current c. (x, y)

    d. "rescued/captured" (2xincreasing up to table 469) positions

    everything has, b, c are inside the while loop. A switch determines the 'a' is used.

    the berries are grouped and then sent in the graph xy inside the while loop. I need the graph to be interactive to the cursor and data.

    Now, is that I wish to run things.

    1. selection from either a or b is responsible to the xy chart (by a switch).

    2 c is updated constantly.

    3 d is updated whenever the data was captured (by a switch).

    Basically, I need a and or b to run only ONCE at initialization of the (and when I decide to swtich from one to the other) and remains constant. In the same way D updates only when a switch has been pressed.

    I failed to find resources too tracing data to the xygraph, and drawing a live data on top selectively.

    I have attached an outdated version of my front as reference. I would like suggestions. Thank you in advance.

    -JLS


  • Average values for separate sets of data graph XY multiplot

    Hello

    I'm using Labview 2010 and I'm a bit of a novice, unfortunately.

    So I am currently trying to get average values of the three plots I have on a multiplot XY Chart. I thought the best way to achieve this would be to use the express VI of statistics, but when I try to wire the data I need for this I can get statistics for a set of data and not the other two.

    I don't know how the separately on data sets, as it is not a table.

    If anyone can help me, it would be much appreciated. Sorry for the probable simplicity of the question.

    (The program is basically an ODE Solver, which then displays pressure at different places in a bioreactor).

    In the small LOOP where you have data of y for each parcel in the form of a 1 d table, add a "mean.vi" in the math palette: statistics. AutoIndex the output on the edge of the loop to get a table 1 d containing three ways.

    (In addition, a lot of your code could be considerably simplfified. You can [i] connect directly to the structure of the case and a case of '0' and the other, by default. Better would simply initialize the shift, no means required register. Index table is resizable, so you don't need to a single instance on the lower right corner. Wouldn't be easier to just get the latest column and it wire back the entrance inside the structure cases via the feedback node? No need to "subset of table to replace").

    You have forgotten to attach a Subvi, so we can't really test.

    EDH is a quick project:

  • Point cloud with missing data and 3 sets of data

    Hello

    I'm doing a scatter diagram that has 3 sets of data in it (i.e. 3 plots on the same graph), except that 2 of my sets of data have a missing value while my third set has all the values. I end up getting 2 lines that are disconnected. I can't just remove the line containing the missing data for the 2 sets of data because since my category axis is time, my data points get shifted and no longer appear at the right time. This is the chart that I have.

    Thank you.

    Hi Gabrielle,.

    If there is a diagram of dispersion, the x axis is a value axis. If you have auto selected for the min and max values on this axis, the scale may change when you remove the data point, 15, 85, but the rest remains in the same position relative to the values on each axis of ordinates. What change will be , however, is the curve on which 15 85 approached a local y maximum.

    Scatterplots will always leave a gap in the line/curve of connection where there are a pair of missing data. There are two ways to close the gap.

    If the chart is an essentially linear relationship, you can use a calculated value is pair up with the lack of value x. The downside of this is that the representation of this point will be indistinguishable on the map of the other data points, measured.

    A better way would be to make two tables, one with the full data set, the other with the partial sets, but with the pair missing completely removed.

    Adjust the cards the same size and have the same scales on each axis, then just remove one of the cards except the data points, the curves connecting the data points, the x axis of ordinates and the legend showing the color and the forms used to plot each series.

    Give a graphic a transparent filling and place it in front of the other.

    Kind regards

    Barry

  • Graph of the Excel data with overlay of dynamic data acquisition

    Hi all

    I was next to the forum of Labview for about a year, it's the same with my programming so I'm a little rusty. I don't have someone code this for me, but just a quick plan high level to point me in the right direction.  I am able to work through the tutorials Excel etc.

    Task 1: Basically, I have a set of data Excel (2 to 6 columns of figures, not the time) I want to read in Labview and throw in a XY graph as the base model that remains visible all the time.  This data set is quite long, length vs. size (length is 100km, 1 m intervals). I essentially want a scroll X graph to display all of the data.

    Task 2: Acquire a direct serial data string which will be superimposed on the graph of task 1 model. Acquired essentially data comparing data in real time to previously.

    In the past, I made the simple projects with Excel data reading and also the reading of data in series.  What I'm not clear on is how to create the (static) graph with Excel data model while superimposing live data as it comes.  It is the basis of an annual check of the investigation process.

    Advice on the process would be appreciated so I'll be working through the nuts and bolts.

    Cheers for any help,
    Wes

    If you are worried that your data sets is too large, then run a test with simulated data to see how LV takes it. You might be surprised. In all cases, you should be aware that the chart control will need to redraw it with any changes you do anyway, and as far as I know, having a large amount of data is the main thing that can make a slow chart control. If you find that you have too much data, you might need to decimate it you based on how much you zoom before putting it in the graph.

  • dispplaying data on the graph of waveform inside/outside while loop

    I create a vi using the random number generator, entering the number in the function(express>>arithmateic>>maths>>trig>>sine) fishing and connect the output of the function sine waveforms. Table of waveform show no problem. If I replace the with graphic waveform table, I get an error that the source type is differenct type of sink. I then put waveform chart outside loop everything hoping that tunnel would act as a table, but still I get the same error. I then put build table palette between all border and loop waveform graph which is placed outside the while loop. I get no error, but no data is displayed on the graph of a waveform. Theoretically, if I press stop I would see a distorted sine wave on the waveform graph, but this doesn't seem to be the case. I am wondering how to view data on the graph of a waveform in such cases!

    Thank you in advance for reading and help!

    See you soon

    First of all, you can take a part of the basis of LabVIEW tutorials.

    Since you need to work with a chart and it is the preferred method to display data point by point, I don't know why you try to use a chart. In any case, you cannot use all simply a table of generation because that would be just the result of the last iteration and your graph indicates it is a single point. If you activate autoindexing, then you get all the values, but not before the end of the loop. If you were to use a shift register and the build dashboard, you might place the graphic inside the loop, but then you would face performance issues that the table would grow uncontrollably.

  • Difficulty to use indexing to divide the data into five sets of data

    Hello

    I'm using labview to program a mass spectrometer.  I want to conduct surveillance of the multiple ion where I watch the level of five different masses over time.  The five different masses correspond to five of the tensions that are sent via the DAC to my instrument.  After sending each voltage, a voltage was then read AIN.  The help of indexation and a for loop, I can send fill this function.

    My problem is to be able to plot these data.  I need a field of tension AIN (y) and the time (x) for five tension (mass) and plots to display on a single diagram.  I don't know how to correlate data from indexing to separate into five different mass and then repeat the experience by adding data to each mass using all loop.  When I tried I just get data tracing as a straight line as a set of data when I need five sets of data.

    I enclose my vi.  Any help would be great.

    Your VI base design is incorrect:

    • There is no reason for you to have 2 while loops. One is suffient.
    • You should not open the interface in each iteration of the loop. Open outside, do your work and then close when you are finished loop.

    Regarding the map, get rid of the inner loop and eliminate this Build table you have outside the loop for. In order to have a graphic draw several lines, you have need of a 2D array. Because you use a loop for to acquire a reading at the same time, you'll need create a 2D out of the loop for. To do this, put a table to build inside the loop, then a function of 2D matrix transposes outdoors. See the attached example.

  • Create table with several Collections of data control

    Hello

    I have a requirement about to display data in a table. It shows simple, but certain columns in the table are within a collection, and the others are in another collection. I read this chapter Creation of ADF Databound Tables - 11 g Release 1 (11.1.1.7.0), and she explains to create the table with a collection.

    I have no knowledge on the model, I know just as control data, so what should I do? :

    -Ask for the template designer to redraw the control of data to include a collection with all the data?

    -Try to work with the actual data control? If so, how can I create the table several Collections of data control?

    Plese let me know if there is another solution. I work with JDeveloper 11.1.1.7.

    Thank you!

    AAPDL

    Hello

    You can have a managed bean that e... g exposes an ArrayList of objects. This can then binds to the value property of the table. If the object sets the information of table row combination that you get multiple iterators (collections), then the table will display the joined data.

    Frank

  • How to load several columns of data into Essbase

    Hello!

    I need to download a flat in Essbase data file, but this file contains data for each month in a separate column (Jan, Feb and March), it has several columns of data in the source file, while the DATA reversed Essbase data store is a fact with a column of the data table. So I'm stuck on the way in this case to map more than one column of data in the source file to column 1 of the target data.

    Thank you very much!

    When yo reversed your essbase data model in the RKM there will be an option called SEVERAL COLUMNS of DATA (no default value), this must be set to yes. Then, there are 2 other options that need to be addressed DATA_COLUMN_DIMENSION which is the name of the dimension that you load multiple values to in your case period. Then in the next option DATA_COLUMN_MEMBERS specify you a comma list of members separated... column data required i.e. Jan, Feb, Mar etc. Now when you reverse the model, you will have several column data members

  • Find the median of a set of data

    I have a table that looks like this:

    Range

    Set of data: range values

    Data set b: range values

    0.00 - 0.99

    35

    67

    1.00 - 1.99

    35

    40

    2.00 - 2.99

    49

    54

    3.00 - 3.99

    41

    45

    4.00 - 4.99

    36

    38

    5.00 - 5.99

    31

    34

    6.00 - 6.99

    22

    29

    7.00 - 7.99

    30

    20

    8.00 - 8.99

    24

    16

    9.00 - 9.99

    16

    11

    10.00 - 10.99

    15

    10

    11.00 - 11.99

    12

    5

    12.00 - 12.99

    11

    1

    13.00 - 13.99

    5

    2

    14.00 - 14.99

    5

    1

    15.00 - 15.99

    2

    0

    16.00 - 16.99

    1

    0

    17.00 - 17.99

    2

    0

    18.00 - 18.99

    1

    0

    How can I find the median interval for each set of data (A and B)?

    Thanks for your help!

    Median and range are two different things from what I remember. Can you please send a link to a Web site that could describe what a "median line"?

    Median is the average of a set of data (even counting data sets usually take the average < average > the values of two intermediate points)

    Range is simply the max - min.

    Jason

  • How to set the date and time on my HP Officejet pro 8600 more?

    How to set the date and time on my HP officejet pro 8600 more?  It just on a printed journal Jan-oo-oo fax shows 00:00 AM.  There are no instructions on how to change this.  I need proof that I sent a fax to a certain date and time.  Help, please.  Thank you

    Hello

    Below are the steps to set the Date and time for your device:

    1. On the Control Panel, press the right arrow key ( ), press Setup ( ).

  • Setting the Date

    My new laptop HP - 17 t - x 000 CTO (ENERGY STAR) will not hold the correct date. It starts in 2091. Once I have corrected, he returned at random to 2091. Can someone help me? Thank you-

    Hello

    Verify that the correct date is set in the bios as follows.

    Shut down the laptop.  Tap away at the esc you key start Notepad to open the Start Menu.  Select the option in the Bios ( f10 ).

    If the hour / date here is incorrect, you can correct it as follows.

    You should see that the first field highlighted is the time value - set this to the correct time by using f5 and f6 (f5 will decrease the number & f6 it will increase).  When it is correct, press ENTER to highlight the Minute field and again, use f5 and f6 to set the correct minutes.

    When finished, press the arrow down to select the first Date field.  This should be for the month, so use f5 and f6 to enter the correct value.

    Press Enter to highlight the field day and this, and then press ENTER to highlight the year field and then set this.

    If you are happy with the settings of Date and time, press f10 and press ENTER to save the settings and exit the bios.

    Let windows load completely.  If the Date and time correct does not appear, go to the control panel and set the Date and time correct here.

    Restart computer and check if this has fixed the problem.

    Kind regards

    DP - K

Maybe you are looking for

  • Links in Email messages redirect by clicking on it

    I get a daily email of Howtogeek.com that contains a section titled "What are we Reading" which contains a list of items from various websites and the links to those articles. I've noticed recently - in the about the last month or more - I 404.txt ph

  • Sony FDR-AX100

    Dear professionals I get my RAD-ax100 in 4 days from today. After studying at my questions for now, the description of the product: sony recommends to always choose XAVC S 4 K to make the video. now, my question: if I do (check-in mode 4K), can I the

  • laptop suddenly stops when some startup programs.

    When I run certain Adobe programs like photoshop (illustrator and indesign works fine however) and competitor Autodesks Revit, software Archicad and Artlantis 3D works great. My Pavilion m6-1040eo turns suddenly, the screen becomes dark powerbutton g

  • laptop tells me that it cannot find a certificate to log too

    What is a certificate

  • How copied knowledge rule contained in the cartridges

    Hello I copied a rule followed Exchange cartridge, once an old is automatically disabled. but I could not view rule (a new) copied to this list of rules