LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Enum, Ring, Kombinationsfeld

Hallo,
 
Ich möchte ein Feld benutzen das programmatisch änderbar ist.
Das Feld hat 3 Strings. Wärend des Programmablaufs soll sich der String ändern. Das ist mit dem Eigenschaftsknoten möglich.
Aber es soll sich auch die Anzahl ändern.
 
Aber es steht immer auf "3 Felder" fest.
 
Wie kann ich diesen Wert ändern wärend des Programmablaufs, z.b. Boolisch
 
Worin besteht der genaue Unterschied zwischen Ring, Kombinationsfeld und Enum?
 
 
0 Kudos
Message 1 of 16
(4,057 Views)
Hi Simon,

enum: you define this at programming, cannot be changed on runtime, elements are counted up automatically, starting at 0
ring: you can define this at programming AND change while runtime, elements can have arbitrary numbers

What's an 'Kombinationsfeld'? Can you attach a picture?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 16
(4,042 Views)
I'm guessing that's a combobox.
Jarrod S.
National Instruments
0 Kudos
Message 3 of 16
(4,028 Views)
Hi,

well, I never used comboboxes before...
So I can only guess: comboboxes seems to behave like rings, they just give you the string instead of the number as their data type.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 16
(4,023 Views)
k, thx for the elucidation.
 
My real problem is a other one. I may explain it with a picture.
You can see here 2 Arrays with rings in a cluster.
I want the following:
If you for example enter in the first array "Netzteil 6033A", that the chooseoptions in the next ring in the Art array should be a other one ase for example the chooseoptions from "Ausgabetext" in array 1.
 
The problem is not to change the strings in the rings of the 2 array as a function of the first array.
I also want to change the number of strings in they special datatype in the array. How could i do that?
0 Kudos
Message 5 of 16
(4,007 Views)
Hi Simon,

in an array all elements have to have the same properties! So you cannot have in element #2 other strings than in element #1!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 16
(4,000 Views)
k,
 
now i have a nother question:
 
Can i change the view of a datatype in a cluster program dependent?
 
I have a Cluster with 5 Ring datatypes in it. I want to choose the view of those rings with for example a boolish element from somewhere else.
 
Is that posible?
0 Kudos
Message 7 of 16
(3,981 Views)

In a cluster you are free. You can have a lot of controls of the same type with different properties.

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 8 of 16
(3,979 Views)
Yes, hmmm  how should i explain that at the best way.
 
I have a Cluster in a Cluster. In that Cluster, witch is in the Cluster, are 5 Rings. And i wnat to make them visible or not visible.
 
So i need settings, where i can choose settings of elements in the elements. I cant found them...
What is to do?
0 Kudos
Message 9 of 16
(3,976 Views)

You can access the element of a cluster using the controls property. This gives you an array of control references.

Have a look at the attached picture.

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 10 of 16
(3,975 Views)