LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

R/W cluster element through property node

Solved!
Go to solution

I have retrieved an array through property nodes using the value property, but haven't found a way to do the same with a cluster. Am I missing something?

 

Thanks,

Glauber

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

You can create a value property node for a cluster. But what you are probably seeing is that the value is returning a variant. If that is the case you have to convert the variant to a cluster using the Variant To Data prim. Define the data type with a constant created from your cluster.

 

Edit: The cluster should be a typedef before you create a constant from it. Otherwise you will have a mess when you modify the cluster.

 

variant to data.PNG

=====================
LabVIEW 2012


0 Kudos
Message 2 of 5
(2,701 Views)

Look at the following:

https://decibel.ni.com/content/docs/DOC-3446

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Message 3 of 5
(2,697 Views)
Solution
Accepted by topic author Glauber

Ah yes. If you want to get an individual element then read the document Adnan Z linked. From the title this seems like what you want to do but from the body it looked like you wanted the whole cluster.

=====================
LabVIEW 2012


Message 4 of 5
(2,695 Views)

Thanks!

0 Kudos
Message 5 of 5
(2,683 Views)