LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read / write cluster array?

Hi NG,

is there an easy way to read and write an array of clusters? I've found
neither anything like that in my literature nor in the internet.

I't would be great if someone could help me!

Greetings
Florian
0 Kudos
Message 1 of 2
(2,984 Views)
Hi,
you must use "Read File.vi" and "Write File.vi" to read/write array of clusters to the file.

When you write data to the file, you just need to wire your array to "data" input node of "Write File.vi". Also you may wire TRUE to "header" input of this VI. The header with array sizes will be added to the file so you will be able to read array back as an array, not as elements. Read help about this.

When you read data from the file, you need to wire the array of cluster constant to "byte stream type" input of "Read File.vi" to specify the type of data which will be read from file.

Also there are some examples in LabVIEW which could help you. Go to menu "Help->Examples...->Fundamentals->File I/O->Datalog File Examples"

Good luck.

Oleg Chutko.
Message 2 of 2
(2,984 Views)