Adding a plot to a Waveform Chart

I have a waveform chart being used in an application.  In the
sequence of events, I first create upper and lower limits to display on
the chart based on a tolerance.  This means that I've set up the
chart with two plots before the program begins, and I'm only showing 20
seconds worth of data to the user at a time (the run may be up to 1200
seconds).  When the user hits the run button, the tolerance limits
are pulled from a file, then displayed on the waveform chart, and the
chart begins at time 0.
Once the program starts, I need to add a plot to the Waveform Chart
that will visually show the user where they are in relation to the
tolerances that have already been plotted.  This plot contains a
frequency value read from a counter input.  My question is - how
do I go about adding this plot to the waveform chart while keeping the
upper and lower tolerances displayed on this chart?  I've looked
through the property nodes, but can't find anything related to plotting
the value in relation to time.
I've attached a screenshot to provide some idea of what I'm trying to
accomplish.  The upper Waveform chart shows the upper and lower
tolerances.  The actual plot I want to add won't show up during
the run, but once the run is complete, the user will be able to use the
X Scrollbar to roll back and see the actual trace.  I am working
now on an indicator that will provide an arrow to show the user where
they are within the Waveform Chart.  The bottom graph shows the
entire run of the trace, along with cursors, that provide the user with
a point of reference during the test.
Thanks for any help!
tsc
Attachments:
waveform_chart.JPG ‏36 KB

Here's a quick example (LabVIEW 7.1).
LabVIEW Champion . Do more with less code and in less time .
Attachments:
updateGraph.vi ‏38 KB

