Multiple Waveform Graphs

Dear group,
I have a user panel that contains three waveform graphs in which only one
graph is visible to the user. All three graphs plot the contents of the same
one dimensional array; although only one graph is being displayed all three
graphs contain a plot of the array. The user selects whether to display
graph 1,2 or 3 using a Dialog Ring.
This is the question I have: is it better to have all three charts plotted
simultaneously even though only one is being displayed or is it better to
only plot the chart that is being displayed on the screen?
In the case of the former do I use much more memory or slow down the
execution of my program more than in the case of the latter?
Thank you in advance,
Luca

My apologies, it should say graph instead of chart.
Luca
"Greg McKaskle" wrote in message
newst5oc.86746$[email protected]..
>
> > In the case of the former do I use much more memory or slow down the
> > execution of my program more than in the case of the latter?
> >
>
> In part of your question you call the control a graph, and in other
> parts a chart. The answer depends a bit on which you are showing and
> hiding. Graphs only show the most recent data written to them, charts
> retain and show history.
>
> Neither the graph or chart will have much overhead receiving data while
> hidden. On the otherhand, it isn't zero either since they will at least
> be doing a data copy so they can draw with correct data wh
en shown.
>
> It will be easiest to send the data all the time since otherwise, you
> will need to send fresh data when showing the graph. If dealing charts,
> not only will you need to update the current data, but the history will
> be old. You will need to clear or write the history.
>
> If it doesn't cause a problem, write to them always, but if you can
> measure a problem or have spare time on your hands, add code to make the
> update conditional and deal with the data when being shown.
>
> Greg McKaskle
>

