LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Postproccessing from TXT file

Good afternoon,

 

I'm having problems in loading data from a .txt file and postprocess them ( those data are acquired with a DAQ).

 

Basically in my Labview routine I acquire data and save them in a file with the function "write to delimited spreadsheet" (in column).

I'd like to load the data back on a new VI and do some post processing analysis with that.


Is there an easy way to do it? Thanks.

Marco

0 Kudos
Message 1 of 12
(2,364 Views)
0 Kudos
Message 2 of 12
(2,356 Views)

Hi,

 

I already tried that, but it does not work. 

0 Kudos
Message 3 of 12
(2,336 Views)

@Marco000 wrote:

Hi,

 

I already tried that, but it does not work. 


Could you be a bit more specific?

--------------------------------------
0 Kudos
Message 4 of 12
(2,327 Views)

When I use the function 'read from delimited spreadsheet' and run it to plot the waveform I previously acquired, Labview crashes. 

 

The .txt file I'm trying to upload is about 6 MB, maybe is that. 

 

Hope I was more specific. 

Thanks,

Marco

 

 

0 Kudos
Message 5 of 12
(2,315 Views)

What are the dimensions of your spreadsheet? Can you attach it here?

--------------------------------------
0 Kudos
Message 6 of 12
(2,313 Views)

Hi,

 

yes, attached a screenshot of the file.

 

I tried to upload both a file with 3 column and with 1, but it did not work anyway. 

Can't upload the whole file because it is more than 5 MB.

labviewtxt.PNG 

0 Kudos
Message 7 of 12
(2,310 Views)

So, the file has 3 columns, but how many rows? 

--------------------------------------
0 Kudos
Message 8 of 12
(2,307 Views)

Hi Marco,

 

Can't upload the whole file because it is more than 5 MB.

Ever heard of ZIP?

Also place your VI you are using to read that CSV file into the same ZIP file…

(What's the sample rate used for DAQ?)

 

When I use the function 'read from delimited spreadsheet' and run it to plot the waveform I previously acquired, Labview crashes.

Is there an error message? Or does LabVIEW just vanish from desktop?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 9 of 12
(2,275 Views)

Hello Marco

so use this attached VI and try to read the created delimited string with your solution. What happens?

Greets, Dave
0 Kudos
Message 10 of 12
(2,260 Views)