Axes values on XY graph

Hi,
I want to have an option so that I can fix the maximum values on the axes of XY graph. This code is supposed to create trajectory for XY stepper motors. If you will run this
code (please download the code in the next message, which is a subvi), you will see that
the maximum values on X and Y axes are changing as the code runs. However I want the fixed values:
Initial value on X axis--> X_Initial
Final value on X_Axis ---> X_final
Initial value on X axis--> Y_Initial
Final value on X_Axis ---> Y_final
All these values are on front panel of "complete_Experiment.vi".
Thanks in advance,
Dushyant
Attachments:
Complete_Experiment.vi ‏68 KB

Simply disable autoscaling of the x and y axis and write the desired x and y range via a property node of the graph (Xscale.minimum, Xscale.maximum, Yscale.minimum, Yscale.maximum).
You do some interesting coding to grow the data array for the graph. Since you have the entire array at the beginning of the loop, and you want to run it exactly once per data point, a FOR loop is more approriate. You can autoindex to get each value in sequence and reshape (=truncate in this case!) to only get the arrays up to the current point. This is more efficient. There is also no need for local variables and clusters. (see attached quick modification for some ideas. LabVIEW 7.1).Message Edited by altenbach on 03-07-2005 04:11 PM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
Complete_Experiment-MOD.vi ‏51 KB

