Negative scale on a Y log scale waveform graph.

I have a problem with my waveform graph : I would like to set Y negative scale in a logarithmic mode. How can I do that? It seems to be impossible (always set to '0' if a set negative value)! What is the problem ?
Thank's in advance.

Hi,
no problem,
see attached file.
Regards
Mike
GAP wrote:
> I have a problem with my waveform graph : I would like to set Y
> negative scale in a logarithmic mode. How can I do that? It seems to
> be impossible (always set to '0' if a set negative value)! What is the
> problem ?
> Thank's in advance.
Attachments:
NegativeData.vi ‏27 KB

Similar Messages

  • Too many digits in log scale

    I thought I had reported it before - but couldn't find the post nor a known issue...
    I have a XY graph with plotted waveforms. All fine. Then I change the Y scale from lin to log and the mess happens, see below.
    The left image shows the graph border with a linear Y scale, the right image after changing programmatically to log scale
    Solved!
    Go to Solution.

    OK,
    I was playing more and can add some details, hopefully sufficient to reproduce the issue:
    Plotted is a Gaussian with the parameters 1.0, 3.0e-3, 2.0e-5. For these values changing map mode to log scale works correctly. Now, if I replot the waveform with changed parameters (0.999, 3.0e-3, 2.0e-5), i.e. a slightly reduced amplitude, log scale goes wrong.
    Adding the attribute of 0 precision as kindly suggested by Roberto helps to remove the many digits, but it does not help with respect to the number of labels and the issue of identical labels (see the second graph below).
    In a next step I replotted the graph, now with the original parameters, but the log scale does not revert to the correct scaling, although formally the identical function is plotted.
    If I change the amplitude parameter of my Gaussian function to 10.0 I get a different scaling, but overall it is not much better: Somehow, some decades are omitted, there is no major tick for 100000, 10000, 1000, 100, 10 - only the 1 and two times a mysterious 0. (third graph below) 

  • How to get a fixed plot area in a Waveform Graph even if the Y scale's precision change

    Because I'm stacking many Waveform Graph. I want them to look the same. When I change the precision of the values in the Y Scale. The plot area doesn't keep its initial width. In the example provided. I'm changing the precision and you can see it moving. Is there a way to keep the width fixed?
    I noticed that there is justification for unit label. But I didn't got the expected behavior.
    Attachments:
    ScaleProblem.vi ‏38 KB

    The menu item is only in LabVIEW 6.1 and above because the plot area did not autoscale in earlier versions so I'm not sure exactly what kind of problem you're seeeing. Here's the original example in 6.0 format and when I run it, the plot areas stay aligned as the precision changes. Could you maybe post an example that demonstrates the behavior?
    Attachments:
    ScaleProblem[1].vi ‏33 KB

  • Log scale of the axis and the best-fit line

    I try to plot a graph and set the scale of the x-axis to log scale and then i try to plot a linear trendline (best fit line). but the linear trendline does now show on the graph. but if i set the axis scale to linear, then the trendline does show.  i will need my graph in the log scale and also a linear best fit line. please help me out

    0
    100
    3.00E-09
    71.52
    1.00E-08
    57.3
    3.00E-08
    39.15
    1.00E-07
    24.13
    3.00E-07
    14.77
    1.00E-06
    7.22
    i meant you these data, and left column is x-axis and gonna use log scale for the axis. the right column is the y axis. and then i need a best fit line for this graph.. hope you can help me

  • Y scale flip in waveform graph when using property node.

    I'm having problem with property node. I'm trying to build a stackable scope with Waveform Graph And dynamically change the number of plots. It is working. But The Y scale is flipping. The minimum goes on the upper part and the minimum scale goes down. when I change it appearance it's not very fast. It take about 1 or 2 second on my computer.
    The way it is build actually is:
    Cluster_1 is containing 8 clusters. And each of the 8 clusters are containing a Waveform Graph. By reference I change the property of each Waveform to make visible or not each of the Waveforms.
    First I would like to solve the scale problem and second accelerate the redrawing of my scope.
    Maybe there is an other way t
    o do what I need.
    Thanks.
    Nitrof
    Attachments:
    MultiScopeExample.llb ‏192 KB

    Wow, you have a neat program! The problem with your y axis flipping is because the last four charts in the cluster were programmed with a flipped axis. I relabeled the charts and it worked correctly.
    From what I could tell with your code, you do not need the sequence structures. The one inside of the even actually runs the same code twice. Remove this duplication and you should see improvement. Also clusters are slow, so you should not expect it to blink back with additional coding. Use defer panel updates to get that behavior. I incorporated these changes and attached the program.
    Jeremy Braden
    National Instruments
    Attachments:
    MultiScopeExample.vi ‏163 KB

  • Working with dynamic scales in waveform graph - display problem

    Hello
    I want to use the same waveform graph in the frontpanel for different measurements. These measurements contains 1 to 8 curves, some of them I need to autoscale and others I want to use fixed scales. I wrote a method containing these functions and the functional behaviour is how I expected. But when it runs several times, LabView cannot correctly manage the graph display. Some scales are behind the graph or two scales are at the same position.
    Perhaps you have a look at my example VI (LV 7.1), I generate a random Waveform and want to display a random number of curves and some of them in fixed, and some in autorange. The more I run the VI, the more the waveform graph display gets wrong. Does anybody know a solution?
    Thank you very much for answering!
    sparti.
    Attachments:
    ScaleProblem.vi ‏165 KB

    hi there
    Ben, thanks for the link. Christian's suggestion is right and describes a similar problem.
    I solved the problem now on an other way. Each time before I change the visability of the scales I reset all settings to the default (startup) values by property nodes (YScale.Maximum, YScale.Minimum, All Visible...). Then I make the scales which I don't need unvisible, link the graphs to the prefered scales and set the Min/Max or autoscale.
    Important: I got 4 scales on each side. When I want to use eg 2 scales on the left, I need to make visible scale number 1 and 2. Scales 3 and 4 can then be set to unvisible (in other words in an incrementing order).
    Makeing scales visible and unvisible is a little bit nervous on the screen. So, during that process I bring a picture of the last waveform on the top of my screen and change to the graph view when all settings are done.
    Now I got a really great waveform viewer with the possibility, scaling some graphs by autoscale, others by fixed scales, using up to 8 scales selectable on the left/right side, user definied colors, names and units.
    Thank you all for taking part of my problem.
    sparti

  • Xy graph natural log scale

    Hi,
    How can I make a xy graph with a natural log scale on the y axis. I
    know there is base 10 log, but is there something to produce a natural
    log scale.
    Thank you,
    -Tim

    All logs scales are similar so I am not quite sure what you mean by "natural log" scale.
    Logarithmic mapping for an axis does not imply any special base, in fact the tick marks are labeled in direct original units (e.g. 0.1, 1, 10, 100) so there isn't even any conversion. Functions such as y=10^x, y=e^x, y=e^(-x), etc. will all shows as a straight lines once the mapping for the y axis is set to logarithmic..
    Could you be a bit more specific on what you actually want?
    LabVIEW Champion . Do more with less code and in less time .

  • 3D Graph log scale "feature"

    Another annoying feature just discovered in the 3D Graph object: in Log scale, you can define the boundaries of an axis, but it will be ignored by the graph itself.
    Example. Here are the settings I define for the Y axis. Notice the minimum value of 5?
    Well, fat luck... Here is what LV is ready to do:
    Now, in Edit mode, I can edit the scale itself and force the smallest value of the Y axis to be 5, but here is how it goes:
    Not cool!
    Solved!
    Go to Solution.

    Hi hanrock,
    thanks, I got the Level List to work as you described. But if I may say, it is not exactly "Standard":
    - To have to press the "Delete" key(not the Backspace key, no Ctrl-X shortcut, no right click contextual menu) to remove an entry is very specific to this object (and not described in the Help file).- To have to left click in the "[Add new level here]" entry and wait for a couple of seconds to have it turn black and be editable is not intuitive either.  There is BTW no editor popping up for me when I left-click the entry, so I am not sure what you are referring to.
    - Worse, if you do that and then decide to not enter a new value, and for instance click outside of the listbox, you get this pop-up window:
    which:
    1) does not make any sense, as you haven't actually entered any level at all
    2) hangs up LabVIEW for 10-20 seconds (in this depressed OK button mode I have pasted above) before it reverts to a clickable OK button and can be pressed to discard the window.
    I would suggest that this object be debugged further. I have noticed other issues with it that are even worst than those I have mentioned so far (maybe topic for another post when I get sufficiently annoyed by them?)

  • TFA STFT Spectrogram: log scale on frequency axis

    Hi,
    I'm trying to get my spectrogram to display a logarithmic scale on the frequency axis, but whenever I go to the graph properties->y-axis, turn off autoscaling, check the log scale box, hit okay, and then run the vi, I still have a linear scale.  I tried creating a property node for the spectrogram's y-axis and setting the scale to logarithmic, but this doesn't work either.  Does anyone have any suggestions? 
    Thanks a lot,
    Chris K.
    Attachments:
    Front Panel.png ‏267 KB

    log (0), log (1), log (2), log(3), ... ?
    The Intensity graph uses the array indices (0,1,2,3,...) for the axis, not the values of Y.  If your frequencies are 1, 2, 5, 10, 20, 50, 100, 200, 500, 1000, ..., you would need an array with >=1001 elements to get the axis values where you wanted them and it would still plot the axis linearly.  You can certainly put the Z-values for frequency 10 in the 4th column of the array.  To get the labels to display the Y-axis frequencies might require overlaying an X-Y graph with logarithmic mapping of the Y-axis on the Intensity graph.  By making the appropriate parts transparent, you should be able to get the Y-axis display you want.  Tedious, but probably not too difficult.
    Lynn

  • Waveform graph x scale

    Hello,
    I am using a waveform graph.  My x scale is the time value of data being taken.
    I want the x scale to start at zero and my oldest data being displayed first.
    In other words a progessive flow of how data is seen on a graph starting from when the data was first
    taken to eventually newest data on the right side of the graph.
    Right now the graph does the opposite with my newest data displaying first.
    Please ...using a chart is NOT an option as I need cursors.
    Many Thanks !!

    Simply invert the wires at the build array located just before the Graph
    Message Edited by JoeLabView on 06-20-2007 03:44 PM
    Attachments:
    buildArray.PNG ‏2 KB

  • Ifft with a log scale

    I currently am reading in a data file that has the frequencies in a log scale.  I understand that I cannot to a ifft if the frequencies are not in a liner step.  I was wondering if anyone knew how to do a 2-D interpolation to try and space my signal at a linear step.  I was trying to space at 1MHz, below  is some of the data I am reading into labview.  Any advice or help would be greatly appreciated.  Thank you!
    David Steele
    Frequency (GHz) Voltage (V)
    0.22000 0.082643
    0.22220 0.16803
    0.22442 0.14800
    0.22667 0.079847
    0.22893 0.071640
    0.23122 0.18030
    0.23353 0.12486
    0.23587 0.25161
    0.23823 0.089895
    0.24061 0.11021
    0.24302 0.15196
    0.24545 0.12334
    0.24790 0.17741
    0.25038 0.29914
    0.25288 0.15243
    0.25541 0.18977
    0.25797 0.15024
    0.26055 0.082443
    0.26315 0.060924
    0.26578 0.044015

    Here's a quick modification to show one possibility of a linear interpolation. You can increment any way you want. I choose a fixe number of points between the first and last value. (I assume that your real data has more points, with the current limited data set the voltage variation is too steep between adjacent data points and linear interpolation is probably too much of a simplification.)
    (LabVIEW 7.1)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Interpolation2.llb ‏48 KB

  • Waveform graph - Number of major ticks on x scale

    Hello all!
    I'm trying to display meteorological measurements throughout a day in a minute resolution. For that purpose I'm using a Waveform Chart with fixed length on x-axis (0-1440). However, major ticks are distributed by 100, i.e. 0, 100, 200, 300, ..., 1400, 1440. How can I distribute these points by 60, so that I can put hour labels 00:00, 01:00, 02:00 etc.
    Thanks!
    Regards,
    Marko.

    There is a Marker Spacing property to which you can write a custom array. This sets the scale Marker spacing to arbitrary.  See attached vi as an example.  Work still needed to make it look acceptable regarding labels.
    You could make the marker every 1 hour, the minor tick (not labled) cannot be controlled,  A long chart will have 10 minute minor tick
    - half the size of the chart and it will be 20 minute
    If you want continuous output I think you need to use a Waveforn Chart rather than a Waveform Graph with chart history length set to 86400 (number of seconds in 24 hours
     

  • 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

  • Transition measurement vi cursors displayed in waveform graph are moving outside of scale

    Using a waveform graph to display pressure over time. I wanted to be able to calculate the fall time of the pressure over time so I'm using the Transition Measurement vi. I copied exactly what was in the example for transition measurement inside help and it is correctly determining the falling transition time but I am having a problem with the cursors on the waveform graph. I should be seeing a set of green vertical cursors marking out the fall start time and fall end time like in the picture I've attached (capture2) like in the example. The problem is they both always start at 3.43 (capture1) and after each sample period they increment by one (4.34, 5.34, 6.34) The come right out of the bundle from the transition measurement output as those numbers. The period of the signal I'm interested in is always less than 2 seconds, so I never see the vertical cursors.
    I've tried substituting my daq signal with a sine wave generator and it does the same thing.
    The block diagram is in the first capture
    also I would be interested in finding out exactly how the numbers wired to the active cursor property of the property node for a waveform graph relate back to the actual cursors on the graph. Are they just automatically numbered starting with 0 from the top-down?
    Wayland
    Solved!
    Go to Solution.
    Attachments:
    Capture.PNG ‏44 KB
    Capture1.PNG ‏7 KB
    Capture2.PNG ‏29 KB

    Hi Wayland,
    The reason the cursors are always apparent in the example VI for the Transition Measurement.vi, is because the signal being generated is always resetting. So, the signal resets to a 'new' signal for the cursors to go over and therefore always remain in the somewhat same location. The Waveform Graph is also configured in such a way that it will not move or continue to show new data coming in, the data cursors have moved onto. So in your case, you will want to right click the graph and make sure "Ignore Time Stamp" is not checked/selected. This will make it so the graph keeps up with your incoming data and the cursors. You can check this in the example file by removing the True Constant going to the waveform generator and changing the time stamp option previously mentioned.
    In order to view the available cursors and their numbered position, you can right click on the Waveform Graph and select properties. In the properties window there is a Cursors tab, inside this tab at the top is a drop down menu that lists all of available cursors, indexed starting with 0 at the top.
    -Jake B.

  • Change the x axis scale markers in a waveform graph

    Hello all,
    I am looking at an unusual graphing problem that hopefully has been solved.  The problem is because an pre-existing DAQ graph does things in a chart-like manner.
    The application context is that I measure a signal vs. test length.  During the test, I calculate the UUT position as a function of the test length.  The test includes measurements out and back.  Rather than graph signal vs. length; I want to graph signal vs. position.  I have considered the XY graph, but that co-locates the position data.  To remain consistent with an existing test program, I want to change the X Axis marker labels from distance to position at each marker's distance.
    I would like to customize marker text for a waveform graph's X Axis.  I found a sub-property node for marker text, but it does not seem to iterate through a Waveform graph's X Axis markers.
    For example, a test measures the distance 0 to 200 and the X Axis markers are labeled {0, 50, 100, 150, 200}.  How do I change those labels to {0, 50, 100, 50, 0}?
    The Marker Values[] property node does not do what I expected.
    Thanks,
    Kenneth
    Possible solutions:
    1. Find a property node that does the job
    2. Use custom indicators for each marker's labels
    3. Use two graphs, one for forward, the other for reverse testing
    4. XControls

    For your option #4 I would use option #2 but use a single picture and hide the X-Axis and do my own.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

Maybe you are looking for