LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reading .dat files

I have a piece of hardware that logs data into a .dat file. The data is comma separated format. I need to read this data into LV. At the moment I can read the data into labview once I have converted the data into tab separated using MS Excel. But i dont want to do this every time. Is there a way that i can convert the data into tab format via labview OR is there a way of reading in the comma separated data?

 

Also another question i would like to ask is, can i simultaneously read the data from the .dat file while the logger is still writting to the file?

 

Cheers

Rhys

0 Kudos
Message 1 of 13
(7,781 Views)

Hopefully you are using Read from Spreadsheet File.vi to get the data into LV.  Hidden under the Polymorphic selector is an input called delimiter.  One well-placed string constant later, you are reading comma delimited files now.

Message 2 of 13
(7,780 Views)

Ah yes i noticed that input. But what constant do I need to place onto it to read comma format?

 

Thanks for the reply!

0 Kudos
Message 3 of 13
(7,775 Views)

do i simply place a , on the constant input?

 

Any ideas on reading and writting to the file the same time?

0 Kudos
Message 4 of 13
(7,771 Views)

A string constant that contains a comma!

0 Kudos
Message 5 of 13
(7,768 Views)

Cheers! i shall try in the morning when i get back to work.

 

Any ideas about reading and writting simultaneously?

0 Kudos
Message 6 of 13
(7,761 Views)

Reading and Writing simulataneously while in LabVIEW?  You'd have issues with file pointers, and why would you want to do that?

 

Reading and writing simultanesouls with another application?  You'll probably have issues with the other application locking the file, or even LabVIEW locking the file while the other application wants to access it.

0 Kudos
Message 7 of 13
(7,754 Views)

when the hardware records the live data to the .dat file, i would like to be able to display the data.

 

i have tried doing it before without much success. Just wanted to now if it was possible or not.

0 Kudos
Message 8 of 13
(7,750 Views)

If you dont mind, please let me know how can I get data from a .dat file of 11bit binary samples of 1024 samples in LV waveform output....

 

Cheers!!

F Joe.

your response will be appreciated

 

0 Kudos
Message 9 of 13
(7,501 Views)

@FJoe wrote:

If you dont mind, please let me know how can I get data from a .dat file of 11bit binary samples of 1024 samples in LV waveform output....


This sounds like a different issue.  You should have started another thread.  Anyways...

 

What is writing the file?  I don't know of any systems that store data 11 bits at a time.  I would guess that the data is actually stored in 16 bits.  Do you have a document or anything about the data format?

 


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 10 of 13
(7,499 Views)