Similar Messages

  • How to use a ring to select axes of an xy graph

    Hello,
    I'm a relatively new user to Labview and so far have found it comepletely stupifying.  I am trying to use drop down menus (ring) to select the axes of an xy-graph.  I'm using the Daq Assistant to gather my signal which consist of three parts (load, displacement, strain). I would like the ability to plot any of the inputs against eachother as well as in time simply by changing the value of the ring.  Thus far I have the ability to plot the signals against eachother using indexed arrays, but not with time.  When I look at the data from my index array, there is no time stamp...Is there any way to do this? It's probably a simple task, but I'm sick of flipping through menus of icons to find it.  Here is a screen shot of what I'm hung up on except instead of the signal simulation I have a DAQ assistant.
    Thanks in advance.
    Jon Messier
    Attachments:
    xy graph axes control.JPG ‏34 KB

    You removed all of the timestamps by your conversion of the dynamic data to a 2D dbl array. The 2D dbl array is just the Y arrays of your acquisition. If you don't want to use the dynamic data, then convert it to a 1D Waveform array. The waveform data type is a special cluster that contains the Y array, t0, and dt. The dynamic data type has this information as well.

  • Decimal format time value to convert into time (hr:min:sec)value in a graph

    I need to develop a graph in WAD, in BW7. In the graph the value must be showed as HR:MIN:SEC, which I cannot get it right.
    The keyfigure value  carries the duration(hr:min:sec) in decimal format.  In the query, I use this keyfigure for calculation. To get the time broadcasted for a week range. I get the total duration (say 507835.000). Now I need to convert this value back to hr:min:sec. I use the below formulas to get the hr, min, sec.
    D = 507835
    Val1 = D/3600
    Val2 = Frac(val1)
    Val3 = Val2 * 60
    Val4 = frac(Val3) * 60
    Hr = Val1 – Val2
    Min =  Val3 – frac(Val3)
    Sec =  Val4
    In another formula in the query I add Hr + Min/100 + Sec/10000 to get hr.minsec format.
    When I do an average on count of weeks,  this doesn’t round off correctly.
    I tried to also use the Data function TIME() which when the time is > 24 hrs changes the value.
    Lets say if it is 39:00:00, it shows value as 15:00:00 instead of keeping the value 39:00:00.
    When I used this value in the graph it did not show the HR:MIN:SEC values in the value axis instead  it showed 0.0, 0.1,….1.0. Bcoz of this the graph is blank.
    Can anybody help me to resolve this problem.
    Thanks alot
    Anima

    I checked SU01 and didn't see anything there to customize...
    In my workstation, control panel / regional and languages settings / tab regional Options / customize; my time format is HH:mm:ss; the HH has to be in capital letter to display the time in 24 hour...
    but this is strange anyway... are you reporting with web frontend or excel?

  • How to get y axis value(in a numeric control) by providing x-axis value using wave graph

    Hi,
    I'm new here, Sorry if i have selected wrong Location.
    I want to get Y-axis value (in a numeric Control) by providing X-axis Value using Wave graph.
    i want to do calculations with the obtained value.
    i have attached File and Snapshot.

    Well, you are using the Dynamic Data Type, which I almost never use, but if you convert the data to a WaveForm (using From DDT on the Signal Manipulation Palette, which is a choice when you right-click on the DDT Wire), you should be able to do this.  Do you know about how Waveforms are stored?  They are a Cluster, with t0 being a TimeStamp for the start of the Waveform, dt being the time step, and Y being the samples.  So if you want a point at 0.5 seconds and dt is 0.001, you would pull out the point at Index 499 (offset 0) from the Y array.
    Bob Schor

  • Data values on 3D graph

    Hi
    i am able to show data values on all graphs but how to show same on 3D graph in RTF format... as i have already tried same code in Alt Text tab of 3D chart graph but it is not showing up the data values....
    Help me to how can i show data values on 3D graph.
    thanks & regards

    http://winrichman.blogspot.com/2008/09/slice-label-in-pie-chart.html
    chart:
    <Graph depthAngle="50" depthRadius="8" pieDepth="30" pieTilt="20" seriesEffect="SE_AUTO_GRADIENT" graphType="THREED_BAR"><LegendArea visible="true" /><SliceLabel  textType="LD_TEXT_PERCENT" visible="true">
    <ViewFormat decimalDigit="2" decimalSeparator="." decimalDigitUsed="true" decimalSeparatorUsed="true"/>
    </SliceLabel><LocalGridData colCount="{count(xdoxslt:group(.//ROW,  'YEAR'))}" rowCount="{count(xdoxslt:group(.//ROW,  'TEXT'))}"><RowLabels><xsl:for-each-group select=".//ROW" group-by="TEXT" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><Label><xsl:value-of select="current-group()/TEXT" /></Label></xsl:for-each-group></RowLabels><ColLabels><xsl:for-each-group select=".//ROW" group-by="YEAR" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><Label><xsl:value-of select="current-group()/YEAR" /></Label></xsl:for-each-group></ColLabels><DataValues><xsl:for-each-group select="//ROW" group-by="./TEXT" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:variable name="G1" select="current-group()" /><RowData><xsl:for-each-group select="//ROW" group-by="./YEAR"><Cell><xsl:value-of select="sum($G1[(./YEAR=current()/YEAR)]/COUNT_DISTINCTP.ID_)" /></Cell></xsl:for-each-group></RowData></xsl:for-each-group></DataValues></LocalGridData> </Graph>
    Re: LD_TEXT_PERCENT in Pie chart
    Re: need to put value and test in pie chart
    Re: Pie chart label values
    Re: Values versus percentages in Pie chart

  • Is it possible to express two y axes on a xy graph with different scale

    Is it possible to express two y axes on a xy graph with different scale
    I need to program it... Please help me

    Hello.
    Yes, it is possible to have two different vertical scales on an xy graph. There is no way that I know of to add a scale programmatically, but once you have added it, you can configure the range of it programmatically, as well as assigning a plot to any particular scale. You do this by using an xy-graph property node, with the properties YScale.Minimum, YScale.Minimum, and Plot.YScaleIndex respectively.

  • Passing the values from the graph when we use Navigate to the BI Content

    Hi,
    The following are the problems which we are facing when navigating to the other BI report.
    1)When using the “Navigate to BI content” action the values are not getting passed to the detail report from the graph. Is there any limitation or any alternative to make it work?
    When I click on the Bar graph I need to pass the corresponding period and the dimension (EX: Operating Unit – Vision Services R+D) to the detail report.
    2)I have tried using the “Navigate to Web page” action. I am able to pass the values but the page is getting opened in another window. I want that page to be opened in the same window so that my presentation variable values are not lost.
    3)When I click on the bar graph, I am able to pass the values period and operating unit. But my presentation variable values are lost. I want to retain them.
    Please help me out in achieving this scenario.
    Thanks,
    Chaithanya

    Hi,
    In the column properties give the navigation to other reports from the interaction tab and make a chart with the column and in the dashboard -->edit dashboard-->in the section where the report is placed--->give 'drill in place'.
    Regards
    MuRam
    NOTE: Please mention if this resolved your problem/still facing and close the thread.

  • To display average value in a graph

    Hi There,
    In one graph I need to display the duration for each week as per the week range selected and a separate average duration value of the weeks selected.
    Is it possible to develop a query for above average value and use this query in WAD?
    Can anybody help in providing a solution
    Thank you
    Anima

    BI Query data can be fed directly to WAD Charts.
    See below.
    http://help.sap.com/saphelp_nw04/helpdata/en/0c/95c83956852b51e10000000a114084/content.htm

  • Z-values on 3d graph

    Hi there,
    I was wondering what can I do to make the z-axis have values visible. The video is running OK but there are no values showing up
    on the z-axis, only these zeros. Also the same happens on an intensity graph connected to it. I would appreciate your help. Thanks!

    What is the range of values on the Z axis? If the values were from like 0 to 0.1 and the display format was set to no decimal places, this is exactly what I would expect to see. Check the axis display format.
    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

  • Value limit in graphs 2147483?

    When making graphs in illustrator CS3, I often get the error message when changing the figures in the Value Axis that the maximum value is 2147483 -- which does me no good since I am working in larger numbers.
    Anybody know how to get around this problem?
    Thanks,
    Kevin

    I do not see this problem, what system are you on? this was from a Mac
    What type of Chart/Graph?
    Did you try resetting the preferences?

  • How to display X value against a particular Y value in XY graph

    Hi labview gurus,
    I've a  XY graph, time is plotted in X axis and amplitude is plaotted in Y axis, I want to display the value of X at a particular value of Y. Please let me know how to do this programatically.
    VI Attached.
    Attachments:
    testplotv8.5.vi ‏55 KB

    Hi guy,
    I want to display the value of X at a particular value of Y.
    - Find the index of your "particular Y value". Then use this index to index the corresponding X value…
    - Use a cursor in your graph…
    Is there a reason to use SystemIdentification functions to load simple spreadsheet data?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Displaying Value in 3D Graph

    Hi!
    PFA below. Its regarding the screen shot of 3D Graph.
    As we can see in the picture that the values are not accurate to view. So its better to display values(numbers) on top of each tower in 3D Graph.
    How to display that? Kindly suggest me any solution.
    With Regards,
    Yarnagula Sudhir.

    Hi Ethan,
    Find Screen Shots and the Code  below.
    1. Input Screen:
    2. Code:
       *Graph Internal Tables
    DATA: BEGIN OF itab OCCURS 0,
          text(30) TYPE c,
          value TYPE z2d_value,
          END OF itab,
          BEGIN OF opts OCCURS 0,
          c(80) TYPE c,
          END OF opts,
          BEGIN OF tyear OCCURS 0,
          c(20) TYPE c,
          END OF tyear.
    *Selection Screen
    SELECTION-SCREEN BEGIN OF BLOCK  b1 WITH FRAME TITLE text-001.
    PARAMETERS: p1 TYPE z2d_value,
                p2 TYPE z2d_value,
                p3 TYPE z2d_value,
                p4 TYPE z2d_value,
                p5 TYPE z2d_value,
                p6 TYPE z2d_value,
                p7 TYPE z2d_value,
                p8 TYPE z2d_value.
    SELECTION-SCREEN END OF BLOCK b1.
    START-OF-SELECTION.
    * Changing User Input Internal Table to 2D Graph Format Internal Table
      itab-text = 'A Diagnostic'.
      itab-value = p1.
      APPEND itab.
      itab-text = 'B Dis-Assemble'.
      itab-value = p2.
      APPEND itab.
      itab-text = 'C Decision Making'.
      itab-value = p3.
      APPEND itab.
      itab-text = 'D Modification'.
      itab-value = p4.
      APPEND itab.
      itab-text = 'E Spare Replacement'.
      itab-value = p5.
      APPEND itab.
      itab-text = 'F Forklift Arranging'.
      itab-value = p6.
      APPEND itab.
      itab-text = 'G Tool Room Work'.
      itab-value = p7.
      APPEND itab.
      itab-text = 'H Machine Trial'.
      itab-value = p8.
      APPEND itab.
    *2D Graphics: HB: Horizontal Bar
      opts-c = 'P2TYPE = HB'.
      APPEND opts.
    *FM to Create 2D Graph
      CALL FUNCTION 'GRAPH_MATRIX_2D'
        EXPORTING
          titl        = 'HMSI - MNSR - Maintenance Engine Time Analysis in Minutes'
        TABLES
          data        = itab
          opts        = opts
          TCOL        = tyear
        EXCEPTIONS
          col_invalid = 1
          opt_invalid = 2
          OTHERS      = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    3. Output:
    Now Let me know how to get the Values on top of the above bars.
    With Regards,
    Sudhir.

  • Display sample values on a graph

    Hallo!
    I`ve got a problem with a graph, the thing is I really need to have displayed Y values of the samples on a graph. There is a possibility to make a comments (as on a pic attached) but I need the vals instead. Any ideas? Thanks for the trouble,
    greetings!
    Solved!
    Go to Solution.
    Attachments:
    bild.jpg ‏37 KB

    Dear Aleph.ka,
    here is an example of what you might need. For further documentation please refer to the description of the applied property node (Annotation List):
    http://zone.ni.com/reference/en-XX/help/371361H-01/lvprop/waveformgraph_annot_list/
    I hope this helps.
    Regards,
    Adam Cseh
    Applications/Systems Engineer
    National Instruments
    Attachments:
    graph annotation.png ‏32 KB

  • Chnging y value in line graph

    I can't seem to find a way to increase the y value for a numbers line graph. When I use the inspector and tab out of the field it goes back to zero!

    I hope that this screenshot will help:
    Yvan KOENIG (from FRANCE vendredi 6 juin 2008 19:20:52)

  • Low Values in OBIEE Graph

    Hi ,
       I have some very low values like 300 or 400 for a particular measure  and some very high value like 10 Million for some other measure in the graph . While displaying both in the same graph , the high values appear fine but low values do not appear at all . is there a way to display the very low values along with very high values .

    it is OBIEE 11g , vertical bar graph . The problem is if one value in 10 million and one value is 300 , the graph scale datapoint , even if  I keep the data points as 1Million , it
    will have min 10 data points upto 10 millions . 300 is very low value to 1 million , so it does not show it . Any idea , how you showed it in graph ?

Maybe you are looking for

  • Is there a way to handle custom java exception in OSB?

    For example, i created a exception that extends RuntimeException. My exception has a new field called "code". I want to handle this exception in Oracle Service Bus process and retrieve this code to throws another exception with a XML structure that i

  • OSX 10.5.8 and Microsoft Exchange 2010

    Hello Is it possible to get Entourage on Mac OSX 10.5.8 to work with A microsoft exchange 2010 server? I know it will work if we upgrade to Snow Leopard but some of our staff still have power pc macs and therefore can't use Snow Leopard. Thanks Gary

  • Why do the bookmarks disappear from safari

    Why do bookmarks temporarily disappear from Safari in my iPad?

  • Does Oracle Service Registry Support non SOA artifacts?

    I read through some of the Oracle Service registry documentation and it seems like it only supports storing only these 4 types of artifacts in the registry. Oracle Service Registry provides you with functionality to register the following resources:

  • JQuery Mobile and page transitions in Apex - how do they go together?

    Hi guys, I started off on a jQuery Mobile project with APEX - although I am still quite new to both. I have done quite a bit of research, but I haven't found really anything substantial about how they go together. Rather it appears to me, that both h