From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,333 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,323 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,319 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,317 Views)

Thanks!

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