10-10-2011 01:38 PM
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
10-10-2011 01:42 PM - edited 10-10-2011 01:42 PM
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.
10-10-2011 01:47 PM
Ah yes i noticed that input. But what constant do I need to place onto it to read comma format?
Thanks for the reply!
10-10-2011 01:49 PM
do i simply place a , on the constant input?
Any ideas on reading and writting to the file the same time?
10-10-2011 01:50 PM
A string constant that contains a comma!
10-10-2011 02:04 PM
Cheers! i shall try in the morning when i get back to work.
Any ideas about reading and writting simultaneously?
10-10-2011 02:15 PM
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.
10-10-2011 02:30 PM
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.
10-19-2012 12:19 PM
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
10-19-2012 12:29 PM
@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?