Two waveforms in one xy graph

Hello,
I need to put two waveforms in one xy graph. Value of one waveform should be in x axis, and second on y axis. I have no idea how can I do that. Everything I have succeeded is xy graph with both values on y axis and time on y.
Thanks for Your help!

Check xy graph.vi example that ships with labview
Beginner? Try LabVIEW Basics
Sharing bits of code? Try Snippets or LAVA Code Capture Tool
Have you tried Quick Drop?, Visit QD Community.

Similar Messages

  • How to display two waveforms in one waveform chart?

    hellow!anyone can tell me how to display two waveform together in one waveform chart? thanks!

    Hello,
    An easy way to tell how to make multi-plot charts and graphs is to hold your mouse over the chart/graph terminal on the block diagram and make sure Context Help (Help >> Show Context Help) is enabled. This screen will tell you how to connect the indicator for a multiple-plot display.
    You might want to take a look at my attached screenshots of a working multi-plot chart.
    Hope this helps!
    Liz F
    National Instruments
    Attachments:
    Multi-plot_chart.bmp ‏902 KB

  • Hao to display two lines in one Graph

    Hi, I want to display two lines in one graph in different color , what should I do? Thanks.

    Hello Carlos,
    the help window for a waveform graph/chart only mentions "single plot
    with waveform datatype". To get more plots on one graph you have to
    build an 2D-array  of  points. Just look at the help window!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Combine two channels on one graph

    I need to add a second channel, coming from same instrument, to the existing acq&graph Voltage VI (see attachment). I want to get two voltage curves on the same amplitude vs time graph. I configured the second channel and created a task, which also works on a that single channelled VI. Thanks a lot in advance
    Vitaliy
    Attachments:
    Acq&Graph Voltage-Int Clk.vi ‏57 KB

    I have two tasks for each channel. So Im trying to feed those two tasks through one loop and onto a graph. I do have a task named "ai cont multi" in NI-DAQmx Base Config Unility where I can choose two channels, but when I input this task into my VI, it doesn't recognize the resource which is weird cuz It does recognizes single channeled tasks that I created. I think Im missing something fundamental on the block diagram...

  • How to stack waveform in one graph

    I am trying to stack 107 waveforms in one graph. I need to plot these to its depth (Y Axis is depth). That means the first wave will be plot at Y = 0, the next waveform will be plotted at Y = 0.1 (not 1). The third waveform will be plotted at Y = 0.2 (not 2). How do I do that?

    Do you mean a simple 2D graph? Try this, its a striaght mod of what you get in the Measurement Studio booklet.
    CNiReal64Vector rvecWave;
    CNiGraph m_graph;
    // Creates a sine wave 100 pts long, amplitude 0.09.
    CNiMath:ineWave(rvecWave, 100, 0.09)
    m_graph.Plots.Item(1).PlotY(rvecWave); // Item(1) exists by default.
    // Now add all the other plots.
    for (int i = 2; i < 108; i++)
      m_graph.Plots.Add(); // Adds a new plot.
      m_wave.Scale(1, 0.1); // Adds the offset.
      m_graph.Plots.Item(i).PlotY(m_wave); // Plots the wave.
    -Mike

  • How can I draw two matrixes in one graph???

    I have to draw two matrixes in one graph.
    Matrix size is 10 X 100, 10 X 100.
    Help me!
    Have a good day!

    You can do this by adding multiple plots to the graph's plots collection and then plotting each matrix on its own plot. The easiest way to add additinal plots to a graph's plots collection is to right-click on the graph in the dialog editor, click on Properties, click on the Plots tab, and then click the Add button to add additional plots.
    Now if you have a member variable for the graph in your dialog class (let's call it m_graph for this example), you could do this:
    // Plot the first matrix
    m_graph.Plots.Item(1).PlotXY(/* Your first 10x100 matrix data */);
    // Plot the second matrix on a different plot, but same graph
    m_graph.Plots.Item(2).PlotXY(/* Your second 10x100 matrix data */);
    - Elton

  • Display Data on waveform chart or XY graph over a long period of time

    Display Data on waveform chart or XY graph over a long period of time
    Can anyone help?
    I am acquiring data from an Ni DAQ card with the following parameters - sample rate = 12800, number of samples = 4096. I want to extract order information so as to track changes in the amplitudes of certain frequency harmonics. So I use the sound and vibration toolkit to extract this information as shown in the attached Vi.  I will like to plot the resulting amplitudes against real-time starting at the time the Vi was run.  I really want the display to show these changes over long periods (eg. days, months and even years).
    Problem.
    I have tried to plot the Y component of the resulting magnitude for a given order on a waveform chart. My choice of the waveform chart is because I also want to display  alarm limits (using the mask and limit vi) (I can't have these lines displayed on an XY graph plot).  I tried adjusting the scale offset using the property node and setting the offset to current time. However, the display on the X-axis can only show a span of  2 minutes as will be seen when you run the attached vi. I want the time display on the x-axis to be over a period of  days, months  and even years.  Is there a way to set the maximum scale on the x-axis to be say a year or so in future.
    I really want the display to be like the one in in the second attachment.
    Attached is a sample VI created using an Ni USB 9234 DAQ card. Any card will do but I am only getting the signal from one channel for this example
    I will appreciate any help that can be given to me.
    Thanks
    Attachments:
    Real-Time Graph Display.vi ‏170 KB
    Sampe screen1.doc ‏37 KB

    Long term testing can be tricky- and we'l get into that later.  Lets start with the basics that you have wrong.
    The vi as you have constructed it has only one memory element, the chart history length (default is 1024.)
    You can change the number of points the Chart will remember by Right-clicking the chart an select Chart History Length from the menu.
    But for a long term test - and one where you want to REMEMBER the first value you need a memeory element that is independant of the application.  Your PC WILL loose power or need to be rebooted eventually.  Heck it might even need to be replaced! you really need to store your data in a file. Preferablly in a file that is backed-up on a regular basis so you don't lose every point of data if the PC dies.  It realy hurts when you have to restart a 2yr test because you've lost the 18months of data you collected.
    For an application like this I would seperate my "collection" and "Evaluation" operations. 
    Have one vi that takes the reading and writes it to a file at a configurable rate  You may want 1reading  per minute for seveal days then 1 per hour for a few weeks- then maybe only once or twice a week for the next couple of years since you are looking for LONG TERM stability.  having too much data to evaluate can take a lot of digging to find the few things that interest you (but always take more that you think you need)
    Have another utility that COPIES the files, reads them and displays the data you are interested in that day.  The data you want to look at won't change over time HOWEVER, you WILL want to analize it in different ways depending on what the data trends look like.  Having seperate routines for collection and display allows you to update the display style and analisys without even stopping the collection vi (much less editing the vi)
    Jeff

  • How to queue two waveforms in dynamic data

    I am collecting two waveforms for voltage data via DAQ assistant. The output is dynamic data which I can view as two waveforms via a chart. 
    I am sending the retrived data to a queue for storage until a seperate loop can flush the queue and write the data to a measurement file via the Write to Measurement File vi.
    When I retrive my measurement file only one of the two waveforms have been stored.
    I have troubleshot the issue and have determined the correct data is going into the queue

    I'd recommend posting some code.  Are you passing in the two waveforms to the queue as an array of waveforms, or a cluster of waveforms?  Without seeing the code, it is just a guess as to what is going on.

  • How do i run two queries in one worksheet?

    Hi
    I am new to Disco and am finding some things easy to fathom and others not so.
    I have a table with fields
    callref
    logdate
    closedate
    I want to be able count the number of calls logged each month/year and the number of calls closed.
    So, I want to do 2 counts, each count applying a slightly different condition. I would then end up with data along the lines of:
    Month, Number Logged, Number Closed
    which I could then turn into a graph.
    I am assuming there must be an obvious way ...
    Sapphie
    Edited by: user12160673 on Feb 8, 2010 8:49 AM

    Hi Lee
    There's a couple of ways of doing this. I think the simplest would be create two calculations, one for Number Logged and one for Number Closed.
    For Number Logged presumably this is just the count of all rows returned in the worksheet? You can use COUNT(ROWNUM) for that calculation.
    For the Number Closed you only want to count those that have a closedate - yes? If so, this will work:
    SUM(CASE WHEN closedate is NOT NULL THEN 1 ELSE 0)
    Another way to do this, would be to create two analytic calculations, one for each count. The syntax for an analytic count is as follows:
    COUNT(item) OVER (filters)
    The item will be the thing you are counting. The filters can be left empty, in which case the count will be determined by all rows in the worksheet. If you want the count to be only on a subset of the rows then you need to provide one or more filters. Typical filters are page items and group sorted items.
    An example of a count over the whole query is:
    COUNT(callref) OVER ()
    Best wishes
    Michael

  • When displaying multiple curves on one 2d graph in reports how do I force one curve to be in the foreground?

    When displaying multiple curves on one 2d graph in reports how do I force one curve to be in the foreground? I have two signals and I want to show one overlayed on top of the other. Right now Diadem will only graph it the other way around. I have tried deleting the curves and re-adding them in differnt orders, changin the order they are in the curve list, changing their order inthe data portal, right clicking on the curve and selecting "move to forground" (this only moves the entire 2-d graph object to the foreground). Im using Diadem 12.0 Basic.
    Solved!
    Go to Solution.

    Hello Joe,
    I figured out what causes your curves to draw in the wrong "order".
    You are using two Y-axes, and DIAdem always draws the data for Y1 before Y2, no matter what the order of the curves is in the "Curve and Axis Definition" dialog.
    I am attaching your layout with a small modification, I changed the Y1 and Y2 axis order (I swapped which Y-axis the data is displayed on), and I get the following result:
    Once I looked at your layout it became clear why the order of the curves didn't reflect the order in which the curves were drawn. I didn't know this - so I just learned something new here as well.
    I hope this answers your question, feel free to ask if there is anything else I can help you with.
          Otmar
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."
    Attachments:
    Modified Report Layout.TDR ‏146 KB

  • How do you add two separate treadlines to a graph

    I created a scatter plot for my data. I have two different sets of data that I want to plot on the same graph. It has to do with the gain of water weight depending on the concentration of either sucrose or salt. I graphed both sets of data on the same graph but i need two different treadlines to see the differences in slope. Is there a way to get two different treadlines on this graph with the data i select or is there a way to superimpose graphs on each other so they are one?

    Emily,
    You have to have the proper Table layout for this to work.
    Numbers requires that the two different series be in different pairs of columns.
    For instance, Series 1 could be: x-values in column A and y-values in column B, and Series 2 could be: x-values in column C and y-values in column D.
    Otherwise, Numbers doesn't know how to keep the two series separate.
    You build such a Chart by starting with only Series 1, then select Series 2 and drag it to the chart.
    Jerry
    Message was edited by: Jerrold Green1

  • Scaling multiple waveforms on one chart

    I would like to put waveforms with different timebases (different x-scaling) on one waveform chart. Is there some kind of algorithm I can write so it takes the bigger x-scaling, or some way to do it so everything comes out nice?

    The trick to do this is to put two waveforms on top of each other. The top one will have to be made mostly transparent and the placement will have to be very percise but when you are done you can plot on what appears to be one chart plots of different timebases.

  • Comparing two waveforms

    Hi
    I am having a 11801B digital sampling oscilloscope and I need to compare the waveforms of a DUT for TDR test conducted. For a good device, the waveform should be stored in pc and must be able to use it whenever needed to compare with the failure device which is obtained from the oscilloscope to calculate the time difference. So I need both the waveforms in a single graph for comparision. I tried with "save image in BMP format" for the good device waveform and "plot image"  to recall the waveform for comparing with the waveform of failure device, but that doesn't worked out. I'm fairly new to labview. Could someone please suggest me how to do this. Thankyou in advance
    Best Regards
    Pratheek
    Solved!
    Go to Solution.

    Don't worry about saving the images -- for this part of the process at least.
    Save the array of datapoints for the good example to disk however you want too save it, and when a bad one occurs plot the array coming from the bad one on the same graph as the good exemplar.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Save digitizer and DIO waveforms into one spreadsheet file

    I am using attached mixedsignalscopeusingtclk.vi for data acquisition and would like to acquire 4-channel of data. My PXI-1042 system has PXI-5122 and PXI-6552, and I am using 2 channels of digitizer and 2 channels of digital I/O. I am using Labview 2010 SP1. The VI generated 1-D array of cluster for analog waveform and 1-D array of digital waveform. How do I save both waveforms to one spreadsheet file?
    Solved!
    Go to Solution.
    Attachments:
    mixedsignalscopeusingtclk.vi ‏258 KB

    Hi,
    You can use a Write to Measurement File express VI. Note that this is the easiest way however not the most efficient way to write to a file.
    Since you have the fetch VIs inside for loops, your output is a 1D array of waveforms. You will need to obtain the waveform element and convert it into a type that the express VI can read. If you unbundle the waveform and grab only the data and connect it straight to the express VI, LabVIEW will automatically place a "Convert to Dynamic Data" block in line to make it compatible. Same applies when you connect the boolean array to the Signals input of the express VI. And if you connect more than one signal to this input, LabVIEW will automatically place a "Merge Signals" block.
    If you reproduce the below code, you should be able to write the two channels to the same measurement file. If you have more than one channel of each type, you can grab multiple elements using the same Index Array block and take them through the same process shown below.
    Hope this helps.
    Tarek B
    Applications Engineer
    National Instruments

  • If you registrate one Apple ID for each iPhone/iPad, you'll get 5GB on iCloud for each Apple ID, right? I have two iPhones and one iPad  with the same Apple ID, why can't I get 5 GB fo each of them?

    If you registrate one Apple ID for each iPhone/iPad, you'll get 5GB on iCloud for each Apple ID, right? I have two iPhones and one iPad  with the same Apple ID, why can't I get 5 GB fo each of them?

    Actually, everyone missed one point, when a device is priced, the cost of icloud storage space for that device is also included in it that is why they are able to give you 5gb each for each user ID, in nutshell there is nothing free coming with apple device purchase, it is paid for.  What they are trying by giving only 5gb per user ID irrespective of the number of devices used is pure broadlight looting, they take money from you when you buy each device and give you nothing, This is a case of goods and services bought but not fully deliverd ie apple can be suied for discreminatory treatment towards it's users. I wonder why no one tried this yet in America where everyone sue everyone for petty things..... there is no one to take up this issue? . if tim got any love for the guys who shell out money for the devices his company makes, he should be implimenting this as priority before someone wake up from sleep and sue him.

Maybe you are looking for

  • Snow Leopard fails to install - Tech Support and Genius Bar can't fix it

    I am having an exceedingly difficult time installing Snow Leopard. I have tried everything I can think of and tech support AND the Genius Bar have failed me so far. The Details: Every time I install SL it starts off well but sometime between 18 minut

  • How do I record lossless audio?

    Thinking of getting a Pono player and will need to burn audio using ALAC/FLAC. Have no idea what all this is. Any suggestions on where to go for information?

  • Learning Drag and Drop

    Hello there, I wanted to create a drag and drop effect but i don't know how to do it, can anyone help? Although i manage to get some examples, but it doesn't help much because i don't understand what does a particular method means. Can anyone explain

  • CFGFWK-64072 - One of the following needs to be selected

    Installing OAM returns this error. Problem is, neither component exists to select and the installation will not proceed. The goal is to install components necessary to enable SSO with Forms/Reports 11g, and OAM is one of them. CFGFWK-64072: One of th

  • Using the ReportDisplay For CR 2008 in VS2008 for slow runing queries.

    Hi, I am using the ReportDisplay viewer in VS2008 winforms  which sits on a form which is shown using this.ShowDialog() Unless the report is really quick (which in general Crystal 2008 does not seem to be) , the form is shown, the mousepointer is aut