LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data are not readible

Solved!
Go to solution
I am trying the write datalog file example.vi. I can create dat file and seems the data were recorded, however I can't read data except time. All the data are strange symbols. Please help.
0 Kudos
Message 1 of 8
(3,449 Views)
Please upload your code. My chicken entrails are at home right now so my divination skills are on hold. Thanks.
Message 2 of 8
(3,447 Views)
But if I were betting on this, you did a datalog binary write and an asc read.  Crystal ball is on loan to Hogwarts

Paul
Message 3 of 8
(3,441 Views)

PJS wrote:
But if I were betting on this, you did a datalog binary write and an asc read. 

That was my guess as well, but I was afraid of getting the rooster mad. Smiley Wink

Message 4 of 8
(3,432 Views)

I attach 2 files here. One is the vi program and the other is result file (I saved .dat file as .txt file of ANSI coding for uploading). Thanks!

 

David

Download All
0 Kudos
Message 5 of 8
(3,430 Views)
Well, we can see you're writing a datalog file, but what are you using to actually read the file? Are you using another VI, or are you trying to open it with, say, Notepad (if you're on Windows)? A datalog file is not a text file, so you need to use the Read Datalog VI to read back your records. Are you doing that? If so, are you setting the same datatype for the read as you are for the write? Don't make me go rampaging into a hen house. Smiley Very Happy
0 Kudos
Message 6 of 8
(3,389 Views)
Solution
Accepted by topic author david2009
If you want to read your text files easily, I suggest you ditch the Datalog format and use plain Text. Use Write To Text File.
Richard






0 Kudos
Message 7 of 8
(3,382 Views)

You are writing a cluster to a datalog file.  Even if you use Write to Text File, you will have to get rid of the cluster and write plain text to the text file.  I suggest that you convert your DBL array to strings and concatenate all strings, then write that to a text file.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 8 of 8
(3,353 Views)