Buffered Viewing of Waveform Charts?

We're acquiring very large data sets, using 'Cont Acq&Graph (buffered).vi' as sort of a template for the data acquisition.
The resulting files are much larger than physical RAM, but the researchers are only interested in small parts of the collected data: The researchers need to be able to go back over the data run, choose a few seconds here and there for permanent archiving, and then discard the rest of the data.
Because the size of the data run is larger than the physical RAM in the computer, the 'viewing and extracting' VI can read from file and display to screen [via a Waveform chart] only a few seconds of data at a time. Because hard drive access time is so much slower than RAM access time, I'd like to buffer this data view
[just a little to the left and a little to the right], so that if the researcher chooses to move a little bit back in time, or a little bit forward in time, the data will [probably] be cached in RAM and the VI won't have to make a relatively slow call to disk.
Of course, the art of buffering rapidly degenerates into a PhD level computer science mess [owing to not necessarily contiguous runs of not necessarily ordered data], and I really don't feel like writing a buffering algorithm from the ground up [especially not in a visual language like LabView].
I was hoping maybe the Waveform Chart might have some capability to perform [not necessarily contiguous and not necessarily ordered] buffering. Does anyone know if this is possible, or am I asking for too much?
Or should I just rely on the operating system [soft caching] and/or the disk controller/disk [hard caching] to perform my buffering [caching] for me?
Or do the standard LabView byte stream disk reading VIs perform thei
r own [not necessarily contiguous, not necessarily ordered] buffering?"

The waveform chart does keep a history of the data passed to it. You can set the buffer length at program time. When you read the data (the data desired + buffered regions) from disk you can polulate the history by writing to the history property node. You can then postion the data in the chart with a property node. Be sure to make the x scroll bar visible. (right click on the chart >> visible items >> x scroll bar). I attached a VI in LV 7 to demonstrate.
There is no telling if relying on the OS and hard disk controller will give you desired performance. I do not believe the byte stream functions in LabVIEW do any sort of buffering either.
You will have to experiment to see what works. If you as the user cannot tell between experiments then
chances are the implementation does not matter.
By the way, LabVIEW does not support abstract data structures because it does not expose pointer operations to the programmer.
Attachments:
Untitled.vi ‏24 KB

