LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save cluster

Solved!
Go to solution

Hello everybody,

I was helped to write this vi, now I would save the result in a txt or excel but if I can't connect directly the cluster with the Writespreedsheet.vi.

 

Can you help me?

 

Download All
0 Kudos
Message 1 of 8
(2,367 Views)
Solution
Accepted by topic author franbecks

You need to iterate through your array of clusters in a for loop, unbundle them elements, and turn them into an array of strings.  Auto-Indexing on the For Loop will let you put out a 2-D array of strings you can wire to the Write to File subVI.

0 Kudos
Message 2 of 8
(2,329 Views)
Solution
Accepted by topic author franbecks

Hi fran,

 

convert your 1D array of clusters into a 2D array of strings:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 8
(2,327 Views)

@GerdW: curious if there is a way to get the cluster name and convert its value (regardless to type) to string, concatenate them and write to file.

 

if possible type also, for use of saving for future configuration loads.

CY (expired CLAD)
0 Kudos
Message 4 of 8
(2,317 Views)

Yes. Look into the Programming - File I/O - Configuration File VIs. That is one of many ways.

0 Kudos
Message 5 of 8
(2,310 Views)

I mean without knowing the cluster beforehand

CY (expired CLAD)
0 Kudos
Message 6 of 8
(2,307 Views)

ok, figured it out

CY (expired CLAD)
0 Kudos
Message 7 of 8
(2,266 Views)

Thanks to GerdW and  

0 Kudos
Message 8 of 8
(2,239 Views)