cancelar
Mostrando resultados para 
Pesquisar então 
Você quer dizer: 

array of references

Resolvido!
Ir para a solução

Hi

I have several commands that I want to control through references... I can create an array of references and this seems working. However if I make a cluster of an array of references and another reference to another object, the array is not appearing in the cluster ...

Something like this

nitad54448_0-1623707959329.png

 

Thanks

0 Kudos
Mensagem 1 de 5
2.209Exibições
Solução
Aceita pelo autor do tópico nitad54448

Unbundle by Name only shows elements that have labels.  The data coming out of Build Array has no label, so that element in the cluster has no label. To see all the elements use the plain "Unbundle" function.  (If you like, I can give you an XNode that adds a label to data in a wire.).

"If you weren't supposed to push it, it wouldn't be a button."
Mensagem 2 de 5
2.201Exibições

Great, thanks for help.

I suspect I need to add a Label to the array, since adding to an element does not change anything.

 

nitad54448_0-1623709342432.png

 

 

How to do that ?

Thanks

0 Kudos
Mensagem 3 de 5
2.186Exibições

That's because your array does not have a name.  Create a constant for your cluster and wire that up to the Bundle.  Be sure to name the array.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Mensagem 4 de 5
2.185Exibições

Alternatively you can attach a label by type casting to a labelled constant (which i've used a couple of times), but in general i'd suggest Crossrulz suggestion. 🙂

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Mensagem 5 de 5
2.059Exibições