LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting the label of structure

Is there any node in LabVIEW which gives the output as a name of the structure(For, while,case, timed loop). I tried with property node but that failed. Is there any other way to solve this problem??

0 Kudos
Message 1 of 5
(1,611 Views)

Hello!

 

Are the Generic.Class Name and Node.Label.Text properties the ones You are looking for?

 

https://zone.ni.com/reference/en-XX/help/371361R-01/lvprop/gen_class_name/

https://zone.ni.com/reference/en-XX/help/371361R-01/lvscript/node_label/ 

 

Property_Nodes.png

LLindenbauer_0-1605709383605.png

 

0 Kudos
Message 2 of 5
(1,578 Views)

One thing to be careful of is that the Flat Sequence Structure only inherits from GObject so the above code would throw an error when you tried to cast that reference to a node.

Matt J | National Instruments | CLA
Message 3 of 5
(1,566 Views)

Thanks, It works

0 Kudos
Message 4 of 5
(1,455 Views)

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 5 of 5
(1,432 Views)