LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use MY data in the GLV_GigaLabVIEWMemoryStoreAndBrowse.vi?

Hello everyone,

 

As I use large data files (500MB) and need to be able to view them in graphs, I was reading this arcticle about Managing Large Data Sets, and found the GLV_GigaLabVIEWMemoryStoreAndBrowse.vi example in the "Fast Data Display with Decimation" section of it. It is exactly what I need, but, of course, with my data... So, how could I rearrange this file to be able to see not it's own data, but the data I acquired with the TDMS Writer (1D array of waveform data)?

 

Thanks,

Rafael

0 Kudos
Message 1 of 3
(2,760 Views)

There are several options, but I would recommend using the already existing file as your data buffer.  This will replace the internal data structures (queue or functional global) for the main data, not the decimated preview.  I would do it as follows:

  1. Replace the number of points front panel control with a path control called Filename.  This will allow you to specify your file.
  2. Modify the command enum so Change NPoints is Change Filename (only needed for us humans).
  3. In the Value Change event (top loop) for Filename (create one if it is not already there, delete the nPoints one if it is still there), stuff the command queue with Change Filename.
  4. Create a local shift register in the bottom task handler loop (similar to the one in the traditional memory store and browse) to hold your file reference.
  5. In the Change Filename frame of the task handler, close the file reference (if it is valid) and open a new file reference using the TDMS functions (use the file name terminal to read the file name).
  6. Replace all instances of reading or generating the main data with the corresponding TDMS function using the new file reference.  For example, in the Change Filename case, replace the Sine Wave.vi with a TDMS Read.vi which reads the corresponding subset.  Make your chunk size 65,000 points for best speed.
I have never done this with TDMS (only because I stopped working with file I/O before TDMS was invented), but have done it with raw binary, NI-HWS, and HDF5.  All worked well, so you should have no problems.
0 Kudos
Message 2 of 3
(2,735 Views)

Thanks DFGray, I'll try to change it now.

0 Kudos
Message 3 of 3
(2,726 Views)