Similar Messages

  • Display multiple Waveform-Graphs on a separate Frontpanel

    Hi there,
    I'm looking for a solution to display multiple waveform-graphs on a separate frontpanel.
    In my application I measure a number of channels (number is a user-input). The signals I want to display each in a separate waveform-graph, because they have different scales. They shall be arranged that way, that the user can switch them on and off or arranges them on the screen, while the application is running (measuring). He shall also be able to maximize all graphs or a graph window to have a closer look at the signals.
    I already tried several things.
    1. I placed the maximum number of graphs in a separate vi, which I start in my application and then switch the frontpanel on and off via a property-node. The values I also write via the references of the waveform-array, which I place in an array. This way I can also change the propertys of each plot (scale, xmin xmax, etc), but I always have all graphs on the screen (also the unused).
    2. I then tried to change the visible-property of the unused graphs, but I cannot scale and rearrange the remaining graphs to the full frontpanel-size, because this property is read-only.
    3. I placed just one waveform-graph in the vi and then start as many vis, as I need. This is cool, because I also can program the position and size of each frontpanel, so that they are arranged in a grid on the display, but all the graphs are separate and it is uncomfortable if the user had to arrange them separate. The windows need to be docked ore something like that.
    4. I tried to place the graph-vis in subpanels, but then I cannot change the position and size of the vis programmatically.
    Has anyone an idea, how to solve this?
    I am using LabView2009Sp1 Professional Development System
    Thanks Norman

    Thanks so far,
    I attached some examples of what I tried already.
    1. MaximumNumberOf Graphs - I show 6 graphs although only two are needed. I cannot rescale the used ones to the full screen size, because the property is read-only
    2. RescaledFrontpanel - I switch the unused graphs to invisible, resize the frontpanel to hide the unused graphs, but now the window is not zoomable
    3. GridOfWindows displays the desired grid of graphs in separate windows, but they don't stick together
    I hope this explains the situation better.
    Norman
    Attachments:
    multigraph.llb ‏136 KB

  • Multiple waveform graph

    I need help. I need to put multiple plots in a waveform graph. In the vi in attachments, I put a example. In the waveform chart, function good, but in the waveform graph, don't work put two or more plots in the graph. I need to do the same thing that I do in the chart in the graph. Thanks for all.
    Attachments:
    graph-chart.vi ‏15 KB

    Please check the example which comes along with labview about how to plot multiple plots in a waveform-Go to specified folder in your pc
    C:\Program Files (x86)\National Instruments\LabVIEW 2012\examples\general\graphs
    -Open gengraph.llb in that folder for examples.
    Thanks
    uday,
    Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
    Certified LabVIEW Associate Developer (CLAD) Using LV13

  • Save multiple waveform graphs and data in one Excel File

    Hi there,
    I managed to save data from waveform graph into excel file and saving the plot into excel but individually. I'm aiming to save both the data and the plot in an excel file. May I know how do I do it? I've tried using the Write to Measurement File vi and also the invoke node of the waveform chart but it's still not giving me what I've wanted. 
    The above was only for one analog input channel and I have 2 analog inputs each with their respective sets of data and plot. Is there a way to execute the data and plot of one input in one worksheet and another set of data and plot in another worksheet, all in one excel file?

    Hi there;
    I would recommend using the Report Generation Toolkit; it is the easiest way.
    You can use either the Report Express VI or the Appi to save all your data in both formats
    Greetings

  • Multiple channels, multiple waveform graph

    Hello, there! I am trying to read four signals from four channels on DAQ device. I need to show the first two signals on one diagram and the other two on another diagram. So I wrote a simple VI as I attached. It gives me an error message like the picture I attached. Does anyone know how to debug this VI? I have come up with some very stupid idea to solve this problem, I can wire all this four AI Voltage VI together then go through Timing VI, then Logging VI, then Read VI, then I can connect the data terminal of this Read VI to an Index Array VI, so that I can do the following as the third Pic I attched. I have not tried this yet, but I want to find out some better method. (Maybe like the VI I wrote, it is very intuitive for people to understand) 
    Attachments:
    4 voltages in one task.vi ‏52 KB
    message.png ‏17 KB
    my last way to solve the problem.png ‏9 KB

    Hi,
    We need more information on detail of the DAQ device in use? I suspect this error could be due to sharing of single onboard clock.
    However, If all the channels could be coupled into a single task (This should be possible since there are not configuration difference between acquisition for different channel)
    Then you could use the Simple Delete from Array Function with Index=2 and length =2 available to seperate the waveform array and display them on two seperate graph Indicator. (attached modified vi)
    Attachments:
    4 voltages in one task.vi ‏46 KB

  • Display multiple channels on waveform graph

    Hello,
    I would like to display multiple channels of acoustic data on one waveform graph. I currently have them separated and controlled by tabs inside a case Structure. I sometimes have run into DAQ error because I'm looking at 10 channels of 1/3 Octave data real-time. I woundering if I display all the channels on one waveform graph would I elimnate this error.
    can anyone help?

    Philip,
    I'm acquiring data at 44KHz sample rate and my frequency range is 0-20kHz (2 ni-4472 DAQ cards). Since I been using LV (off and on now for about a year) my application is still in the development stage. I tried including pics but could only include 1 at a time, so heres a copy of my vi for you. There is several things I'd like to figure out, I'm viewing data real-time and writing data to file. However, as I'm writing data to file I don't want the data to display in real-time (I think this is where my problem is). The other issued is when I've stopped writing data to file, the case structure outside the while loop opens the file and processed the data, however I'd like to see the data in the same display (waveform graph in while loop). Take look and give me thoughts.
    R/Scott
    Attachments:
    Submarine DAQ_writing reading OFFLINE_Rev2.vi ‏829 KB

  • Turn off a single plot of a multiple plot waveform graph

    I have a multiple plot waveform graph (4 plots). I want to turn off one of the plots, say plot 2. Is this posible from the graphs property node? The property node seems to only give a reference to plot 0. I am using labview 7.
    Cheers,
    Wayne

    I think you can use "active plot" together with "plot.visible"
    property node to control which one you'd like to display. By default,
    the property node refers to plot 0, but you can change to plot 1 or
    other plots by changing active plot property node. You can search
    "Plot" in LabVIEW Help if you'd like to know details.
    Good luck,
    Jian
    On 18 Feb 2004 03:28:49 GMT, [email protected] (Computerman74)
    wrote:
    >>
    >>I have a multiple plot waveform graph (4 plots). I want to turn off
    >>one of the plots, say plot 2. Is this posible from the graphs
    >>property node? The property node seems to only give a reference to
    >>plot 0. I am using labview 7.
    >>Cheers,
    >>Wayne
    >>
    >>
    >>
    >>
    >>
    >>
    >
    >I would love to know if this is possible. I have been trying to figure i
    t out
    >myself.
    >There is a way to turn a single array off and that is what I am doing for now
    >untill this is possible. The plot is still there but reads zero when tunred
    >off. It would be cool to have the abillty to turn off a single plot.
    >I have tryed all the property nodes with no luck. The answer may be in the
    >array size but I can't seem to control that either.
    >For now you can use wire all 4 channels using the comparison select. Use a
    >constant of 0 And wire up a swtich. When the input is false the output is zero
    >in effect making the plot inactive but it still there.

  • Waveform graph

    I am wanted to display mutliple waveforms in a waveform graph, I have the following challenges to figure it out.
    Someone please guide me to do this
    1) Input is only 1-D array(which gets updated in run time), but waveform graph is accepting only 2-D array as input to display multiple signals.
    2) Iam using the attached waveform, which works as a waveform chart and wanted to feed the 1-D array to this vi.
       (Found this vi in a post). I want to go with only waveform graph because of the cursor option availabe in the Graphs.
    -Zhang
    Attachments:
    Waveformgraph.vi ‏14 KB

    Thank you very much srikrishna for your reply, I was looking some thing similar to this logic.But the only other thing I wanted to add to this logic is making  the x-axis to run with the time (X-axis always stays at the same scale),allowing the user to look at the data right from beginning using the graph palette, when he stops the execution .
    I had inserted the array, replacing the random number generator and was able to verify the data, which is updating correctly during run time. Iam attaching the modified vi. Can you please tell me how to change the x-axis so that it runs with the run.
    -Zhang
    Attachments:
    Graph_data.vi ‏11 KB

  • Simultaneous signals into waveform graph

    I am trying to use a VI to test multiple components' voltage inputs and outputs and I have developed the following VI.  The problem I am seeing is that when I operate two components, the DAQ assistant sends the two signals in series and my waveform graph doesn't plot the two signals simultaneously.  It appears that the graph flickers as it alternates between either of the signals.  Ideally I want to have about 4 components read by this VI, but I have not been satisfied with two yet.  Is there a better way to split these signals?  I have attached the VI, with my latest unsuccessful attempt to split the signal.  Ideally both readings would be going to the graph simultaneously, as different plots.
    Attachments:
    HE Control.vi ‏203 KB

    Thanks for the response Dennis. 
    The first problem that I originally wrote about was that the readback from the DAQmx in my VI "flickers" between the two signals, indicating to me that perhaps the signals needed to split and re-merged.  Using the test function of the DAQmx task manager, the data flow smoothly and simultaneously, but in my VI there will always be, for instance, a changing y-axis in a chart if I set the two voltage signals to different values.  Meanwhile, numeric readbacks seem simultaneous, but that is harder to determine.
    The second problem (tradition DAQ output and DAQmx input) stems from me reading a post when I first set up that my hardware does not support DAQmx.  It is a PXI-6704.  I checked this in the LabVIEW help files and this seems to have changed in later versions - although I have yet to make it work with only DAQmx.  Whether or not this is related to the first problem remains to be determined.  I have also posted a reply on the old post regarding incompatibility between the PXI6704 and the DAQmx to clarify what version they were using.
    Brad

  • Is there a way to change the time of a saved data to be as the same as the time-axis of the waveform graph?

    Hi,
    I've a problem while saving the waveform to a spreadsheet.
    The problem that I'm facing is that I'm not able to save/change the time-axis of the waveform graph into the excel spreadsheet.
    The attachments below are what I've programmed on.
    1st file that would be asked to save is the results of the waveform.
    2nd file, supposing to be the time-axis
    3rd file, is the multiplication of results of CH 1 and CH 2.
    Would be glad if someone can enlighten me with a solution which is suitable for LabView version 8.2 and Tektronix DPO 72004.
    Thanks. ((((:
    Attachments:
    Modification of 2 CH waveforms (Multiply and Sum).vi ‏63 KB
    Modification of 2 CH waveforms (Multiply and Sum) Front Panel.JPG ‏220 KB
    Modification of 2 CH waveforms (Multiply and Sum) BD.JPG ‏92 KB

    I've saved it as text file which could be read if I open it with excel spreadsheet.
    My aim is to get the time-axis (x-axis) in the file rather than to get the date and time in the file.
    The attachment is the waveform results that I've obtained.
    Attachments:
    waveform vaule.txt ‏433 KB

  • Place markers on waveform graph

    I'm trying to place an obvious marker on a waveform graph programatically. I have a single line continous input, and I need to put a line on the graph each time a certain condition is met.
    A thin vertical line would be best, but i can't seem to alter the cursor appearance. Also, I don't know how to dynamically create multiple cursors.

    See attached:
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA
    Attachments:
    MarkPlot.vi ‏40 KB

  • Display multiple waveforms on chart

    I need help.  I try to display multiple waveforms on a single chart.  Two waveforms (Ideal PWM and Target Pressure) are made up of a single point instead of waveform or array; thus I have to build them into array.  The problem is that I can display all the waveforms, but once awhile the chart shows a missing point on the waveform.  I have attach a screen shot of my diagram.  I'm using LV 8.6.  Can anyone help?  Thank you very much.
    BC  
    Message Edited by DSI on 04-14-2008 11:46 AM
    Attachments:
    Display Waveforms.doc ‏163 KB

    I would suggest creating an array based on the size of the other waveforms that are being graphed. Presumably you have a certain number of points for all the other waveforms, and they all have the same number of points for that iteration. Thus, create a Y array for the 2 values that you want to graph to be of the same size, rather than a single point. If you run the attached VI in highlight mode you can see what I mean.
    Attachments:
    chart with lines.vi ‏18 KB

  • How to add custom graphical features to cursors in Waveform Graphs

    Hi all:
    I´ve starting a project in LabView, in which I need to synchronise some events with a sound track.
    To do this, I tought that LabView would be the tool of choice, but now that I´m working on it, I
    found my self faced with some serious problems.
    What I want to do, is to represent a .wav sound file in a Waveform graph, and then use the cursors
    to mark some points in the desired places where I want things to happen, but, these events are
    going to be on during some period of time.
    So, it will be natural that some consecutive events might overlap in time, and I need to have
    some control on this.
    The best solution would be to have a rectangular strip attached to the cursors, with a lenght
    representing the exact time duration of the event.
    But this is only possible on my dreams, because I dont see any tools on LabView that aloud us to implement
    any extra graphical features on the cursors.
    But as I learned more about LabView, I found that a user can program blocks of software in C, to implement
    things that LabView does´nt do by default.
    And now I´m wondering if this could be the solution for my problem.
    Is it possible to add new custom features such as the one that I need?
    If yes, how?
    I have atached an image to give a clear ideia of what I need.
    I´ll apretiate any help.
    Thanks
    Attachments:
    LV Custom.jpg ‏40 KB

    No, you can't modify the cursors with either the native or C code. But I'm wondering if you can't get what you want with an XY graph instead of a regular graph. You can have multiple separate plots and some of them can be thick horizontal lines. I've attached a file with just some constants wired to an XY graph to show what I mean. Obviously, you'd have to calculate the values for the x and y arrays in your real situation. If you have to use a regular graph to display the .wav file, you could also overlay a transparent XY Graph on top. The other possiblity is to use a picture control to display your data. There's a couple of shipping examples (i.e. Waveform and XY Plots, XY Multi Plot) that show how data can be represented and Pen Attributes and Sub setting shows how you can draw lines of different widths.
    Attachments:
    Horizontal Bars.vi ‏30 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

  • Event structure and waveform graph cursor

    I am utilizing a waveform graph and I need to programatically manipulate multiple cursors based upon the movement of a primary cursor.  I would like to use the event structure to avoid processor usesage. 
    My approach is to create an While Loop/event structure where it goes into a it when there is a "mouse down" on the waveform graph.  Once in it, there is another While Loop/event structure that has two cases: Time Out (set to 25) and a "Mouse Up" on the waveform graph.  In the Time Out case, the primary cursor is read and modifies the location of the secondary cursors.  In the "Mouse Up" case, the primary cursor location is read, other cursors are manipulated, and the While Loop is exited.
    When I code this up and perform a "mouse down" on the waveform graph, the index on the inner While Loop/Event Structure is advancing but there is no control (can't move it) of the primary cursor on the waveform graph.  When I "Mouse Up", the inner While Loop exits.
    Obviously, my approach is flawed here based on my lack of understanding of the characteristics of the waveform graph and cursor manipulation.  Has somebody come up with a way to achieve what I am trying to do?

    This is basically the method I typically used in LabVIEW 7.1 and below as described in this old post.
    Of course you could upgrade to LabVIEW 8.0 and none of this is necessary! LabVIEW 8.0 has events for "Cursor Move".
    Now you only need the "cursor move" and "stop" cases. Isn't that cool!
    Message Edited by altenbach on 12-12-2005 07:05 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    LV8CursorMove.png ‏6 KB

Maybe you are looking for