LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

insert Varray values into a cluster where the array is

Solved!
Go to solution

Hei,

 

I am using openG libraries. I have a cluster MAIN which has 2 clusters A,B that contains different controllers (bool,strings, integers, enum) and an array C which has a cluster that also contains different controllers. What I want to do, is to read from a INI file and save it into A, B cluster and in C array. I manage to write the values for A,B clusters, but with teh array C I have some problems. 

 

How or which is the best way to access the values from the INI file and save it into the C array which is a part of MAIN cluster. The code below is how I do it for cluster A and B.

 

Labview.PNG

 

Thanks for the help.

0 Kudos
Message 1 of 4
(2,767 Views)

Hi!

 

Based on this information, if I understood correctly, you have an array inside an ini file, and you wish to read this array into a variant cluster. What do you mean by "I have some problems"? What did you attempt and what is the issue?

 

Generally speaking, INI files are simple to read using the inbuilt  LabVIEW library. We even have resources in using more advanced datatyes here. Once you have the data array imported, you should be able to read it with Set Cluster Element by Name or other forms of data manipulation.

 

Regards:

Andrew Valko
National Instruments Hungary
0 Kudos
Message 2 of 4
(2,706 Views)
Solution
Accepted by topic author D_1

Hi,

 

I have to excuse myself for the bad explanation. I will need to work on that. Let's see if I can do better...

 

In the INI file I have some sections that I want to represent as clusters AND some sections to be an array of clusters where the key values correspond to the controls of the clusters. Furthermore, the VI  has a main cluster which has clusters with some elements (int, string, enum) and an array of cluster which has also has some elements. I hope it isn't to confusing. To simplify, I want to write the values for the "children" of the main clusters. As may have noticed I am preparing this code to be object-oriented approach.

 

Here is the solution I got on LAVA: https://lavag.org/topic/18951-insert-varray-values-into-a-cluster-where-the-array-is/

 

Thanks for contributing

0 Kudos
Message 3 of 4
(2,674 Views)

Dear D_1,

 

Thanks for letting me know.

 

Regards:

Andrew Valko
National Instruments Hungary
0 Kudos
Message 4 of 4
(2,634 Views)