How to display 4 graphs on the same graphs display when running the VI 4 times ?

My goal is trying to display 4 different graphs on the the same XY graph when I run the VI 4 times. Right now, the new graph will overdrive the previous graph when I re-run the VI.
Please help!
Solved!
Go to Solution.

You need a mechanism for storing previous data; LabVIEW graphs do not have a history, they display sets of data.  A shift register is an obvious answer, but it can get somewhat "tricky" when the Build XY Graph is used as it accepts a DDT and you cannot simply append a data set using array functions...
The solution?
Rather than make the changes for you, I've created a simple example for a regular graph to show you how to use an un-initialized shift register to store values from previous runs (the data will be lost when the VI is closed) as long as the VI is in memory.
I'll leave the DDT conversion from the 2D-array and XY graph implementation for you to figure out in case this is some form of a homework assignment.
Good luck!
-Bob
Message Edited by B O B on 11-20-2009 04:53 PM
-Bob
Attachments:
Example 2.vi ‏12 KB

Similar Messages

  • How to get Basic salary amount in the Housing formula to calculate the housing value as I used the DBI (NICDP_EMPLOYEE_BASIC_SALARY_AMOUNT_ASG_ENTRY_VALUE) but when run the Quick pay for the housing element alone result come 0, How to get Basic salary amo

    How to get Basic salary amount in the Housing formula to calculate the housing value as I used the DBI (NICDP_EMPLOYEE_BASIC_SALARY_AMOUNT_ASG_ENTRY_VALUE) but when run the Quick pay for the housing element alone result come 0, How to get Basic salary amount in the Housing formula to calculate the housing value as I used the DBI (NICDP_EMPLOYEE_BASIC_SALARY_AMOUNT_ASG_ENTRY_VALUE) but when run the Quick pay for the housing element alone result come 0

    Hi,
    Is your formula attached to basic salary element or some other element? You need to make sure that basic salary element has some value and is processed before this formula is called. Are you able to see value for basic salary element after payroll run?
    Regards,
    Pawan

  • Are the system requiremen​ts for running an 8.2 applicatio​n the same as that for running the developmen​t software?

    I built a fairly simple application using 8.2 Developer's Suite and targeted Windows 2000.  When I attempted to install the application on a Windows 2000 machine, I received an error stating that the machine did not meet the minimum requirements.  It has enough hard drive space and is running Windows 2000, so the only items not conforming would be processor speed or RAM.  Does the target machine have the same requirements as the development machine (8.2)?  Is there a method of determining what the system requirements are for a particular build of an application?
    Thanks for any assistance.
    Marty G

    The development was done on a Windows 2000 machine and the app runs fine on it.  The target machine was verified to be running at only 200 MHz with 64 MB RAM.  While this meets the Windows 2000 minimums, it appears the 8.2 Run Time or App requirements are higher.  I knew the app would be slow - we are trying to reuse assets.  My real concern is determining the actual minimums for the application prior to installation.  I have been poking around in 8.2, but have not as yet found a way to determine this.  We will likely have to acquire a different machine, and I need to ensure that it will run the application.
    Thanks

  • RRCPT does not add the URL (update sites) when run the AUT.

    Hello,
    I would like to ask two question:
    1 ) Why RRCPT not add the update sites url of my Eclipse when running it through RRCPT.
    I have checked it by running the APP without RRCPT and the urls are ok (by default), but not when running it with RRCPT.
    Is it a bug or am I missing something? I have attached a screenshot of both situations in order to clarify.
    2) Is there a problem when a make a test which restart the AUT? Basically, when I run this kind of test, the AUT does work similar as the first run.
    Regards,
    Agustin Celentano

    Hi Ulyana,
    2) When I restart the AUT through a test, I get this exception.
    Failed to close report node
    java.lang.NullPointerException
    at restart-studio (/studio-q7-sanity/recorder.test:1)
    Connection is not Available
    Stack Trace: Connection is not Available
    java.io.EOFException
    at java.io.DataInputStream.readByte(DataInputStream.java:267)
    at org.eclipse.rcptt.ecl.internal.core.EMFStreamPipe.take(EMFStreamPipe.java:91)
    at org.eclipse.rcptt.ecl.client.tcp.EclTcpSession.writeOutput(EclTcpSession.java:199)
    at org.eclipse.rcptt.ecl.client.tcp.EclTcpSession.access$6(EclTcpSession.java:196)
    at org.eclipse.rcptt.ecl.client.tcp.EclTcpSession$1.run(EclTcpSession.java:96)
    at java.lang.Thread.run(Thread.java:745)
    It seems to lose the AUT connection
    Regards,
    Agustin Celentano

  • How do you plot multiple curves on the same graph when using a while loop?

    I am writing a program that will plot the IV Output chracterisitcs curves for a MOSFET transistor. I have two sweep variables Vg and Vd. For each Vg valve selected, Vd is swept from its start to stop voltage creating a graph for that Vg valve. Both of the sweeps are done using while loops. Ideally I would like to display all of the Vg plots on the same graph while having the ability to do real-time graphing. Can anyone help me figure this problem out? I have attached my program. Thanks!!
    Tammy
    Attachments:
    outputfin2.vi ‏165 KB

    Hi Tammy & Tica T,
    As far as I see it - this thread is a very bad version of already existing bad version......
    http://forums.ni.com/ni/board/message?board.id=170&message.id=127857
    I expected, that an Applications Engineer from NI knows something about  a Transistor and how an Output characteristic looks like !!  Take a look to a typical Transistor Datasheet ( e.g. n-channel MOSFET) - you will see, that there is no relation of ID vs Time like in your example ( values vs time )  but  IDrain vs VDrain at different VGate's ( no relation to Mr. Bill Gates ).
    Find attached a vi, that in general does what you need - drawing of  curves vs x-axis (XY-graph in use)  - in test_sweep.zip.  And that you geet an impression, how it might be done ...... dynamic Output characteristic of a Transistor with Standard Equipment of a Lab ( Scope + Generator + Power Supply ) find in addition a Frontpanel - picture. One of the interesting points here is - the self-heating effect; visible on ch3 of scope - 5µs Pulse is already a very long time...... This measurement was done in order to compare with our own Transistors......... 
    Hope this helps a little bit to understand, what we are talking about.
    Regards
    Werner
    Attachments:
    test_sweep.zip ‏358 KB
    dynamic Transistor char.png ‏65 KB

  • How to generate a report with more than one elements in the same graph??

    I need to generate a custom report in OEM GC 10g featuring volume total capacity information and volume free capacity information both in the same graph on (Y-axis) and time on the (X-axis). I could generate only the total volume capacity graph individually, but how can the combined graph and the graph for free capacity be generated...

    Is it your values in parameter NO separated by coma? And is it
    parameter in where clause?
    Do you want something like :
    from table
    where s_no in (NO) ?
    If is answer "yes" you can create lexical parameter in report.
    You can write in report sowething like:
    select a.field1, a.field2,.....
    from table a
    &COND /* this is if is condition only one line after "from".
    if you have more lien after where then you will put this &COND
    in line where you want to have your multivalue.
    Then in your trigger in form you should write:
    sc_no := 'where a.sc_no in ('||:searchlist.c_no||')';
    ADD_PARAMETER(PL_ID, 'pamametername', TEXT_PARAMETER, sc_no);
    /* again this is if you have only one line with WHERE ili
    conditions */
    or you will write:
    sc_no := 'and a.sc_no in ('||:searchlist.c_no||')';
    ADD_PARAMETER(PL_ID, 'pamametername', TEXT_PARAMETER, sc_no);
    It will substitute line in which is your conditions with
    multivalue.

  • How can I draw two differenct plots at the same graph?

    [I am beginner]
    I have two different set of data which have differenct x-axis values. How can I draw two data at the same plot?
    For example, one data set is
    x y
    1 3.5
    3 2.3
    5 1.3
    8 3.2
    The other
    1 2.3
    2.5 5.4
    4 2.5
    If I use m_graph.plotXvsY two times. But it draw only one graph at the same time.
    Please let me know. Thank you in advance.

    Do you really need the two sets of data on the same plot or is what you really care about is that the two sets of data are in the same graph? If it's the former, then there's not much that you can do since a plot can only contain one set of data. You can append to an existing set of data by calling the corresponding Chart (for example, ChartXvsY) method, but the result is that the plot's data will appear continuous.
    If it's the latter, the way to do this is to add multiple plots to the graph and plot each set of data in a separate plot. For example, go to the Plots tab in the graph's property pages, add another plot, then here's some sample code that demonstrates how to plot the sets of data from your example above:
    double xData1[] = { 1, 3, 5, 8 };
    double yData1[] = { 3.5, 2.3, 1.3, 3.2 };
    CNiReal64Vector xDataSet1(4, xData1), yDataSet1(4, yData1);
    m_graph.Plots.Item(1).PlotXvsY(xDataSet1, yDataSet1);
    double xData2[] = { 1, 2.5, 4 };
    double yData2[] = { 2.3, 5.4, 2.5 };
    CNiReal64Vector xDataSet2(3, xData2), yDataSet2(3, yData2);
    m_graph.Plots.Item(2).PlotXvsY(xDataSet2, yDataSet2);
    Hope this helps.
    - Elton

  • Is it normal for a waveform graph to truncate arrays of values that are longer than others when displaying multiple waveforms on the same graph?

    I am reading back values of several waveforms that were saved to disk using the write to spreadsheet vi. Some of the data sets are longer than others eg. 35 seconds vs 45 seconds. All have the same sample rate.
    See the code segment below. If I select the larger files first then all the data will show. If I select a smaller file first the larger ones will be truncated to the size of the small file. I am using LV 7.0.
    Attachments:
    codesnippet.vi ‏41 KB

    I needed to make some grammatical/ nomelclature changes, But, Could not edit the previous post.
    so posting again
    "Thats because you are inserting into an array of a predefined size.
    For ex,
    When you try inseting a 1D array 'A' of 50 elements as row 1 of a  2 D array of 40 elements(in row 0 ), only only the first 40 elements will get insetred into 2 D array. You lose the last 10 elements of array 'A'
    To avoid this, I suggest you use XY graph( of course you have to create an x axis with the index of each element in the inserted array and plot on xy graph).
    Any doubts, do get back"
    regards
    Dev

  • How to plot 2 signal in the same graph but different frequency?

    Hi!!
    I have 2 sensor, motion and EMG.. I want to plot both of the signal (after processing) in the graph (real-time)..
    The frequency of motion sensor is 128 Hz and for EMG sensor 800 Hz..
    When I'm trying to plot (motion and emg) in the same graph, the signal from EMG (red line) not smoothly and very different with motion sensor..
    I'm trying to resample that signla but, it's not working..
    Can you help me?
    thank youu
    Attachments:
    graph.png ‏11 KB

    Akardo14 
    Yes, I trying to use merge signal before...  but signal from emg signal didn't appear in the graph (using merge signal figure)..
    I'm showing motion and emg signal in different graph, it's work..
    But I need to show both of signal in one graph to compare between motion and emg signals (fig1)
    Attachments:
    using merge signal.png ‏19 KB
    fig1.png ‏9 KB

  • Several curves with several scales on the same graph

    Hello,
    I am currently working on a project which include a data acquisition VI. I would like to display two curves with two different scales (0 to 1 and 0 to 200) on the same graph.
    I have been trying nearly all the options in the properties menu, I can not find anything that corresponds to what I want.
    Do you know how to do such a thing?
    Thanks in advance,
    Gabriel.
    Solved!
    Go to Solution.

    Right click on the existing scale and click Duplicate Scale.
    EDIT:  I should add that you'll need to set ActYScl through a property node to switch between the difference scales if you want to run operations on them.
    --Using LV8.2, 8.6, 2009, 2012--

  • Shapes on the same graph

    im trying to make a program that when a boolean switch is clicked it draws a certain shape on a graph and then when i turn another boolean switch on it draws another shape onto the same graph but will remove the other shape when boolean is swtiched off. any dieas on how i would do that?
    (if that makes any sense)
    Solved!
    Go to Solution.

    Here's what i have so far. Im wanting to make it so there are three boolean swicthes for each shape (circle,triangle and rectangle) so that when they are switched on, they draw the shape onto a graph (but the same one not 3 seperate ones). Im not sure on how i would link them all to one graph and how to put them into a case structure. Everytime i try to put them into a case structure it just causes other parts on the different parts fo code to delete for some reason. 
    Hope this makes sense on what im trying to do.
    Any help would be appretiated
    ps you maye need to scroll along to the right on the block diagram to find the code for the other shapes
    Attachments:
    Circle.vi ‏23 KB

  • Plotting two continuous analog intpus on the same graph.

    Hey,im currently using visual basic 6.0 and Measurement Stdio and want to read in two analog input signals at the same time and plot them on the same graph.Is there any sample code available to look at to carry this out?Or any help on how to go abouts this.
    Cheers

    Hi Dazza,
    The link below takes you to a page which should provide you with what you need. Let me know if you need further help.
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E03B56A4E034080020E74861&p_node=DZ52130&p_source=External
    Best regards,
    Peter H.
    Applications Engineer.
    NIUK.

  • Two indicators to the same graph.

    How to connect the same indicators to the same graph if you have it in different tabs?
    Solved!
    Go to Solution.

    Sounds like you want to use the same indicator in two different cases. This is not really possible, unless you want to use a local variable - which I would not recommend. If you want to wire something to the same indicator from different cases, you should place the indicator outside the case structure, thus making a tunnel through the case structure.
    Also, it sounds like you want the same graph on two different tabs in a tab control. Why use different tabs if you want the same information? Maybe you could redesign your GUI?
    But again, as everyone else is saying, share your code and it will be a lot easier for us to help :-)
    Best Regards
    Alex E. Petersen
    Certified LabVIEW Developer (CLD)
    Application Engineer
    Image House PantoInspect

  • How to display or generate PDF417 barcode dynamically in PDF form? I am using Acrobat XI Professional and there is a Bar Code Field in the same through which I generated the same. But I want to generate the same dynamically.

    How to display or generate PDF417 barcode dynamically in PDF form? I am using Acrobat XI Professional and there is a Bar Code Field in the same through which I generated the same. But I want to generate the same dynamically.

    What do you mean by dynamically? When yo set up a 2D bar code field you specify which field name/value pairs you want to include, along with other parameters. But be aware that they won't work with Reader unless you Reader-enable the document with LiveCycle Reader Extensions and include the bar code usage right. It will work with Acrobat Standard/Pro.

  • Need to graph one DAQ output vs. a second DAQ output on the same graph.

    I am having trouble graphing two DAQ assistant outputs on the same graph.  One output vs. the second output.

    Hi there,
    You have to convert the DDT signal that comes from the DAQ Assistant to get or data in two arrays.
    Then bundle them into a cluster and use a XY Graph.
    See attached example:
    Hope this helps,
    Paulo
    Attachments:
    XYGraph.vi ‏101 KB

  • Open 2 constant files on the same graph....

    Hi Guys,
    I have a litle problem, since i didnt get show the 2 files on the same graph, only show the lastest file loaded.
    Any help?
    I attached the files.
    Regars, Fonsi.
    Attachments:
    files.zip ‏25 KB

    You've done a few things wrong. Instead of reading the files with each iteration of the loop, read them once outside. You should just wire the array of paths to the for loop with autoindexing turned on. Then you eliminate the array size and wiring that to the iteration terminal. You don't have autoindexing turned on ofr the output of the for loop so all you get out is the result from the last read.
    Attachments:
    graph_egt_mod.vi ‏36 KB

Maybe you are looking for

  • Unable to Run on server..

    I am a tertiary student doing a project using Jdeveloper 11g. I just created a login.jspx and wants to run to see if my application works. Everytime i run the login.jspx, deployment fails. starting weblogic with Java version: java version "1.6.0_18"

  • T540p - DVD/CD optical drive not found

    Hi, I am trying to access my optical drive. It opens, I can insert a CD, then it obviously does something but is gets quiet after a minute or so. There  is no entry in the device manager list and I can't see it in the file explorer either. Previously

  • T61 has a problem with sleep mode

    When I turned on stand by mode for my T61, after about 3 second, my computrer automaticed restart. Help me ! Thank !

  • Struggling with collection Query

    Hi guys, I'm struggling to wrap my head around the queries for collection memberships. I've got quite a few computer collections attached to AD group memberships that I then use to deploy applications to. That way the helpdesk guys just put a PC in t

  • How to import photos from multiple iphoto libraries to iPad

    How do I import photos from multiple iPhoto libraries from my iMac to the new iPad? I have 4 different iPhoto Libraries on my iMac. I can import photos from  iPhoto library 1,  to the iPad, but when I import photos from iPhoto Library 2, created on m