Jump to content

insert Varray values into a cluster where the array is.


Recommended Posts

Hei,


 


 I have a cluster MAIN which has 2 clusters A and B that contains different controllers (bool,strings, integers, enum) and an array of clusters C 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. I have attached my code for the reading of the cluster A and B.


post-53420-0-16799000-1429865801.png

Link to comment

Woooow,cool. But I want to build from different sections an array. What I am doing is this: In sections I am looking for a special character. If found him, I add an array element to the array C.

 

Is it possible to have a different syntax for the INI file. Like this :

 

 

[Cluster A]

Numeric = "2,000000"

Numeric 2 = "2,000000"

String = ""

[Cluster B]

Numeric = "2,000000"

Boolean = "FALSE"

Boolean 2 = "TRUE"

 

[Array Of Cluster C 1]

Ring = "0"

String = "a"

 

[Array Of Cluster C 2]

Ring = "0"

String = "b"

 

[Array Of Cluster C 3]

Ring = "0"

String = "c"

 

 

 

And for comparison this is what Write Read Cluster.vi is giving with the same values:

 

[Cluster A]

Numeric = "2,000000"

Numeric 2 = "2,000000"

String = ""

[Cluster B]

Numeric = "2,000000"

Boolean = "FALSE"

Boolean 2 = "TRUE"

 

[Main Cluster]

Array Of Cluster C.<size(s)> = "3"

Array Of Cluster C 0.Ring = "0"

Array Of Cluster C 0.String = "a"

Array Of Cluster C 1.Ring = "0"

Array Of Cluster C 1.String = "b"

Array Of Cluster C 2.Ring = "0"

Array Of Cluster C 2.String = "c"

Edited by D_1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.