Non monotonous graph scale /labview

Hy,
Is it possible to plot a graph with a scale which is not monotonous ?
For example, my X scale should goes from 10 to 60 and come back to 10 (from the left to the right).
Indeed, the values of Y are different with the same X if it is on the way going or the way back.
Thank you.
Antoine Dussaux
Thales-Cnrs Palaiseau.

Hello,
What you wanna do, isn't a simple XY graph. where you give the x and y?
Software developer
www.mcm-electronics.com
PS: Don't forget to rate a good anwser ; )
Currently using Labview 2011
PORTUGAL

Similar Messages

  • Reciprocal Graph Scales

    I'm trying to plot an XY Graph with one of the scales (x-axis) set to the reciprocal of a variable.  I can plot this by calculating the values within an array, however the scales (as would be expected) now show the reciprocated value (ie. 1/value).  I would like to plot the reciprocal values whilst still displaying the actual values, similarly to how mapping in log mode would show the value before taking it's logarithm.  Essentially I'm wondering if a reciprocal mapping mode can be generated, since the scale varies non-linearly.  I'm using LAbview V8.0.  Thanks.

    Wiebe@CARYA wrote:
    Create a property node of the graph, select the Y Scale, and select the property Marker Values[]. With this property, you can set the markers any way you like it (the values are sorted automatically). Use the Flipped property to reverse the scale.
    I am pretty sure if this will not work because "stel" wants labels that don't correspond to the underlying plotted data. For example, he wants to show a 10 where the value is actually 0.1, etc.
    The proper solution would be to make your own graph in a picture indicator. Have a look at the example "XY Multi Plot.vi" as a starting point.
    Unlike the scales of sliders, graph scales unfortunately don't support text labels (Now here's something that could be useful! ). Of course you could cheat, hide the graph axis and substitute a slider with only the axis shown. Now assign label/value pairs of e.g. "10"/0.1, "2"/0.5, etc.. as desired.
    Align everything perfectly and make sure to disable "autoadjust scales" on the graph so things don't move around. See how far you get.
    LabVIEW Champion . Do more with less code and in less time .

  • Programatically edit graph scale

    Hi,
    I kow that I can edit graph scale values simply mouse clicking on them, and typing new values.
    Now I want to reproduce this behaviour programatically, but the problem is that I can't use the mouse in my application (only keyboard is available  )
    So, is there a way to programatically get focus to scale boundaries (x_min, x_max, y_min, y_max)?
    I hope so...
     I need to programatically setting them.
    Using LV 6.1 on Linux Fedora Core 3
    Vix
    In claris non fit interpretatio
    Using LV 2013 SP1 on Win 7 64bit
    Using LV 8.2.1 on WinXP SP3
    Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
    Using CVI 6.0 on Win2k, WinXP and WinXP Embedded

    I'd have suggested this too - but you may be limited. Imagine you have set your control to increment by 0.01 (for precision reasons) - how long may it take if you want to set a value of 50?
    By the way - building a num pad is not that complicated. Of course it takes time to accomplish, but I think you are most flexible.
    Using LV8.0
    Don't be afraid to rate a good answer...

  • Changing Graph Scale

    Hello,
    One of my programs (LV7.1) will not the operator right-click and change items on a couple of graphs. I have tried deleting and replacing the graphs but it didn't help. One is a waveform chart and the other is an XY graph that displays data at the end of a test. Am I missing a setting somewhere? I have never encountered this before and use graphs all the time. Thanks in advance.

    Your post title talks about changing scales, but the post talks about changing "items".
    Could you post in more detail exactly what you want to change and how you are trying to do it. A small example would also help.
    What kind of data is fed to the graph?
    LabVIEW Champion . Do more with less code and in less time .

  • Calculer l'aire d'un graph sous Labview

    Bonjour, 
    Je voudrais calculer l'aire d'une zone d'intérêt délimitée sur un graph sous labview. Je m'explique :
    Supposons que j'ai fait l'acquisition des données sur un graph. Je voudrais en fait, exploiter ces données, en délimitant plusieurs zones dans ce graph afin d'en calculer l'aire. Auriez-vous la gentillesse de m'orienter vers une solution qui pourra m'épargner un calcul manuel.
    Merci par avance  

    Réponses données sur forum dupliqué à l'adresse suivante:
    http://forums.ni.com/t5/Discussions-de-produit-de-NI/Calculer-l-aire-d-un-graph-sous-Labview/td-p/15...
    Jérémy C.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Travaux Pratiques d'initiation à LabVIEW et à la mesure
    Du 2 au 23 octobre, partout en France

  • How can I add custom captions to a waveform graph scale?

    I have an application that displays one or more signals in a WvfmGraph.  The X Axis is set by a hardware encoder giving signals vs. distance (measured length).  I would like to change the caption of the XScale according to the values of one of the signals.  Its similar to an XY graph, but differs in that I want to see the data unrolled.
    The problem is that the X Axis scale markers are fixed.  I would like to ask the graph what is range property of the X Axis scale.  Then use that information and a derived position signal to replace the marker values with values from a derived signal that includes relative motion. 
    For example, measuring a unit 100 feet long results in measurements of 200 feet worth of data (out and back).  The customer would like to see this data unwrapped 0, 50, 100, 50, 0. 
    One alternative is to use an XY Graph, but the data on top of itself.  Not necessarily a bad thing, but not the same as what they have always had.
    I found a similar post to display the scale at a rotation (CW or CCW) and was able to get it to work for my specific case.  The problem is that my picture marker values are not aligning nicely with the corresponding gridlines. 
    Attachments:
    Position vs MeasuredDistance.PNG ‏43 KB
    Position vs. PseudoPosition.PNG ‏37 KB

    Stephen,
    Thanks for replying to my post.  XScale.Range does not handle this situation.  In "rigorous" terms, LV does the right thing with X axis scale markers and put them where you want.  I tried to set custom Marker values as: {0, 50, 100, 50, 0} and only saw the first three values.  My guess is that under the hood, the spacing is set to 'Arbitrary' and my custom values are overwritten.  Not what I intended, but I admit my task is not the normal use case.
    Today I am prototyping the entire application with each WvfmGraph replaced with XYGraph's.  Good thing I used a modular design and passed Refnums around to all my subVI's.  Depending on a review of this prototype, I might skip this graph scale formatting.
    FYI, the original graph issue wanted to rotate the marker labels CCW.  They hid the graphs XScale and used a custom picture to display the new scale.  There is a VI that formats an axis with custom labels, where the font, text, etc. can be customized.  I have a working example of that custom scale on a Wvfm graph.  I stopped refinement when I tried to consider use cases for how the user would zoom on the data, how the graph's label's would appear if the DAQ signal indicated that the part reversed on itself.  All the data is better visualized on an XY Graph.
    p.s. are you one of the Waterloo Labs engineers?  Great stuff!

  • Graph scale updates on tabs

      We have a program with several tabs, each of which has different graphs and displays.  On one of the tabs is a histogram style bar graph.  We've added annotations to each bar to label each bar with a particular identifier.  The graphs are set to autoscaling, so first we write the data to the graph with a "Value" property node, then read back the graph's YMax value and use that to help calculate where to put each annotation.  (We typically put the annotation above the bar, but have to limit it to less than the YMax value so it stays on the graph.)  Works fine, as long as the graph's tab is displayed.
       So now you're displaying a different tab and put new data into the system.  Then click to the aforementioned tab.  The new data is displayed, and the graph is properly auto-scaled, but the annotations are out of place.  The YMax that was used to calculate their maximum y position was the graph's YMax from the last time it was displayed.
       What appears to be going on is that the graph's display isn't completely updated when LabVIEW knows that the graph isn't visible.  When you later make the graph visible, LabVIEW appears to have instantly autoscaled it correctly, but the YMax value that was available when the annotations were being created isn't the YMax that would be expected from the new data.
       Our work-around is to use the maximum Y value of the data.  For autoscaled graphs, this is usually pretty similar to the YMax of the axis, but not exactly the same.
       Does anyone have any insights or other ideas?  (Synchronous display didn't seem to help.  And we couldn't find any other property nodes that might be relevant.)
    Thanks,
       DaveT
    David Thomson Original Code Consulting
    www.originalcode.com
    National Instruments Alliance Program Member
    Certified LabVIEW Architect
    There are 10 kinds of people: those who understand binary, and those who don't.

    DaveT,
    This may be a complete hack/abomination, but if you are prevented from manipulating your graph if the tab is not visible, you could use an Event Structure and handle the tab's Value Change event.  Update your graph within that event.
    -cb

  • Facing memory error during shifting from 3d stem graph to 3d surface graph in labview 2010

    hello all,
    earlier I was using 3D Stem graph in labview 2010. Now we want to move to Surface plot for same data.when i am trying surface graph it shows memory error.
    I have  10240 data.
    I was using vector method in stem graph so now for Surface graph i have thought that i have to make matrics of 10240x10240 and its diagonal elements should be my Z co0ordiants.
    plz help me out here.
    thanks & regards, 

    hello mikeporter,
    thanks for reply.I am attaching my Vi. It has some error also.plz look into it.
    X and Y are my co-ordinates pairs.I will be having values for these and have to update for same.
    Attachments:
    Untitled 2_surface.vi ‏184 KB

  • CIE chromacity graph in labview

    Has anyone ever implemented CIE chromacity graph in labview.
    Please let me know how to approach this problem.

    Muks
    Sorry, I should have been more clear. I can get the required x, y values.
    Its plottig these values on a real CIE graph. The discussion you , I have
    taken a look that long ago. It discusses how get CIE values, which is
    not a problem. Also I am attaching a screenshot of a software which uses
    a simple x,y plot, with a reference point, at 0.313 and 0.329 and takes
    realtime RGB values values and plots them as a point. Is it posible to do
    somehting like this in labview. Either of them is good enough for me.
    Checkout the snapshot.
    Attachments:
    xyplot.JPG ‏7 KB

  • How to print a 3D Graph with Labview 5.1?

    I would like know if i can print a 3D Graph with Labview 5.1.

    From NI knowledgebase: "LabVIEW 5.1 includes a 3D Graph control in the Full and Professional Development Systems. Visit the LabVIEW Product page for more information on ordering or upgrading to LabVIEW 5.1. The LabVIEW 5.1 Base package includes a demo version of the 3D Graph control."
    Hope this helps

  • 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

  • Is it best to set waveform graph scale properties before or after sending new data to the graph?

    Hi I'm wondering when is the best time to update waveform graph scale properties.
    I am sampling data every 15 minutes for 192 samples, i.e. 48 hours.  I want to plot these samples with the x scale in absolute time mode so that x scale maximum is the current time and x scale minimum is x max minus 48 hours (172800 seconds).  I also want the intermediate scale markers to be 6 hours apart and to be multiples of whole 6 hours.  e.g. at 06:00, 12:00, 18:00.  This works OK using property nodes but sometimes the intermediate markers are on the 6 hour multiples and sometimes they are at 6 hours after the min scale marker.  e.g. 09:15, 15:15, 21:15.  Is there a way of guaranteeing that the intermediate markers will be on the 6 hour multiples?
    Thanks,
    Neville
    Solved!
    Go to Solution.

    Hi Bryan,
    Thanks for your reply.  I have discovered that I can achieve what I want by using an XY graph instead of a waveform graph.  I want X max to be the current time and X min the be 48 hours earlier with intermediate scale markers on multiple of 6 hours.  The XY graph in the attached VI does exactly that but I can't get the waveform graph to behave as I would like.  Is there a way of getting the waveform graph to behave as I would like?
    Thanks,
    Neville
    Attachments:
    waveform graph x axis scale.vi ‏16 KB

  • Getting graph scales and grids to only show integers

    How do I get a mixed signal graph as shown in the attachment to only show the whole integers on the y axis and reduce the grid to doing the same?
    Solved!
    Go to Solution.
    Attachments:
    Graph Scale Issue.JPG ‏38 KB

    Hello,
    programatically, you have a property node for the graph scale that should do the job :"increment"
    => property node, Y scale, range, increment.
    The grid will follow.
    The minimum increment depend on the graph vertical size (and marker font size I guess, wich also has its property node)
    example attached, hope it helps.
    antoine
    Attachments:
    increment sample.vi ‏11 KB

  • Labview graph scale labels do not update

    I am using XScale.NameLbl.Text and YScale.NameLbl.Text graph properties to programmatically change the labels on the X & Y axis. It seems to work when I run the subVI containing the graph, but when the subVI is placed in an application, they do not update based on the plot data that is selected to be plotted.
    Attachments:
    WC3000_Histogram_Plots.vi ‏96 KB

    I think I understand your question. Your subvi has the waveform wired as an output. In the main vi that calls the subvi, you wire the output to a graph - correct? So you're looking for the graph properties in the subvi to be transfered to the main vi graph - correct?
    If this is correct - it doesn't work that way. The waveform is just a cluster of t0, deltat, and the y array of data. None of the graphs properties are passed out of the subvi.
    There are many ways to do what you're trying to do. You could wire the returned strings that you use for x and y labels as outputs of the subvi, then update the property node of the main vi graph. You could also pass a reference to the main vi graph to the subvi and make the x and y label changes to the main vi graph in
    the subvi. I think the first option is probably easier.
    Tim

  • How do set up multiple devices with multiple graphs in labview

    Hello,
    I am new at LabView, and we are trying to setup a test rig to measure voltage, pressure and flow rates. We are currently using a NI-6009USB box and Labview version 8.2.  Our problem lies in setting up the actual measurements on separate graphs. How do i go about setting up the daq-assistant to measure mulitple devices, and graph them on their own graphs?  We also need to know how to program in when measuring flow, how to convert it from square wave form to a calibrated curve?
    Any help would be greatly appreciated!
    Nate

    When you configure the DAQ Assistant, you will be first asked to select the measurement type. Assuming that you have voltage sensors because you have the 6009, you select Analog Input>Voltage. You then get a list of devices. Since you only have one, it should be listed as Dev1. Expand that and then pick the channels you have connected to the sensors. Just like it says at the bottom of the of the channel window, you can select multiple channels with  <CTL> or <SHIFT> click. After you've done that, the next window is where you select your sample rate, number of samples, etc. You can also select a custom scale for each channel. This is where you would enter any formula you have from the sensor vendor in order to convert a voltage reading to scaled units.
    The output of the DAQ Assistant is a dynamic data type. You can wire this to a single graph to display all readings together or use the Split Signals function to break out individual channels for separate graphs.
    Message Edited by Dennis Knutson on 02-22-2007 03:33 PM
    Attachments:
    Split Signals.PNG ‏4 KB

Maybe you are looking for