Xy graph 1 spot in each axis

Hi all:
I'm plotting voltage and current in a XY graph. The fact is that instead of plotting just a spot (voltage/current coordinates), it plots 1 spot in the x axis(making 0 the Y axis), and in the next while bucle iteration it plots in the Y axis (making 0 the X axis). When I'm debugging using step by step option it plots it correctly, I think maybe its a time problem.
 Im using NI-elvis to adquire the measurement.  Im getting mad with this so please a need help.
Thanks so much

If the outcome is different when using step-by-step execution, you most likely have a race condition (or the graph update is only temporary and gets overwritten quicky with something else). Please show us a simplified version of your code and make sure it contains typical data.
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Making a graph with a voltage input on each axis with a continous curve display

    I need to make a graph that can display two voltages, with one of the voltages on each axis.  I have accomplished this by using an xy graph.  The problem is I need a curve to be displayed as the voltages change similar to the curve displayed in the waveform chart.  Currently, a line is displayed between the inital point and the final point but it then disappears.

    Hello again.
    I should have explained my example more.  I used the same signal for both the X and Y inputs of my XY graph, so the linearly increasing line is expected behavior.  In order to do what you want, you need to use a split signal VI after the DAQ Assistant express VI.  Once you place the split signal VI on the block diagram you can expand it so that it has two output nodes and wire them to the X and Y input terminals of the Build XY Graph express VI.
    Similarly, for the array example, you can use the split signal and then use two build array VIs.   In order to reset the graph you can just initialize the shift registers with a zero to clear the graph each time it runs.  This will clear the graph at the beginning of each run (and not at the end).
    Message Edited by Brooks_C on 11-30-2007 03:39 PM
    Message Edited by Brooks_C on 11-30-2007 03:40 PM
    Brooks
    Attachments:
    Split Signal Build Array2.JPG ‏37 KB
    Split Signal2.JPG ‏20 KB

  • 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

  • Specified a 3D scale for each axis

    Hi,
    I'm plotting a 3D graph but i don't want to use the autoscale function. I would rather specified my maximum value of scale for each axis.
    How can can i achieve this?
    Thanks.
    GERARD Florian.

    Oops, forgot the attachment, Here you go
    -Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA
    Attachments:
    Axis Maximum.jpg ‏17 KB

  • 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:

  • 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

  • 3D graph how to get axis real ratio

    Hi all,
    what I am trying to accomplish is that if I have x axis that represents lets say 15um and y axis also representing 15um plus z axis representing 5um to see the real-life ratio between these axis. So the size of the z axis would be 1/3 of the size of the x and y. Is that possible? Otherwise I still have the cube representation of the 3D graph that doesn't say much.
    Thx to any help
    LV 2011, Win7
    Attachments:
    17 12 51 08-19-2008.png ‏82 KB

    Hi Brian! 
    Thanks for your reply. Nevertheless I of course did that before I posted the question but as you can see from the attached picture just setting the range for all axis to the same interval doesn't help. In addition my application is resizable so the dimensions of the ActiveX container change. What I would really like to see is the axis preserving their "real world" proportions. If you have any ideas how to achieve this I would be much obliged.
    Thx!
    LV 2011, Win7
    Attachments:
    50x50x50_3D.png ‏40 KB

  • 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.

  • Text file numerical data in columns (spaces between colums) to graph after averaging each 500 columns values.ple​ase help.

    i have a text file with numerical data in three columns,(first i need to skip the few lines of text within the file above the three column of data values)then i need to convert the numerical values above "-999" to zero,then take the average of each 500 values in the first column (second and third colum needs the same operation separately),thus found average values are to be stored into a text file and finally plotted in a graph separately. Please help.Its apart of my project work.
    Solved!
    Go to Solution.
    Attachments:
    data file.txt ‏715 KB

    i have a text file with numerical data in three columns,(first i need to skip the few lines of text within the file above the three column of data values)then i need to convert the numerical values above "-999" to zero,then take the average of each 500 values in the first column (second and third colum needs the same operation separately),thus found average values are to be stored into a text file and finally plotted in a graph separately.
    " i am attaching the code tht i hv done so far, its for reading and plotting the numerical data from text, but its not working :-( "
    Attachments:
    read from text and plot.vi ‏26 KB
    sample input.txt ‏1 KB
    final input to be read and plot.txt ‏345 KB

  • Draw lines in graph parallel to y axis

    I want to draw lines in a graph programatically.
    In the vi attached, i have displayed a histogram chart.
    I need to plot two lines parallel to y axis at different x axis locations to show the bounds/ range of values.
    kindly help me in this.
    Thank you in advance.
    Regards
    Grugh Mike
    Success is Everything !!
    Solved!
    Go to Solution.
    Attachments:
    trial 1.vi ‏15 KB

    Or just use a second plot with a special style.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    trial 1MOD.vi ‏10 KB

  • Load excel file value to graph problem(about x-axis value)

    Hello,everyone,I have this problem.
    When I load the excel file which I saved before,the waveform came out normally,but the x-axis of graph waveform was not shown the number I want,it shown the number based on the no.of samples.
    What I want is plot the x-axis value based on the rate(pts/s).For this case,rate is 50prs/s,so after calculation...0.02s per reading.totally is 20 seconds.I tried to use XY-Graph,but didn't solve out.
    Jerry
    LV 7.1
    Attachments:
    delete 0 array.vi ‏14 KB
    test3.txt ‏20 KB
    Create Waveform Graph1.vi ‏275 KB

    is it always 0.02s per reading or did you get this figure from some calculation?? in anyway, you just connect that value (the constant 0.02 or calculated amount) to a Property Node... you link the Property Node to Waveform Graph 2... under property choose X-Scale -> Offset and Multiplier -> Multiplier...
    i'm not sure if this is the best method but hope it helps... i've tried it on your code and it works...
    Best Regards,
    JQ
    LV 8.0 user...

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Creating a KD Tree and only sorting the points once for each axis

    So right now I have some code for creating a KD Tree (2-Dimensions) but I am sorting the x and y values for the node each time I create a new node. Then I am taking the median, setting that as the nodes point, and passing on the left half and right halves of the remaining array to their respective children. I am using Arrays.Sort which I believe takes O(n log(n)) time per sort (once per node), but I have been reading a lot of stuff that states you can get the median in linear time so that the total build time is O(n log(n)). Unfortunately I am having difficulty understanding how. Here is a snippet of an explanation I found.
    Each node has both x-list (ordered in x-coord.) and y-list (ordered in y-coord.)
    Each pi in x-list and y-list is linked to each other.
    Both x-list and y-list can be built in linear time using the two lists of its parent.
    Thus total time to build all x-lists and y-lists is:
    T1 (n) = O(n) + 2T1 (n/2) = O(n log n).
    Since each splitting line can be found in O(1) time (via sorted lists), and there are n &#8722; 1 splitting lines in a kd-tree,
    Thus total time to find all splitting lines is
    T2 (n) = (n &#8722; 1) · O(1) = O(n).
    Hence, total prepossessing time
    = T1 (n) + T2 (n) = O(n log n).My question is, how can I build the arrays in linear time at each node? I have tried working it out on paper for the past few hours but lets say I sort the array using X first and I know that indices 0 - median will be on the left, however even if I had sorted the array by Y also, there is zero guarantee that all the points I need from x[0-median] will be in y[0-median]. They will obviously be included in x[0-median] but they will be sorted by x and not y, forcing me to resort at every single node.
    Any idea?

    swinte1 wrote:
    My question is, how can I build the arrays in linear time at each node? I have tried working it out on paper for the past few hours but lets say I sort the array using X first and I know that indices 0 - median will be on the left, however even if I had sorted the array by Y also, there is zero guarantee that all the points I need from x[0-median] will be in y[0-median]. They will obviously be included in x[0-median] but they will be sorted by x and not y, forcing me to resort at every single node.
    Any idea?So for example, you have 5 points and you sort them by x and y coordinates in two separate arrays:
    x-list: 6 1 4 3 2 5
    y-list: 6 5 1 2 3 4
    Now you want just the points to the right of 4:
    x-list: 3 2 5
    y-list: 5 2 3
    Create the x-list by iterating from the midpoint to the end.
    Add each element in the x-list to a set..
    Iterate through the y-list from left to right:
    If the point in the y-list is contained in the set, add it to the new y-list.
    This creates the arrays in linear time while keeping the points sorted. It does iterate over twice as many points in the y-list as needed though.

  • Sort issue on graph (line/bar) X-AXIS when using dates

    I have a line chart using dates on the x-axis, formatted as mm/dd/yyyy. This worked fine until the new year and now the sort order displays 01/xx/2008 before (left of) a 12/xx/2007 date.
    My quick fix was to change the format to yyyy-mm-dd, but I really don't like the way this looks.
    Is there a better solution?

    Hi Jason,
      here is the steps you should follow in order ro set the sorting for barchart.
    1. go to chart expert
    2. click on data tab
    3. select the field in the selected list of report columns on which you have to sort, then the order button will be enabled
    4. click on the order button
    5 it will open new window by name "chart sort order", where you can set the sorting order(ascending order, descending order, specified order or the original order) for the selected report column.
    I hope this will help you..
    Regards
    Deepa

Maybe you are looking for