Multiple plots on Y-axis

I have multiple plots and how can I plot them with different depth on the Y-axis, Thks

I followed the example and I could get the plots on different Y scales. However I always get the same plot stacked on the Y scale. See my source
ReadMultiSampleAsync(samplesPerChannel, m_data);
m_graphBeat.Plots.Item(
"Plot-1").PlotY(CNiReal64Vector (m_data));
m_data.Scale(1,1.0);
m_graphBeat.Plots.Item(
"Plot-2").PlotY(CNiReal64Vector (m_data));
m_data.Scale(1,1.0);
m_graphBeat.Plots.Item(
"Plot-3").PlotY(CNiReal64Vector (m_data));
Please help..

Similar Messages

  • Multiple Plots & Scales On 1 Graph

    Hi
    In one waveform graph how we can plot two data with different y-axis i.e.. Multiple plots in one graph
    thanks

    Hi Husssey,
    "right-click" is your friend!
    - Right-click the Y axis and select "duplicate axis" to create an additional Y axis. Now right-click that new axis and select "swap side" for your convenience...
    - Show the plot properties. Right-click the plot and select your "Y axis" to attach the plot to...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How do I update a waveform chart with multiple plots one point at a time?

    Hi,
    I am updating multiple plots one point at a time.  That is, every time I update the chart I have a value for one of the plots.  If I put in a cluster with NaN for each of the charts except the one with the data I can only get individual points on the chart.  I would rather have them connected.
    Any clues?  The only thing I can think of is to delay the update and do interpolation between samples - too complicated for me.
    Thanks

    Are the points within a given plot equally spaced in time?  If so, perhaps you need to maintain your own history of the data and used a waveform graph rewriting the history data to the graph each time.  If the points are unequally spaced, then you will need to do it as an XY graph.

  • Constraining the algorithm for assignment of multiple plot colors

    I would like to know if there is some way to modify the algorithm that
    LabVIEW uses to automatically assign different colors when a graph
    displays multiple plots. In particular, given the default background
    color (black), it appears that black is never used for a plot color.
    However, if I programmatically change the background color to white,
    for example, I would like the plot color assignment to not use white. I
    would also like to know if it is possible to constrain the plot color
    assignment to a single color a priori, without having to go back and
    explicitly assign the colors of each plot via the property node in a
    loop.
    Thanks.
    Lyle

    I think you will have to create your own plot color assignment function to do this.
    You can set the color of each plot by using the active plot property (index of the plot you want to change) and then set the plot color property (just expand one and the same property ndoe to set both at the same time).
    You can then make that function check the background color and choose a color table that fits. If this is in a built application you would run this function when a color change is detected, if it's in the development environment you need this feature make the function ask for a VI and plot name (so that it can get a reference to the plot) and put it in your projects folder. That way whenever you need to set the plot colors differently you just select this function from the Tools menu of LabVIEW. An easier alternative though would be to just create the different graphs you need (with the colors for all plots already defined correctly for that background etc.) and save them as custom indicators...
    MTO

  • Multiple Plots In Seperate Windows

    Attached I have created a VI that launches as selected waveforms to multiple plots all on seperate windows. The way I have wrote it causes the windows to lose and gain focus as expected. Does anyone know how to stop the focus from constantly changing? Maybe even a smarter way todo this, or example of it? I was thinking maybe having LabVIEW access some windows APIs that would allow me to control focus. If that is even possible.
    Attachments:
    LaunchPlotProtoType.zip ‏297 KB

    I don't have time to figure out xeactly what you're doing, but here's some ideas from a previous project I did - maybe they'll fit:
    The project had one main window, and six sub-windows.
    The main window had a button for each sub-window, to call it up.
    Each sub window ran on its own, offering a different view on live data being taken by the main.
    Each window operated as expected - it stays in front if you click it - you move them around like any other windows.
    You couldn't click the CLOSE box, but each window had its own DONE button which closed it.
    Here's how it worked:
    1... A "Window Manager" vi was initialized (from the main) to generate six OCCURRENCEs and store them in a shift reg.
    2... A "Window Launcher" vi is started. It first calls the WINDOW MANAGER to obtain the OCCURRENCE refnums, then launches six parallel WHILE loops.
    3... Each WHILE loop has a WAIT ON OCCURRENCE function. It waits a specific time (500 mSec in my case).
    4... If the WAIT ON OCCURRENCE timed out, we simply check the state of a global PROGRAM RUNNING variable, and loop if it's true.
    5... If the WAIT ON OCCURRENCE did NOT time out, then it was triggered, and we call our particular sub-window (there's one WHILE loop for each window). The sub-windows are set to show front panel when opened, and close when done.
    6... Each sub-window monitors the PROGRAM RUNNING global and stops if that is false.
    7... Periodically, the six main buttons are fed to the "window manager"'s CHECK function. This checks each button, and if TRUE, calls "OPEN or MOVE to FRONT" VI with the path to the associated sub-window, and the occurrence for the associated window.
    8... The OPEN or MOVE to FRONT vi opens a reference to the associated VI, and checks the FP Open property to see if it's already open. If it's already open, the FP.IsFrontmost property is set TRUE to bring it to the front (one might click on the main button while this window is hidden - this will bring it forward).
    9... If the window is NOT already open, the associated occurrence is fired. The Window Launcher vi will then start it up.
    The windows do whatever work they need within themselves - it's not like the main is doing the plotting and sending data to the windows. It's more like the main is putting data into a common pot and whichever sub-windows are open (running) go and get it.
    Hope that helps.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Turn off a single plot of a multiple plot waveform graph

    I have a multiple plot waveform graph (4 plots). I want to turn off one of the plots, say plot 2. Is this posible from the graphs property node? The property node seems to only give a reference to plot 0. I am using labview 7.
    Cheers,
    Wayne

    I think you can use "active plot" together with "plot.visible"
    property node to control which one you'd like to display. By default,
    the property node refers to plot 0, but you can change to plot 1 or
    other plots by changing active plot property node. You can search
    "Plot" in LabVIEW Help if you'd like to know details.
    Good luck,
    Jian
    On 18 Feb 2004 03:28:49 GMT, [email protected] (Computerman74)
    wrote:
    >>
    >>I have a multiple plot waveform graph (4 plots). I want to turn off
    >>one of the plots, say plot 2. Is this posible from the graphs
    >>property node? The property node seems to only give a reference to
    >>plot 0. I am using labview 7.
    >>Cheers,
    >>Wayne
    >>
    >>
    >>
    >>
    >>
    >>
    >
    >I would love to know if this is possible. I have been trying to figure i
    t out
    >myself.
    >There is a way to turn a single array off and that is what I am doing for now
    >untill this is possible. The plot is still there but reads zero when tunred
    >off. It would be cool to have the abillty to turn off a single plot.
    >I have tryed all the property nodes with no luck. The answer may be in the
    >array size but I can't seem to control that either.
    >For now you can use wire all 4 channels using the comparison select. Use a
    >constant of 0 And wire up a swtich. When the input is false the output is zero
    >in effect making the plot inactive but it still there.

  • Combining multiple plot data into a single graph.

    This is my current data structure:
    1D array of...  (contains 6 plots, each with their own x and y arrays)
    A cluster of two elements
    1D array of I32
    1D array of DBL
    A cluster of two elements
    2D array of DBL  (y points for multiple plots)
    1D array of I32  (x points for the multiple plots)
    I need to combine these into something suitable for throwing at an XY-Graph.  This operation will need to be done three times (for three different graphs), where only the 2D array of DBL is different for each graph (all three 2D arrays are located in the same cluster along with the shared 1D array).  What is the best way of doing this?
    The 1x6 array of clusters contains plots 0-5 for each graph.  Is there a way to hide these plots from the graph's legend?
    Never say "Oops." Always say "Ah, interesting!"

    J.Mamakos wrote:
    I need to combine these into something suitable for throwing at an XY-Graph.  This operation will need to be done three times (for three different graphs), where only the 2D array of DBL is different for each graph (all three 2D arrays are located in the same cluster along with the shared 1D array).  What is the best way of doing this?
    Sorry - this was actually a bit wrong/incomplete.
    Graph1 includes one 2D array of DBL against the 1D array of I32.
    Graph2 includes elements 2-3 of the 1x6 array, and also one 2D array of DBL against the 1D array of I32.
    Graph3 includes elements 4-5 of the 1x6 array, and also one 2D array of DBL against the 1D array of I32.
    This is how I'm doing it at the moment, but am I missing a trick here?  Is there a better way?
    As for my question about hiding any plots (on the legend) that came from the 1x6 array, is this even posible?
    Either that, or is it possible to hide a graph whilst leaving its legend showing?
    Or can one show/hide a graph's label in run-time?
    Never say "Oops." Always say "Ah, interesting!"

  • How to add multiple plots programtic​ally to XY graph.

    Hello,
         I am new to Labview.My code is reading Voltage value from no. of Power supply & storing in 1D-array of string. No. of power supply will depend upon user selection. Now I want to plot all these Voltage's value to XY graph,in which X is time stamp at which  value is read & Y  is Voltage value.
            Please suggest me a solution to add multiple plots programtically according to the no of power supply, so user can have a one XY Graph with multiple plots of  Voltage's value of each Power supply.

    Better hide from the front panel. In my projects user used to had 6 plot at the maximum. Before plotting I used to ask how many parameter you want to plot. All the time I used to plot 6 plots only but visible according to parameter selection done by user.
    Here is what I used to do
    Kudos are always welcome if you got solution to some extent.
    I need my difficulties because they are necessary to enjoy my success.
    --Ranjeet
    Attachments:
    Plot.jpg ‏215 KB

  • How to Send Multiple Plot XY Graph from LabVIEW to Microsoft Excel

    The link below describes exactly what I would like to do, however the link to the solution/work around does not work.
    Has anyone got an alternative solution?
    http://digital.ni.com/public.nsf/allkb/CFD30D5E9C01AB5386256CFB0082AF3E

    Please check the link again as it seems to be working fine now.
    How to Send Multiple Plot XY Graphs from LabVIEW to Microsoft Excel:
    http://digital.ni.com/public.nsf/allkb/CFD30D5E9C01AB5386256CFB0082AF3E
    The standard Excel Insert Graph.vi cannot insert multiple XY Graphs to Microsoft Excel, so you will need to use the Report Generation Toolkit for Microsoft Office.  You will find a link to an example program at the bottom of the page.  I have also attached it below.
    Attachments:
    example.zip ‏35 KB

  • Multiple plots in one graph (LabVIEW to Excel)

    Hi All-
    Reference this initial discussion: https://forums.ni.com/t5/LabVIEW/Place-Multiple-Data-Sets-on-One-Graph-LabVIEW-to-Excel/td-p/2164380
    Problem description: Generated multiple 2D arrays with different x-axis and y-axis values cannot be placed into ONE excel graph (looking for LabVIEW solution). 
    We tried several options.  1) Coercing the data to have the same x-axis works in the sense that I get a graph (of the multiple data sets) but the graph is bogus since the x-values are different enough that the graph isn't correct.  (This was suggested in the referenced post).  The x-values are output power and y-values are efficiency.  2) We can feed the x-values and y-values into a bundle element and wire the output into a waveform graph element which works great but again the output needs to be fed into excel.  (also suggested by the reference post).  3) Lastly, we tried using the Excel Update Graph.vi but unfortunately we were only able to plot the last data set because it looks like the graph gets updated on each loop run and ultimately we only get the last data set.  4) As a final effort we tried looking into the sub.vi but that didn't get us any closer to x-values and y-values plotted in excel with LabVIEW generated data.
    Any suggestions?
    Thanks! 

    Hi,
    You attempted to invoke nodes? Add a  invoke node of the waveform graph, so this add data to excel. There are several types of  invoke  nodes that can be used, such as  invoke node "Export data to Excel" or the invoke node "Export data to excel Plot".
    Regards
    Hector
    Attachments:
    Export Data to excel from a waveform.vi ‏34 KB

  • How do you get multiple plots to show up on the same graph?

    I am trying to get multiple (20) plots to show up on the same XY
    graph.  My data set is a 2D array, which exits a for loop. 
    The ultimate goal is to have one plot show up after each iteration of
    the for loop.  I can only get all 20 to show up at once, not one
    at a time.  Any suggestions?
    Thanks!

    Here is a sample in 7.0 format.
    Attachments:
    20 plots on XY graph.vi ‏31 KB

  • How do I plot a y axis on the left and right in DIAdem/VIEW (version 11.0)?

    I am trying to analyze flight data, and I would like to analyze plots of certain parameters so that they share an x axis. It is necessary to view these using two different y axis, on the left and right. How do I do this in DIAdem (version 11.0) in the VIEW tab? Is this possible to do in the VIEW tab?

    myocom,
    You can highlight random points in DIAdem as well. 
    Here is an example:
    Use the cursor to move to the point you wish to highlight.
    Press the "Set Data Point and Flag" icon on each data point you wish to highlight
    When you are done selecting points, press the "Flags: Copy Data Points" icon - that will copy all X/Y coordinates into two new channels
    I created a REPORT Layout using the original data and the highlighted random points (I added the actual point Z-value above the point, they look strange when written at the exact point). I attached the layout for your reference.
    The complete task took 3 minutes from loading the data to finishing and exporting the REPORT layout. If you have a REPORT layout already, this will take less than 30 seconds ...
    I am not familiar with Matlab, so I can't compare how this works in DIAdem vs. Matlab. You can add the combine the complete process in a Script and it will automatically create this kind of report after simply selecting a few data points in VIEW and then pressing a button ...
        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:
    Report with highlights.zip ‏5 KB

  • Multiple plots in Express XY graph

    Hello,
    I'm trying to have several plots in an Express XY graph and use it without clearing data on each call - like a chart.
    On the Y Input, I'm inserting an array with 2 values (1 for each plot) and in the convert to dinamic data I choose 1D array of scalars - multiple channels. The problem is that there's only one plot in the graph.
    See attached example test.vi
    Can anyone help?
    Thanks.
    Attachments:
    XYtest.vi ‏117 KB

    Hi Paulo
    You need as many x arrays of values as y arrays of values.
    See attached doc
    Cheers
    Alipio
    "Qod natura non dat, Salmantica non praestat"
    Attachments:
    XYpairs.doc ‏46 KB

  • Multiple Selections on Category Axis

    Hi,
    I need to create a graph. On Category Axis ( X= axis)  I need to show values of 5 keyfigures from a BW query. Y axis will be Values in thousand.
    Currently no issues with Y-axis. But I am not able to figure out how I can have multiple category axis on X axis.
    Basically what I need is a way of creating 1 category which has 5 KFs.
    thanks,
    Murtuza.

    Thank you all for helping.
    Below  is how I resolved :-
    I created a structure of table (Key Figures) in Column of query designer and then use that structure in VC to output table.
    There I had used formula for each KeyFigures using IF ...something like this:-
    NVAL(IF(@Key_Figures=="Prior Sales",0,IF(@Key_Figures=="Price",NVAL(IF(#ID[ACA257]@Price_Impact_value>=0,#ID[ACA257]@Prior_Sales_Value,#ID[ACA257]@Prior_Sales_Value+#ID[ACA257]@Price_Impact_value)),IF(@Key_Figures=="FX",#ID[ACA257]@GAP_3,IF(@Key_Figures=="Volume",#ID[ACA257]@GAP_4,IF(@Key_Figures=="Lost Mix",#ID[ACA257]@GAP_5_6,IF(@Key_Figures=="Gain Mix",#ID[ACA257]@GAP_5_6,IF(@Key_Figures=="Current Sales",0,123))))))))
    This way I got the output table as required.
    Thanks,
    Murtuza.

  • Multiple service deployment in Axis

    Hi
    I am using Axis 2.0 as a web service platform for my application. The following is what I am trying to do.
    1) I am generating the server side codes from WSDL using WSDL2Java tool.
    2) Then using the generated codes I have developed my application.
    3) I then build my application as �.aar� file as to upload in Axis
    4) Similarly I am creating another application using the same steps mentioned above.
    5) And uploaded the two .aar service files in the axis (which is deployed in Tomcat).
    So now I am having two services in axis and whenever I get a request from the client I am having a common servlet which acts as a controller and redirect the request to particular Service based on some value in the request.
    As of now I using AxisServlet.java in Axis as my controller where I am reading the request as stream to fetch the particular value and redirecting to appropriate service (based on the URL of the particular service)
    But modifying the AxisServlet.java and reading the request as a stream in not the appropriate way. So can you please suggest me an appropriate method in which the above scenario can be implemented.
    Thanks in advance.

    Thsi combination of line items in Po gets govered by Description of service item text in shopping cart .  so if the text is same for all the lines of shopping cart then a single line will be created . if that text description is made manually differnet then multiple po lines will be created .
    @shailesh

Maybe you are looking for