LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read in text file from ananlyzer - reproduce instrument settings & waveform. Recommend controls and express vis?

Here is sample of file.  header has meter settings followed by time and frequency measuement data.  Need to read in file below, display meter settings & reproduce wave form.  Please recommend LABView documents that would discuss reading in this type of file and displaying corresponding wave forms, what controls to use, express vi's, etc.  How to setup VI to prompt user to select file to be processed.
 
 
STORE BLOCK No.,1
ADDRESS,5
STORE TIME,2003/1/5 22:44
FUNCTION,TIMEa/SPECa
FREQ RANGE,2000
ZOOM,04
WINDOW,HANN
DISPLAY,FUNC1&2
INST/AVE,INST
OCTAVE,OFF
PEAK LIST,OFF
LEVEL RANGE(Ach),+10dB
LEVEL RANGE(Bch),  0dB
COUPLING(Ach),AC
COUPLING(Bch),AC
CCLD(Ach),OFF
CCLD(Bch),OFF
LPF(Ach),OFF
LPF(Bch),OFF
HPF(Ach),OFF
HPF(Bch),OFF
CALIBRATION MODE,OFF
TRANSFER VALUE(Ach),0.0
TRANSFER VALUE(Bch),0.0
REFERENCE VALUE(Ach),1.00E+00
REFERENCE VALUE(Bch),1.00E+00
TRIGGER,OFF
TRIGGER MODE,SNGL
TRIGGER SOUCE,INT
TRIGGER CH,Ach
TRIGGER POSITION,0
TRIGGER SLOPE,+
TRIGGER LEVEL,8_16
CROSS-SPEC,ON
REF CH,Ach
AVERAGE DOMAIN,FREQ
AVERAGE MODE,LIN
AVERAGE TIMES,1000
SPEC OPE(Ach),OFF
SPEC OPE(Bch),OFF
FREQ WEIGHT(Ach),OFF 
FREQ WEIGHT(Bch),OFF 
PARTIAL OVER ALL,OFF
FREQ LIMIT(LOWER),10000.000
FREQ LIMIT(UPPER),20000.000
Y-AXIS,dB
Y-VALUE,RMS  
CURSOR MODE,OA
CURSOR POSITION(FUNC1),0.011914
CURSOR POSITION(FUNC2),0
X-SCALE(FUNC1),4
X-SCALE(FUNC2),4
Y-SCALE(FUNC1),1
Y-SCALE(FUNC2),0/-80
OVER LOAD(Ach),-
OVER LOAD(Bch),-

[FUNC1],
TIME(s),TIMEa(V)
0.000000,-5.16E-01
0.000195,-6.94E-01
0.000391,-8.68E-01
0.000586,-1.04E+00
0.000781,-1.20E+00
0.000977,-1.36E+00
0.001172,-1.51E+00
0.001367,-1.65E+00
0.001563,-1.78E+00
0.001758,-1.90E+00
0.001953,-2.02E+00
0.002148,-2.12E+00
0.002344,-2.21E+00
0.002539,-2.29E+00
0.002734,-2.35E+00
0.002930,-2.41E+00
0.003125,-2.45E+00
0.003320,-2.47E+00
0.003516,-2.49E+00
0.003711,-2.49E+00
0.003906,-2.47E+00
0.004102,-2.45E+00
0.004297,-2.41E+00
0.004492,-2.35E+00
0.004688,-2.29E+00
0.004883,-2.21E+00
0.005078,-2.12E+00
0.005273,-2.02E+00
0.005469,-1.90E+00
0.005664,-1.78E+00
0.005859,-1.65E+00
0.006055,-1.51E+00
0.006250,-1.36E+00
0.006445,-1.20E+00
0.006641,-1.04E+00
0.006836,-8.67E-01
0.007031,-6.93E-01
0.007227,-5.15E-01
0.007422,-3.35E-01
0.007617,-1.53E-01
0.007813,+2.93E-02
0.008008,+2.12E-01
0.008203,+3.94E-01
0.008398,+5.73E-01
0.008594,+7.49E-01
0.008789,+9.20E-01
0.008984,+1.09E+00
0.009180,+1.25E+00
0.009375,+1.40E+00
0.009570,+1.55E+00
0.009766,+1.69E+00
0.009961,+1.82E+00
0.010156,+1.94E+00
0.010352,+2.04E+00
0.010547,+2.14E+00
0.010742,+2.23E+00
0.010937,+2.30E+00
0.011133,+2.36E+00
0.011328,+2.41E+00
0.011523,+2.45E+00
0.011719,+2.47E+00
0.011914,+2.48E+00
0.012109,+2.48E+00
0.012305,+2.46E+00
0.012500,+2.43E+00
0.012695,+2.38E+00
0.012891,+2.32E+00
0.013086,+2.25E+00
0.013281,+2.17E+00
0.013477,+2.08E+00
0.013672,+1.97E+00
0.013867,+1.86E+00
0.014063,+1.73E+00
0.014258,+1.59E+00
0.014453,+1.45E+00
0.014648,+1.30E+00
0.014844,+1.14E+00
0.015039,+9.75E-01
0 Kudos
Message 1 of 4
(2,791 Views)
Hi lylie2,

it seems all the data is seperated by commas. So read in the text, use 'spreadsheet string to array' with "," as seperator character. So you should get an 2D-array of text. Now pick all the values you need (by hand :-).

There are no recommended controls or express vi's to do this (in my opinion). It's just basic conversion of text...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,787 Views)
Here's a quick and dirty example that shows what Gerd is talking about. If you need to get any of the other information, it just has to be parsed. Look at the functions on your string palette.
0 Kudos
Message 3 of 4
(2,781 Views)
That's a good example Dennis.

Now here is a modified version to considered the second type of data.  Basically, we need to cascade some Match Pattern VI.

Hope this helps,

Vincent Carpentier, Ing./Eng.
CLA, CPI
Neosoft Technologies
www.neosoft.ca
DQMH Trusted Advisor
0 Kudos
Message 4 of 4
(2,763 Views)