Similar Messages

  • How can I change the color of plot in a waveform chart and graph?

    There are 4 plots in a waveform chart, from plot0 to plot3, and I want to chang the color of plots dynamicly up to my needs when the VI is running.
    For example, as show in the picture, i want to set the plot0 as RED, and plot1 is BLUE, plot2 is YELLOW, plot3 is GRAY.
    If there is only one plot, i can change it's color, however when there are more than one plot, it fail.
    How can I do it?
    Thanks
    Attachments:
    waveform.JPG ‏61 KB

    Hello MilkyStone,
    first you have to set the active plot, then change its color (or other properties). All that is done using property nodes.
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to measure the frequency of the data plotted on the waveform chart

    i have made a virtual instrument in labview that acquire data (say sine wave) into a spreadsheet file and also on the chart from the function generator. I measured the frequency of the data from the chart but it is coming out to be very less. How can i calculate the frequency of the plotted sine wave and also from the spreadsheet file.

    If you want to get an idea of the base-frequency of an periodic signal, you can measure the number of samples in between two maxima or in between two minima of the periodic signal.
    Multiply the number of samples by the sample-interval (1/Fsample in [sec]) gives you a rough estimate.
    FFT, I mentioned is one of the more advanced calculation-methods.
    The method calculates the spectrum from a waveform.
    Hope this helps,
    Patrick

  • Deleting plot from Waveform Chart

    How can I delete a plot from a Waveform chart using the chart's Attribute
    Node?
    Thanks!

    On Thu, 23 Mar 2000 16:02:22 +0100, "Carmafresh"
    wrote:
    >How can I delete a plot from a Waveform chart using the chart's Attribute
    >Node?
    >Thanks!
    >
    Set the History attribute to nothing.
    Regards,
    Steve Drake

  • Labview absolute time waveform chart to excel

    Hi everyone, I have a bit confusing on absolute time waveform chart. My problem is when I want to export to excel, the data duplicate nearly 30 times for each second. My project is about collect temperature from serial port and plot it in waveform chart, and I want to view history data in excel.
    Anyone can help to solve my question? I attached my vi here..
    Thank you so much..
    Attachments:
    NEW FINAL1.vi ‏96 KB
    snap.PNG ‏11 KB

    You are getting such a large number of readings because your VI has no timing control in it, if you simply add in a delay somewhere of maybe migrate to an event structure with a timeout then you can control the number of readings that are taken per second.

  • Waveform Chart only shows one channel or combines both channels?

    Hi,
    I have 2 analog input channels and data was obtained by sampling at 500Hz and saved into a text file.
    Can any one take a look at my VI and tell me why I am either only getting one curve plotted in the Waveform Chart or it's simply a combination of both of my inputs?
    Thanks.
    hellolv
    Attachments:
    FILE_3.vi ‏48 KB

    Hey hellolv!
    The issue you are seeing is actually a pretty common one.  For a chart to update two plots the input to that chart must be a 2D array.  Basically this means that all you need to do is insert a Build Array function right before the chart.  I coded a quick example that does this for two random numbers in a while loop. 
    If you have questions I might suggest that you implement this in LabVIEW.  You could also check the Context Help (Ctrl+H) and the Charts.VI in the Example Finder (Help » Find Examples).
    Hope this helps!
    Andy F.
    Message Edited by Andy F. on 05-01-2006 12:15 PM
    Message Edited by Andy F. on 05-01-2006 12:15 PM
    National Instruments
    Attachments:
    2DPlotWaveformChart.Png ‏5 KB

  • Stationary grid in waveform chart

    Hi
    I want to plot a moving waveform chart and the background grid should be stationary. I had ploted graph as well as grid. but while the graph moves the grid also moves. could any one suggest me how to make a stationary grid as background in moving waveform.
    Thanks in advance
    Solved!
    Go to Solution.

    A waveform chart is showing the historic value of a waveform over time, so the relevant grid marks have to move with the waveform data to have any relevance, think of it like an old paper chart recorder. If what you are trying to do is more like an oscilloscope then the correct display would be a waveform graph.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • How do I add signals from different modules to the same waveform chart?

    When using build array to connect signals from different FP modules to the same waveform chart, the array type is not the same as if all the signals come from one Read Array. Only one digital indicator on the chart displays with the build array method. Why

    Hi gencell,
    There are two ways to plot multiple plots on a Waveform Chart, a 2D array and a cluster of doubles or integers. I would suggest that you use a Bundle to create a cluster.
    This information is in the Context Help of the Waveform Chart terminal (from the Block Diagram).
    Regards,
    Chad Evans

  • Only first plot of waveform chart has run-time menu

    Hello again all you helpful forum-goers!
    My multi-plot waveform chart is working decently well, but now for some reason only the first plot in the plot legend displays a run-time customization menu when I click on it while the VI is running (allowing me to select the plot color, etc.).  All the other plots do nothing when I click on them.  I do not have any mouse-down events or filter events of any kind in my VI.  I programmatically set the number of plots and the size of the plot legend, along with each plot's name, y index, and color.  Any ideas as to what might be going on?
    Thanks a bunch as always!
    -Joe
    Solved!
    Go to Solution.

    Okay, hopefully this will help get some more thoughts / answers flowing.  I've copied my strip chart from my actual VI into a test VI, and it still exhibits the problem.  On the other hand, I have created a new strip chart from scratch, and it works fine.  I have attached both VIs here for you to see.  My guess is that some property of the first chart is set incorrectly or something, but I cannot figure out which one (and there are so many!).
    Any assistance you can give would be appreciated. The challenge is to get the chart in the first VI working (plots other than the first responding to a mouse click to change their color or other attributes), via changing some attribute of the chart (and being able to tell me which one you changed!).
    Thank you again for anyone who can look into this.
    -Joe
    Attachments:
    Test StripChart color selection not working.vi ‏17 KB
    Test StripChart color selection working.vi ‏12 KB

  • My waveform chart is suppose to be with respect to time but I've noticed it is plotted with respect to the number of times through my VI

    I was under the assumption that waveform charts in LabVIEW 6i atomaticly displayed wired data with respect to time in seconds. However, I noticed that my chart plots data with respect to the number of data points my VI has generated. Is there anyway to fix this so that the chart actually plots vs. time. I've attached VI. The CIN is to a Computerboards Inc, thermocouple. Any help would be appreciated.
    Attachments:
    tepTInScan.VI ‏73 KB

    It appears that the chart is set to display relative time but since you don't have the acquisition in any kind of a loop, your relative time is pretty meaningless. You've got the dX of the chart set to be one, so yeah, at the beginning, the x scale numbers are going to be the same as the number of aquisitions until you've run it more than 60 times. At this point, you'll see the x scale show minutes and seconds. If you want absolute time for the x scale, look at the examples Real-Time Chart.vi or Variable-Time Chart XY.vi.

  • Waveform Chart NOT allowed inside array of clusters; Dynamic plot stacking?

    The NI Developer Zone has a VI that does something I want - dynamically
    stack plots in a useful way. Unfortunately, I would like those plots
    to actually be Waveform Charts and NOT Waveform Graphs (as the
    documentation specifies but LIES!)
    A little further experimentation shows you that it is seemingly not
    possible to make an array of clusters that contain Waveform Charts!
    Why?
    Alternatively, are there any other ways to smartly show many signals at
    once? I have found multiplots to be frustrating as it is difficult to
    assign the number of plots once you start the VI (hence the existence
    of Dynamic Stack Plots).
    DynamicStackPlots here:
    http://sine.ni.com/apps/utf8/niepd_web_display.display_epd4?p_guid=B123AE0CB938111EE034080020E74861

    If you have LabVIEW 8.0, have a look at the new "Mixed Signal Graph"
    (see e.g.: http://zone.ni.com/devzone/conceptd.nsf/webmain/C6B79FA61959D9D68625706E006F7462 )
    LabVIEW Champion . Do more with less code and in less time .

  • Any alternate solution to using Waveform Chart Property Nodes 'ActPlot', 'Plot.Visible' for mulit-plot color problem on PDA?

    Hello,
        On a waveform chart, 4 signals need to be plotted based on the status of 4 boolean inputs. Eg. if the first boolean input is true, the first signal needs
    to be visible on the waveform chart; if the first boolean input is false, the first signal should not be visible on the waveform chart and so on. This can be
    done on LabVIEW desktop using the Waveform Chart Property Nodes 'ActPlot', 'Plot.Visible' - a sample VI "BundleSignals_Select_Desktop.vi" is attached for
    reference.
        But on PDA, since the Waveform Chart Property Nodes 'ActPlot', 'Plot.Visible' are not supported, some other method has to be used. I have done the
    selection/de-selection of these signals using 'Insert', 'Delete' array functions as shown in the attached VIs "BundleSignals_PDA.zip" which works, but the
    problem is that the colour of these signals do not work as desired when the selection/de-selection of these signals is done - It is required that the first
    signal should always appear in White color, the second signal should always appear in Red color, the third always in Green color & the fourth always in Blue
    color.
        I hope i have made myself clear of the problem. Has anyone faced this problem before & is there a solution?
    Note: Version of LabVIEW that we are using: LabVIEW 8.5 Professional Development System for Windows Vista/XP/2000 and LabVIEW 8.5 PDA Module for Windows
    Mobile.
    Thanks & Regards,
    Subhashini
    Attachments:
    BundleSignals_Select_Desktop1.vi ‏25 KB
    BundleSignals_PDA.zip ‏26 KB

    Unfortunately the only alternative to using property nodes is to set the properties manually on the development environement. The limited size of memory does limit us in terms of features for the module.
    Mehak D.

  • Waveform chart, plot and Dynamics Data and double data

    Hello everyone !
    I would like to get separate plots on the same waveform chart.
    Actually, I am simulating 4 signals (but in reality, it would be signal from sensors) and I would like to get 4 plots.
    In the end, I get 3 plots and no 4 plots.
    It is very strange... Yet, I have selected 'Stack plots' and '4 plots shown'.
    Actually, I can see the last data has been merged with the first one.
    How can I fix that ?
    Thank you !
    Solved!
    Go to Solution.
    Attachments:
    test5.vi ‏105 KB

    I'm not sure how you got into this state but try going into the chart properties (right click front panel chart and click Properties from menu) and under the appearance tab, unclick "stack plots", unclick "Show digital displays(s), hit "OK", then go into properties again and reselect those two boxes and hit okay. It should correct the problem.
    All statements are my opinion and worth every cent you paid for them.
    Tom Whitaker, CLD
    "Give every man thy ear but few thy voice."
    Polonius in Hamlet.

  • Plotting multiple graphs on one waveform chart with dynamic data types

    I'm trying to put multiple graphs on one waveform chart and having data agreement errors. I'm wondering if it has anything to do with the fact that dynamic data is being used (I've had no problems with other datatypes in the past). Does anyone know how to correct this problem? I've attached the following .VI. There will be plenty of .VIs on the bottom that won't load, but they are not consequential for this problem.
    Thanks!
    Brian
    Solved!
    Go to Solution.
    Attachments:
    Stiffness Control V1.vi ‏119 KB

    you could use stacked plots by right clicking on the chart and clicking on the stacked plots and than on the front panek you can put a bundle function on the FP and hook your signals up
    Harold Timmis
    [email protected]
    Orlando,Fl
    *Kudos always welcome
    Attachments:
    multiplotwaveform.JPG ‏138 KB

  • Plotting data with multiple y-axis using waveform chart

    I am using LabVIEW 7.1 and am simply trying to split my data on one waveform chart using 2 Y axis.  One goes from 0-150 and the other from 800-1000.  I want them to graph on the same chart, and I have selected 'duplicate scale' when I right click on the chart, as instructed in the labview manual, but both of my data streams are still only connected to one of my axis.  I can't get it to recognize that one data stream should go on one axis and the other stream should go on the other axis.  Can someone help please?

    Right-click in the plot legend one plot. In the context menu select y-axis and after the axis you want for this plot. The scale is changed directly.
    There is an image of the context menu attached.
    I hope this helps
    Greetings
    shb
    Attachments:
    two y-axis.png ‏16 KB

Maybe you are looking for