thoraz
thoraz

Reputation: 229

LABVIEW - How to create a csv file with string, double and integer?

I'm working in LABView and I want to create a csv file with an header string, 8192 double type values and a integer type value at the end. I tried with the clusters but it seems not work and so I'm stucked. My situation is the following: enter image description here If I connect the output cluster with the "Create Spreadsheet" vi it gives me incompatible type error and same if I use the "Convert Cluster to Array" vi.

Can anyone help me?

Upvotes: 0

Views: 5900

Answers (1)

D.J. Klomp
D.J. Klomp

Reputation: 2659

Convert all the double arrays to string arrays in the format you want and make your input one big string array, in that way you can also included the header. So the code would look like this, it is an older version of labview but works the same way.

enter image description here

And the result array that gets written to file looks likes this:

enter image description here

Upvotes: 2

Related Questions