LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can Unflatten from String could be used to read waveform data .dat file

Solved!
Go to solution

What's wrong with using read waveform from file?


 Nothing is wrong Just wanted to check if I could do it with this method.

In the threds that I posted for reference, the waveform was a dat file but it could not be read through read waveform from file. There was some filtering required for that.

I was trying to do the same with Unflatten form String.

Labview user
0 Kudos
Message 11 of 13
(531 Views)
Solution
Accepted by topic author Aojha

You can open Write to wavform file and see exactly what it does. This should give you a clue on how to read it back.

 

(If you want to read it the way you currently do, you need to write it differently.)

 

First of all, "write to waveform" internally converts to an array of wavform, but then it writes in datalog format. (you can inspect the entire VI code, just double-click it!). Once we know that, we know how to read it. e.g. the attached example writes the file, then reads it right back. Seems to work just fine.

Message 12 of 13
(519 Views)

Hi,

Thanks for your reply. It solved one of my problems.

 

Labview user
0 Kudos
Message 13 of 13
(514 Views)