LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Max and Min Value of the measurment file

Hi, is there anyway that we can accquire the max and min value of the measurment file(lvm)?
0 Kudos
Message 1 of 5
(2,959 Views)

Hi,

I have written this simple VI. It simply generates 100 random numbers and stores in "My Documents\LabVIEW Data\test.lvm". The method shown in the VI is simple to understand and hope it helps.

Regards,
Kabul

Message 2 of 5
(2,944 Views)
The NI-SCOPE Soft Front Panel stores all its measurements (including max and min values) in the measurement file in a special block, but only if you are actually performing the measurements.  If you are using this SFP, you can retrieve the data using the following:
  1. Read the file in line by line.
  2. At each line, look for the string ***Start_Special***.  This indicates the start of a special block - one that is outside the normal rules of the LVM file format.
  3. If you find it, look for Wfm_Sclr_Meas on the next line, indicating a waveform scalar measure block.
  4. If you don't find Wfm_Sclr_Meas, go back to step 2 and continue your search (there can easily be more than one special block)
  5. If you do find Wfm_Sclr_Meas, read in lines until you get the channel name you are interested in as the first field of the line
  6. Skip the next line, since it only contains header information
  7. Read in lines, looking at the first field.  Max and min will have first field values of Voltage_Max and Voltage_Min respectively.  The actual value is the second field.
If you want more information on the LVM format, as well as some predefined special block formats, check out the LVM specification.  The file is a spreadsheet style ASCII file designed for easy line-by-line parsing.
0 Kudos
Message 3 of 5
(2,934 Views)
Thanks guys! Exactly what I needed. I didn't know there's a function call array max& min. Thanks a lot!!!! It will be very useful for my program.
0 Kudos
Message 4 of 5
(2,916 Views)
0 Kudos
Message 5 of 5
(2,904 Views)