Ploting a XY graph with 2 y axis vs single x axis

Hi ,
   I am trying to plot a XY graph with 2 Y axis in left hand and right hand sides vs a single X axis.
Using duplicate scale and swap scale am able to create the graph with 2 Y axis but am not able to connect the 3 arrays to the graph.  I am using labview 8.0 and with this am attaching a sample code also. please help me for that..
thanks in advance..
     Nikhil
Solved!
Go to Solution.
Attachments:
sample.vi ‏12 KB

Find the vi in 8.0
Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better
Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
Attachments:
sample.vi ‏12 KB

Similar Messages

  • How to draw xy graph with multiple y axis input?

    Hi,
    I have problem in xy graph, the xy graph only can show 1 signal from the y axis input ( As you can see in the attachment )
    Is it possible to draw xy graph with 2 Y input? Or maybe there are another type of graph that possible to do this? 
    Note:  the x axis should be from an input too ( not versus time / sample ).
    All answer and advice are welcomed.
    Best regards,
    Alvin Chandra 
    Solved!
    Go to Solution.
    Attachments:
    Example.vi ‏139 KB

    Are you asking for a second Y scale on the graph?
    If so, right click on the existing scale, select "Duplicate Scale". This will create a second scale. You can then (if you wish), right click on the new scale a select "Swap Sides" to put it on the other side of the graph.
    Are you asking about adding a second plot?
    If so then you need to bundle your arrays of X and Y points into clusters and build those into an array:
    The X-axis is always from an input on the XY Graph. You just need to change the axis title. Easiest way to do this is to double click on the axis title and type the new name.
    Rob

  • ADF mobile: how to create graph with dual Y axis?

    Hi,
    Jdev 11.1.2.3.0 + mobile extension.
    I try to figure out how to create a dvtm:comboGraph with dual Y axis but without success.
    All series are rendered on the Y1 axis. Y2 axis even does not appear in the graph.
    here my code:
        <dvtm:comboChart var="row" value="#{bindings.lmrgGraph1.collectionModel}"
                         id="cc1" timeAxisType="enabled">
          <amx:facet name="dataStamp">
            <chartDataItem group="#{row.timeStamp}" value="#{row.acetat}"
                           series="#{lmrgGraphBundle.ACETAT}">
              <!--dvtm:referenceObject color="ff0000" displayInLegend="on"
                                    lineValue="#{bindings.graphTresholdAcetat.inputValue}"
                                    lineWidth="2"/-->
            </chartDataItem>
            <chartDataItem group="#{row.timeStamp}" value="#{row.plannedMachines}"
                           series="#{lmrgGraphBundle.BMPLAN}"/>
            <chartDataItem group="#{row.timeStamp}" value="#{row.actualMachines}"
                           series="#{lmrgGraphBundle.BMACTUAL}"/>
          </amx:facet>
          <dvtm:legend position="end" id="l1">
            <dvtm:legendSection id="ls1" title="Legend"/>
          </dvtm:legend>
          <dvtm:yAxis axisMaxValue="#{bindings.maxYAxisValueAcetat.inputValue}"
                      title="#{lmrgGraphBundle.MENGE}">
            <dvtm:majorTick/>
          </dvtm:yAxis>
                <!--dvtm:y2Axis majorIncrement="1.0"
                       title="#{lmrgGraphBundle.BETRIEBSMITTEL}"
                       axisMaxValue="#{bindings.maxYAxisValueMachines.inputValue}"-->
          <dvtm:y2Axis majorIncrement="1.0"
                       title="#{lmrgGraphBundle.BETRIEBSMITTEL}"
                       axisMaxValue="10">
            <dvtm:majorTick/>
          </dvtm:y2Axis>
          <amx:facet name="seriesStamp">
            <dvtm:seriesStyle assignedToY2="false" color="0052ff" lineWidth="2"
                              rendered="#{(row.series eq lmrgGraphBundle.ACETAT)}"
                              series="#{row.series}"/>
            <dvtm:seriesStyle assignedToY2="true" color="e7e700" lineWidth="10"
                              rendered="#{(row.series eq lmrgGraphBundle.BMPLAN)}"
                              type="bar" series="#{row.series}"/>
            <dvtm:seriesStyle assignedToY2="true" color="94f700" lineWidth="10"
                              rendered="#{(row.series eq lmrgGraphBundle.BMACTUAL)}"
                              type="bar" series="#{row.series}"/>
          </amx:facet>
        </dvtm:comboChart>kr
    Peter

    Hi Jan,
    meanwhile I have managed to display the second Y axix corret.
    Here my code:
                <dvtm:comboChart var="row"
                                 value="#{bindings.lmrgGraph.collectionModel}"
                                 id="cc1" animationOnDisplay="alphaFade"
                                 hideAndShowBehavior="withRescale"
                                 rolloverBehavior="dim" inlineStyle="height:50%;">
                    <amx:facet name="dataStamp">
                        <dvtm:chartDataItem group="#{row.timeStamp}"
                                            value="#{row.acetat}"
                                            series="#{bindings.lmrgGraph.hints.acetat.label}"/>
                        <dvtm:chartDataItem group="#{row.timeStamp}"
                                            value="#{row.plannedMachines}"
                                            series="#{bindings.lmrgGraph.hints.plannedMachines.label}"/>
                        <dvtm:chartDataItem group="#{row.timeStamp}"
                                            value="#{row.actualMachines}"
                                            series="#{bindings.lmrgGraph.hints.actualMachines.label}"/>
                    </amx:facet>
                    <amx:facet name="seriesStamp">
                        <dvtm:seriesStyle series="#{bindings.lmrgGraph.hints.acetat.label}"
                                          color="0052ff" type="line"/>
                        <dvtm:seriesStyle assignedToY2="true" color="e7e700"
                                          type="line"
                                          series="#{bindings.lmrgGraph.hints.plannedMachines.label}"/>
                        <dvtm:seriesStyle assignedToY2="true" color="94f700"
                                          type="line"
                                          series="#{bindings.lmrgGraph.hints.actualMachines.label}"/>
                    </amx:facet>
                    <dvtm:xAxis/>
                </dvtm:comboChart>
    /code]
    There are still some issues if x-axis is timestamp enables but I have already created an SR for this.
    regards
    Peter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to draw a graph with fixed Y-axis and varying X-axis....Is it Possible?

    i am trying to draw a Line 2d graph with a dataset which contains four values like(x,y)(x1,y1)...(x4,y4)
    So when i plot the points i couldn't get the (x,y) values since they are very low when compared to other values...
    So,is there any way to scale down the graph to the max value of (x,y)
    I am using JFreeChart..

    I can draw graph with given dataset.But theScaling
    of the graph is high when a single value ishigh.So
    is there any solution to scale down the graph to a
    particular value.This sounds very much like you are using JFreeChart.
    If so, you might be better off asking in the
    JFreeChart forum
    http://www.jfree.org/phpBB2/viewforum.php?f=3 ...
    I read this as not using JFreeChart! If using JFreeChart than one can just set the range of values to be plotted!

  • I have a graph with the x axis for volume and the y axis for mass, I need the data to correlate with the volume and mass, I can not simply label the axis this way, how can i do this?

    This is extremely urgent and please help!!!

    Do you mean something like this?
    If so, go to the Chart inspector. On the Axis tab of the Chart Inspector you can set the format for each axis. Choose "custom" then type in the units at the end of the format that is there.  You can't get fancy, like having superscripts or anything.
    Alternatively you can show the axis titles, also in the chart inspector:

  • Creating a chart with a tertiary axis

    Hello all,
    I was wondering if it is possible to create a graph with a tertiary axis, along the lines of this:
    http://peltiertech.com/Excel/Charts/TertiaryAxis.html
    I have such a graph that I created in Excel, but when I import it into Numbers, it says that those types of charts are not supported. Is there any other way to create such a graph in Numbers?
    Message was edited by: Kyle DePasquale

    We may mimic the feature with two superposed 'normal' charts.
    Yvan KOENIG (VALLAURIS, France) lundi 15 février 2010 08:59:46

  • How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?, How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?

    How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?, How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?

    Hi Libby,
    Select all three columns of data. All three must be 'regular' columns, not Header columns, and the X values must be in the leftmost column.
    Click the Charts button and choose the Scatter chart.
    The resulting chart will initially show only the first and second columns of data, and the selection will have been reduced to show this.
    Click the gear icon at the top left of the selection and choose Share X Values.
    You should see a result similar to this:
    Notes:
    The values on my sample table contain a random element, so they have changed from thhe first image to the second.
    The chart is as created by Numbers, with two edits:
    Data points have been connected with curves, using the Chart nspector.
    The curves were selected and their stroke increased to 2pts, using the stroke formating button in the format bar.
    Regards,
    Barry

  • Graph: Get Right Y-Axis value with GetGraphCursor

    Hello,
    I'm currently developing an application for a customer which contains data being evaluated in a graph control.
    There are different scalings of data so I use the left y-axis for digital data and right x-axis for analog data.
    Now I want to add an annotation marker with the current X and Y value being displayed, when the user clicks into the graph.
    I use those two functions to determine the position and affected plot of the marker:
     GetGraphCursor(tabHandle2, TABPANEL_2_GRAPH, 1, &x, &y);
     GetGraphCursorIndex(tabHandle2, TABPANEL_2_GRAPH, 1, &plotHandle, &plotIndex);
    Now this works fine for the left y-axis, but I can't seem to find a way to get the y-axis value of the right side plot.
    I figure plotHandle and plotIndex should help me to get this data, but sadly I don't know how to use this information.

    Ok to clarify:
    I have a graph with plot values on the left and right y axis. Some plots use the left and some the right side.
    On default there is no cursor in this graph. But I want to provide the option for the user to enable a cursor.
    When the cursor is enabled it snaps on to the closest plot and an annotation shows the respective x and y values of the plot point.
    The problem is, when the left y axis is active and the cursor snapped onto a right y axis plot, the displayed y value is wrong (since the left scale is used).
    By left clicking into the graph, the user is able to snap the cursor onto another plot.
    So the main problem is, when clicking on a plot, the active axis has to change according to the plots respective axis.
    I can easily make this decision since the plot styles are different (left side is VAL_FAT_STEP, right side is VAL_FAT_LINE), but for the axis switch to take effect on the cursor, I would need to delete and add the cursor again. But in this process I lose positioning of the cursor and it snaps to a different plot again.

  • Creating a graph with 2 Axis

    Post Author: KatyLu
    CA Forum: Xcelsius and Live Office
    I am really struggling with how to create a graph with 2 Axises.  I have changed my Excel sheet around numerous ways and am unable to get it to work for me, does anyone have any insight on how I can make this work, I reaaaalllyyy need it for an upcoming presentation!!! Help!

    Post Author: KatyLu
    CA Forum: Xcelsius and Live Office
    Sorry if I confused...I am needing to create a graph with scales on both sides.  For example, revenue would be on the scale on the left and headcount needed to generate the revenue would be on the right scale.  Revenue scale would be between 1M and 6M, headcount scale would be in the hundreds, does this help describe what I am trying to do?  I used the Combination Chart in xcelsius and when I try to set the scale range for the x-axis minimum and maximum it is grayed out... Any help would be greatly appreciated.

  • Linking x-axis of two graphs (with seperate data types)

    Hi all,
    I am plotting a sine wave and a resulting waveform generated after driving a component with that sine wave.
    I have 2 data types:
    i) One is a waveform - of the sine wave
    ii) The other is a cluster - resulting from two arrays (DBL)
    Ideally I would like to display both of these on a single plot.  But I can't seem to do that. If you know how to do this, then please let me know.
    So, the next solution was to display them on a waveform chart and XY-plot, respectively. 
    Is there some way of linking the x axis, such that when I zoom into one plot, I simultaneously zoom into the other?
    I hope my question is clear.
    Thanks

    If you are talking about the amplitude then it is the Y axis scale. Have a look here on how to add a second scale (http://forums.ni.com/ni/board/message?board.id=170&message.id=314415&query.id=105962#M314415).
    Then you can have a separate scale for each plot. All plots on one graph with separate scales... you've got your cake and you can eat it too!
    Message Edited by Troy K on 07-25-2008 03:40 PM
    Troy
    CLDEach snowflake in an avalanche pleads not guilty. - Stanislaw J. Lec
    I haven't failed, I've found 10,000 ways that don't work - Thomas Edison
    Beware of the man who won't be bothered with details. - William Feather
    The greatest of faults is to be conscious of none. - Thomas Carlyle

  • Plot X-Y graph have multiple X Axis with same Y axis

    i want to plot array data to xy graph which has multiple X axis and 1 Y axis.
    array formate is as shown below
    TOF(x- axis)     M/Q (x axis)     Events(Y axis)
    10                          1                     0
    20                          2                     0 
    30                          3                     0  
    40                          4                     20 
    50                          5                     500  
    60                          6                     30  
    70                          7                     0 
    80                          8                     0 
    90                          9                     0  
    please help me how to plot graph on different x axis???

    Hi board,
    - right-click the x-axis of the XY graph, select "duplicate axis".
    - when plotting you have to select the x-axis for each plot...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Stacked bar chart with custom x axis labels

    Is there a way to build this simple chart in labview that I did in Excel?  I need to have many x axis labels and there could be from 5 to 100 of them depending on the data set. 
    Attachments:
    Excel.JPG ‏33 KB

    Hi id,
    Thank you for your response. I hope you are doing well.
    There is an example in the LabVIEW Example Finder (Help>>Find Examples..). It is titled, Stacked Bar Graph. You can search for it if you switch tabs in the Example Finder window. This should help you create a stacked bar graph. To help you with your veritcal axis labels, here is a knowledge base link that details the process:
    How Can I Customize the X-Axis Labels On My LabVIEW Graph/Chart So They Appear Vertically?
    http://digital.ni.com/public.nsf/allkb/1F7C1B089E4​5908E86256C8C0051894A?OpenDocument
    Let me know if these examples help.
    Best regards,
    Anna L
    Applications Engineer
    National Instruments

  • How can i control graph with two inputs?

    Hi,
        i would like to ask you about the graph with two inputs
    Normally, if i just give one input, they generate the graph with this input(y) vs time(x).
    But now i would like to get the graph with my two inputs in x axis and y axis .
    i want to control both of two axis. How could i do for it ?
    i attached the file that i try to use "Build XY graph" to control both x and y axis with random number .
    It can run but i don't know how come the graph show nothing. .
    Actually , it have to show something like wavefrom continuously. am i right?
    Could you tell me a way to solve it ? 
    >>>
    what i want to get is ..
    in Graph,
    for x axis , ditance (always increases)
    for y axis , vibration (vary)
    >>>
    Thank you so much for your time . I am looking forward your kindly reply.
    With Respect,
                            Su
    Attachments:
    using Build XY graph.vi ‏59 KB

    Hi NI9233,
    Mind me to interrupt, I am just helping Mike to explain what he meant to you, refer to the graph:
    Picture 1:
    Double click on Build XY Graph, uncheck the clear data on each call
    Picture 2 and 3:
    Change your formula node into +1 Basic Function in Functions Pallette.
    Hope that helps!
    PS: I am sorry for the size of the image, seems I made a mistakes when I saved the picture.
    Sincerely,
    Krisna Wisnu
    Message Edited by Krisna Wisnu on 11-19-2008 08:19 PM
    Sincerely,
    Krisna Wisnu
    Attachments:
    Clear Graph on Each Call.PNG ‏46 KB
    +1.PNG ‏30 KB
    +1_2.PNG ‏21 KB

  • XY graph with N axes and translate it into a picture

    Hello - The VI has two windows diagrams (lower, narrow) is possible to unite them in one picture? - The VI (top left window graphics) have a common axis, but its hard to see the first graph "PLOT0" because he has little value compared with the values ​​of graphics "PLOT1", to avoid this problem, adding even more axis "X and Y '(top right graph window), now both graphs are visible, but they overlap each other, how to spread these graphs relative to each other. (In the diagram where one axis is obtained by adding a factor to make a Slider and Slider1), and the graph with 2 separate axes do not get how to be? - Is it possible to programmatically make up the axes of the "Duplicate Scale"? Thank you.
    Attachments:
    Ex.vi ‏21 KB

    now both graphs are visible, but they overlap each other, how to spread these graphs relative to each other. 
    You can move the secondary axes to the other side of the graph by right clicking on it and selecting "Swap Sides."
    Is it possible to programmatically make up the axes of the "Duplicate Scale"?
    I don't understand this question. Do you want to programmatically set the Max and Min of the axis? Please clarify the question.
    Nathan S.
    Applications Engineer
    National Instruments

  • Autoscale XY Graph with 2 plots

    I have a graph with 2 different plots on the same Y axis. If I turn off the "visible" property on one of these plots (so I have only one plot visible), the autoscale Y continue to take both plots into account, thus creating a very too large scale for the visible plot. Is there a way to autoscale only one plot while another is hidden but associated with the same scale?

    You have several possibilities, for example:
    * instead of setting the property to invisible, temporarily replace one graph with empty data. (see attached sample code).
    * Don't use autoscale, but use ArrayMinMax on the visible y values, the set the yrange.minimum and yrange.maximum accordingly.
    *switch the second plot to a second y scale while invisible and back to scale 1 when visible again.
    * any other variation of the above.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    HideXYPlots.vi ‏51 KB

Maybe you are looking for

  • Tiles- Cannot forward after response has been committed Error

    I am trying to use following approach for my tiles implementation but i am getting error like java.lang.IllegalStateException: Cannot forward after response has been committed. I have gone thorugh the other posts regarding the same error but not help

  • URGENT!!!Getting the Ip adds of all computers connected to my computer

    I am developing a small project to track all the active connections with my computer (win 98 OS). i would like to get help on how to keep track of all computers accesing my system and getting thier ip adds..plz help Urgent. mail to [email protected]

  • How to password protect a page or a file

    Hello All, Please help me, Can you please let me know how can i Password Protect a page (or) a file which i have created using the Oracle Portal, i am working on 10.1.2 Version. I would be thankful to you if you can provide me any sample URL's Regard

  • Sudden trouble with Apps/Mail/Notifications

    Hello everyone, I was hoping you guys might know whats up with my Touch 5 and why it's acting weird. I've had it for a about a year now and never had any real problems with it until now. Also, I'm not particularly tech-savvy, so if these problems sou

  • Having Problems importing

    I have a samsung model sc-hmx 10c ntsc. My problem is when I am trying to import I get a message that tells me there was a problem importing and to review the clips. I have been racking my brain to figure this out and need help.