LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HOw can I read cluster in file with binary daya of 65M

I am able to write a cluster of "dbl, I32, string" in binary file.. but I am not able to read it .. any one can help?... I am saving setting configuration of setup in data file before data starts...

thank u
0 Kudos
Message 1 of 10
(3,729 Views)
Could you show a little bit of code?

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 10
(3,722 Views)
To write cluster I am using "write Binary file" example and for Reading "Read binary fie" don't work... Can u suggest me any way? (using any loop.. or "byte stream refnum")
0 Kudos
Message 3 of 10
(3,719 Views)
I am explaining In detail.. What i want is... Before I start storing data in binary file.. I want to store a header which discribes the test setup instruments.. Like Device No.,, Person name.., temperature.., date..,.. total 17 items of diffrent format.... Then I want to store the data in same binary file...

I want all in same file because If I read the file after some years.. I don't have to find any information regarding that test conditions. and can simply generate the report again that time. and this is very important...

Now.. as my file data is 65MB binary data.. It will be ok to append the header after data... or append data after header... ?

Will it be good idea to implement this? or is there any better way?

So.. I thought cluster would work good for this.. and tried to write in binary file .. But Reading is not possible (atleast for me) ..

I think it's clear now.. 
0 Kudos
Message 4 of 10
(3,717 Views)

Cyborg:

Another alternative to store your cluster data would be to use datalog files. Datalog files provide efficient storage and random access, however, the storage format for datalog files is complex, and therefore they are difficult to access in any environment other than LabVIEW. It is, though, the easiest method for logging cluster data to file. There are examples in the LabVIEW example finder that can show you how to use them. I would recommend you to look at "Write Datalog File Example.vi" & "Read Datalog File Example.vi". I hope this helps.

Regards,

Rudi N.

Message 5 of 10
(3,702 Views)
Thanks Rudi,

I don't have a problem with file type... as I will only use Labview... But What about size?.. It will occupy the same size as binary file.. Becoz I have a lots of data to aquire and store...









Cyborg
0 Kudos
Message 6 of 10
(3,687 Views)
The file size doesn't change significantly when considering datalog files or binary files.
In the attached VI you can see a comparison for data storage using both datalog and binary I/O.
 
Hope this helps
 
Best Regards,
 
Fabio
Fabio M.
NI
Principal Engineer
Message 7 of 10
(3,680 Views)
I think this will work.. I will try

Thanks







Cyborg
0 Kudos
Message 8 of 10
(3,673 Views)

Cyborg:

Please feel free to post if you need additional information.

Thanks,

Rudi N.

Message Edited by Rudi N on 03-09-2007 04:56 PM

0 Kudos
Message 9 of 10
(3,665 Views)
Thanks Rudi..
0 Kudos
Message 10 of 10
(3,653 Views)