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:
- Read the file in line by line.
- 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.
- If you find it, look for Wfm_Sclr_Meas on the next line, indicating a waveform scalar measure block.
- 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)
- 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
- Skip the next line, since it only contains header information
- 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.