Similar Messages

  • How to view signal in a waveform chart in Labview Signal Express?

    Hi,
    I would like to view a signal in Signal Express 3.0  in a "waveform chart" but don't know how to do it and I am thinking that it may be impossible?
    In Labview there are two ways of viewing data, either in a "waveform chart" or in a "waveform graph". The great thing with "waveform chart" is that it lets you define a history length and you can see the data move to the left (strip chart option) as the samples are being retrieved. It works perfect. 
    In Signal Express I can only select "XY graph" or "Waveform graph" by making a right-click the mouse but I cannot select "Waveform chart". Is it really true that it is not possible to view the data in a "waveform graph with Labview SE? (1 analog signal being read continuously, 100 samples to read at 1K rate)
    Thank you in advance,
    Enrique
    Solved!
    Go to Solution.

    Hi Enrique,
    You are correct that there is currently no waveform chart in SignalExpress. The closest thing you can get to, is recording the data as a log and then viewing it while recording (which I realize is not quite the same, interactive behavior).
    For your last comment, you wrote "waveform graph", but I assume you meant to say "chart" there as well.
    Sorry about this. We have recently been getting this request, so perhaps in a future version.
    Phil

  • Waveform chart. Send data to Excel

    I am monitoring the output voltage from a electronic circuit using LabView 7.1 and a DAQ card.
    I have been able to view the output voltage using a Waveform Chart but i have been unsuccessful sending the data to a file. Only one data point gets saved each time.
    I am using the "Write to Spreadsheet File .vi "
    Could someone tell me what i am doing wrong?
    Please see the program attached below.
    Attachments:
    Attempt 3.vi ‏26 KB

    You can build a 1D array as your loop runs. Where your data exits the while loop, right click on the border and select 'Enable Index'.
    If you want to save data continously, you need to move your 'Write to spreadsheet file' vi inside your while loop. As it is, only the last data point will be saved when you stop your loop.
    You will also need to connect a control or constant to the file path input so that you do not get a file dialog every time your loop iterates. Further, connect a True constant to the 'append to file?' input so that you do not overwrite data.
    Also, you may want to insert a wait period in your loop to allow other processes to run.Message Edited by DavidT on 04-27-2005 09:16 AM

  • Why does AI Read(Async​hronous).v​i cause the waveform chart to not display any history ?

    I trying to create a strip chart for 16 channels that will require displaying 10-20 minutes of data.It also starts a separate vi to set gains and offsets while displaying the data. Using AI Read.vi uses 100% of the CPU so the second vi does not run. But using AI Read (async).vi allows the second vi to run, but causes the waveform chart to not display the history? I'm using LabView version 6.0.2.

    Hi Waynes World,
    I have a couple of questions that may help us solve this issue...
    1) If you are modifying one of our example programs, which one did you start with?
    2) What kind of analog input are you doing? Buffered? Finite or continuous?
    3) Have you tried increasing the buffer size of the strip chart? This will allow the chart to store more data in it.
    4) When you use the Async VI, and when you are using the other, can you describe how the strip chart is showing the data... does the data in the chart keep growing and growing... or does it clear itself and start over when the pine reaches the end?
    I think this issue is rooted in how the buffer is being used with the two different AI Reads and how it returns data to the chart.
    On a side note, have you considered upgrading to a newer version of LabVIEW? Our latest versions of LabVIEW come with many new features and it is signifigantly easier to use.

  • 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.

  • Legend for multiple waveform chart

    I have a Waveform Chart (and legend) with multiple waveforms.  I can control the visibility of a given waveform on the chart programmatically using the "ActPlot" and "Plot.Visible?" properties.
    Is it possible to programmatically make the legend only contain the plot names that are visible at any given time?
    Cheers,
    Dan
    Dan
    CLD

    Hello DanB,
    Following along the lines of what smercurio_fc suggested, you can use the Legend>Number Of Rows property (LegNumRows) to change the number of rows of your legend to the number of plots you are viewing, and then use the Plot>Plot Name property (Plot.Name) to edit the names of the plots yourself. I cannot see a property to extract these names dynamically, so this is probably your best bet.
    I hope this helps, otherwise please do let us know if there is anything further,
    Kind Regards,
    Michael S.
    Applications Engineer
    NI UK & Ireland

  • Waveform charts plotting

    I have a data acquisition VI, which acquires two sets of data as x and y values.I have problem plotting them in a waveform chart.I tried bundling them and wiring to the chart, but instead of one plot of x vs y as the data is being acquired, i get to view 2 sets of plots. How to overcome this, so as to plot my x and y values as they are being acquired in a waveform chart.Will someone help.

    > ... y as the data is being acquired, i get to view 2 sets of plots. How to
    > overcome this, so as to plot my x and y values as they are being
    > acquired in a waveform chart.Will someone help.
    If the X values are evenly spaced, then you can encode them as X0 and
    dX, wire these into a cluster with the Y array, and send that to the chart.
    If the values are not evenly spaced, one option is to look at the XY
    chart example in examples/general/graph/charts. The example uses a
    subVI to collect and limit the number of points, the data is then drawn
    using an XY graph.
    Greg McKaskle

  • Problem with waveform chart

    Hello friends.
    I'm in learning lab view and have some questions.
    I get a signal with an Analog to Digital converter (an Atmega 32) and send data to com port .
    I convert my data to real value in voltage and time .
    But i have problem with show wave form in different frequency .
    By Increase of frequency , waveform chart can not draw my data Clearly.
    What i do to show data in different frequency ?
    Thanks .
    Attachments:
    t4.vi ‏13 KB

    Interfacing with hardware is seldom easy. That is why I lean toward NI stuff since they have made there stuff resonably simple and they have good supprt.
    When interfacing with hardware from others, we have to look fo rthe manufacuer of the hardware to provide enough support to get started.
    So I suggest you contact whoever makes your device and get some examples from them.
    Hopefully they have heard of LV and have drivers.
    Otherwise, ther is no guarentee it will be possible.
    If English is not your primary language, plese feel free to post in both English and your native language. We have contributors that can handle most languages so do not let English get in the way.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Connecting Panasonic HVX200 to FCP to view the color chart realtime

    Dear All,
    I want to use the waveform and vectorscope monitors from FCP to test my HVX200 while aiming at a DSC Labs color chart.
    Of course, one of the ways is film the chart first, and then Log and Capture the shot to FCP and check the waveform and vectorscope.
    But I am thinking if I can use my Mac Book to connect to my HVX200 to view the waveform realtime. Possible? Any suggestion? Any tool needed to connect them?
    Thanks a lot in advance.
    King

    You need something like VEESCOPE for this:
    http://www.veescope.com/
    Shane

  • Configure x axes waveform chart

    how should I configure the x-axes of waveform chart as I wanted it to be eff vs Iout.
    Currently the setting I manage to generated is eff+Ioutvs time(bundle the signal of eff n Iout).
    another would be Eff vs Ioutbut this only possible if the signal indexed into array.
    But my requirement is to view the signal immediately rather than at the end when the process finished.
    below is my attempt to generate eff vs Iout.(Which of course unable.)
    Message Edited by 3den on 05-09-2007 08:41 PM

    It's so much easier to just attach an image to your post by clicking on the browse button next to the attachment field below this message body.
    It sounds like you should be using an XY Graph. The waveform chart will only plot a y value versus time. Use the Express XY Graph to plot as data is acquired or use the shipping example called XY Chart.

  • Waveform Charts

    Hello,
    I use the AI Read VI (waveform) to read data from a buffered data
    acquisition, do some process and then display the waveform in Waveform
    Chart. The problem is that although I use a property node to initially set
    the x-axes scale (offset=0 and multiplier), when the acquisition begins the
    x-scale start from 3418:XX:XX. ( the format of the x-scale is
    Decimal::Relative Time(seconds). I would like the time axis to begin at time
    0 at the beginning of the acquisition.
    I do not understand the reason this offset occures.
    Can anyone help me?
    Thanks in advance,
    M.

    Thanks for the tip. It worked just fine.
    M.
    "Greg McKaskle" wrote in message
    news:[email protected]..
    > ...The problem is that although I use a property node to initially set
    > > the x-axes scale (offset=0 and multiplier), when the acquisition begins
    the
    > > x-scale start from 3418:XX:XX. ( the format of the x-scale is
    > > Decimal::Relative Time(seconds). I would like the time axis to begin at
    time
    > > 0 at the beginning of the acquisition.
    > > I do not understand the reason this offset occures.
    > > Can anyone help me?
    > >
    >
    >
    > The problem here is that the time being sent to the chart is an absolute
    time,
    > and the display is a delta, a relative time. You have two pretty easy
    solutions.
    > One is to extract the time of the f
    irst sample and subtract its t0 from
    each
    > waveform including the first one. This will send the delta between
    waveforms
    > and the first acquisition.
    >
    > Another solution is to set the offset not to zero, but to the negative
    > of the
    > first timestamp. This will tell the chart to subtract this value from
    each
    > waveform as they are being plotted.
    >
    > Greg McKaskle

  • Painting Error while displaying Waveform charts in subpanel

    Hello:
    I've been using subpanels for a while without problems. Recently I've
    noticed a painting error when I load a VI containing a Waveform Chart
    into the subpanel. The label of the Y Scale of the waveform chart 
    doesn't show, instead a black rectangle appears. This problem can be
    seen in the VI viewer.vi, in the subpanel examples of LabVIEW. I know
    this is not a big problem, but I'd like to know if there's a way to
    correct it.
    Thanks in advance.
    Robst
    Robst - CLD
    Using LabVIEW since version 7.0

    Hi Robst,
    This is a known issue with LabVIEW 7.x.  Happily, it has been corrected in LabVIEW 8.0.  There is a "quick and dirty" workaround (courtesy of Marc A http://forums.ni.com/ni/board/message?board.id=170&message.id=155006&requireLogin=False) that I hope you will find satisfactory.  The background of the Y axis label is clear by default.  If you manually change it to the color of the graph, then when you view it in a subpanel it will not turn black. 
    I hope this helps!  Let us know if you have any further questions!
    Megan B.
    Applications Engineer
    National Instruments

  • How can i display Waveform chart in a subpanel using Vi templates.

    Hi All
    I am new to Labview hence need  some help. I am trying to develop an application which reads some data from a Wireless Sensor Network (WSN). The WSN consists of base station connected to the USB port which recieves data from other sensor nodes.  The data comes in a certain format.  Node name, temperature reading, humidity reading etc. I want to read the data from the serial port and  based on the Node name, i want to display the information for each node in s separate window or subpanel etc. So if a new node is detected then a new window is created for that node. Since all the nodes have the same sensors on board i only need a one template. I can read the data using the serial port, parse the data to detect which node it is and also what the sensor readings are. I have created a template VI for the sensor node. I am having problems in displaying the template VIs in a subpanel. I can succesfully display a Waveform graph in the subpanel but i am having problems in displaying a waveform chart in the subpanel. I can see the actual waveform chart in the subpanel, but i cannot see the plot. Would be greatful if someone could point out what i am doing wrong here.
    Many Thanks
    Raza
    Solved!
    Go to Solution.
    Attachments:
    template_graph.vi ‏16 KB
    graph_template.vit ‏11 KB

    Hi All
    I think i have solved the problem. It seems like i was running the Vi in a loop. I have taken the Run Vi outside the while lopp and this works fine. Also i need to close the reference at the end.
    Raza

  • How can i print out the waveform chart?

      hello everybody,
    how can i print out the "waveform chart". can i do it just push the button. ( example; stop button is stop the program etc..)
    i checked the NI examples but i can't understand. i'm new to the Labview.
    pls help me.
    i added the my program
    look forward your reply
    regards from turkey...
    Message Edited by hknmkt on 05-29-2008 04:15 AM
    Attachments:
    29.05.2008_11.vi ‏37 KB

        hi jim,
    i tried the program but it's not running. When i run the program, it's print out without run the program
    i added the printed file.
    look forward your reply
    hakan
    Attachments:
    error8.JPG ‏8 KB

  • App Store on the iPad (iOS 6), can you view the Top Charts for iPhone?

    In the App Store on the iPad (iOS 6) can you view the Top Charts for iPhone? It used to be possible in a previous version of iOS.

    disregard post.

Maybe you are looking for

  • Video Lags Behind Audio in Preview Pane, Timeline and Rendered Video

    Hello, I'm having an issue with a six minute video that I grabbed from the media browser in Premeire and am attempting to use in my timline.  The first few mins of the 6 minute video is fine, but as the video progresses in the preview pane the video

  • Creative Zen Vision: M 30 gb - DRM information corrupt or missing.....???????

    So I just started having this problem yesterday but it seem I'm the only ever to have it. I've scanned every page I can and can't find a solution. Yesterday I started playing my music then all of the sudden it stopped. Granted I was having problems b

  • KSB1 - Incorrect line item selected on drill down

    Dear Guru's To set the scene we have been using KSB1 for a long time.  Now something odd is occuring - but what appears to be quite randomly. When we run a standard KSB1 report and drill down to line item detail we are getting the wrong (and complete

  • How to automate the Export Window feature?

    How can I automate the Export Window (while in the All Computers view) feature? I've looked in the Automator program but the Export Window Action is unavailable. Can someone point me in the right direction?

  • ECC 6.0 - Minimum hardware requirements

    Dear friends, I want to purchase laptop and install ECC 6.0 , i don't" know how much storage capacity it occupies . I heard that it required minimum 250 GB . plz tell me how much GB actually it requires , then i can purchase required hardisk and sugg