LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Use initialization file key names/values as cluster name/values

I am trying to assign my initialization key name and values to a clusters names/values repestively.  For example, I read in the ini file key names (dir, user, year) and would like those to be the cluster labels and then read in the associated values and assign them to the cluster.

 

For example, if my ini file is:

 

[Sample]

dir=c:

user=jnoel

year=1971

 

I would like the cluster element names to be dir,user, and year with the values for each being c:, jnoel, and 1971 respectively.  I tried using the property node for label:text but Labview states the labels are not allowed to be changed in runtime.  I would think there would be some way to do this (and if not there should be!). 

 

Any help would be greatly appreicated.

0 Kudos
Message 1 of 5
(3,784 Views)

Hi JimNoel,

you can change the control description if it´s visible. How do you assign the control with the element if not with the name?

 

Mike

0 Kudos
Message 2 of 5
(3,771 Views)

Hide the cluster names and show the captions.

 

Captions can be written at run time.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 5
(3,755 Views)

Ben wrote:

Hide the cluster names and show the captions.

 

Captions can be written at run time.

 

Ben


 

Sorry,

that´s what i´ve meant.

 

Mike

0 Kudos
Message 4 of 5
(3,748 Views)

MikeS81 wrote:

Ben wrote:

Hide the cluster names and show the captions.

 

Captions can be written at run time.

 

Ben


 

Sorry,

that´s what i´ve meant.

 

Mike


 

No it is me that should say "Sorry". Before my coffee had kicked in I had not realized that the description = caption.

 

I was sorta wondering why you hadn not suggested captions, "doh!"

 

Well between the two of us we got it right. Smiley Wink

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 5
(3,742 Views)