From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cluster to file

Dear all,

i am trying to save a cluster in a Binary file.

when i save the single cluster to file, both, write and read operations work fine. But, when i make an array of same cluster, the program writes it properly to file, but gives a NULL output when read.

 

i am attaching my program here. Pls have a look at it and tell me where's the problem.

 

Thanks,

Ritesh 

0 Kudos
Message 1 of 3
(6,243 Views)

Hi Ritesh,

 

I would recommend you use the datalog functions to write an array of clusters in binary format. I am not able to find any examples, but you can replace the functions in your file with the corresponding datalog functions. Try it out and let us know if you have any questions.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Message 2 of 3
(6,232 Views)

Hi Ritesh,

see the attachment.

 

Mike

Message 3 of 3
(6,221 Views)