LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I read a value from a variant generated by ArrElem.Value?

I have control on a page that is a 1D array of clusters and I can read the data from the element I have just clicked on.  The data I get back is:
 
'Type' -> "A"
'Alarm Time' -> 01/01/1904 00:00:00
'Alarm State' -> OK
'System' -> "DO"
'Description' -> "DO"
'Bkgnd Colour' -> 12369084
'ID' -> 4
'Value' -> 0.000E+0
'LO Alarm' -> -1.000E+0
'HI Alarm' -> 1.000E+0
'Unack'd' -> FALSE

 
What I can't do is read the value of a particular item such as 'ID'?  I've tried various functions with no success, please can anyone help?  I've attached the VI I am working on:
 
 
 
0 Kudos
Message 1 of 3
(2,715 Views)
you will need to use the variant to data vi under cluster, class & variant -> variant.  You will need to create a constant on the diagram of the cluster that this type refers to....  then you can unbundle by name.

Paul
0 Kudos
Message 2 of 3
(2,710 Views)

Brilliant, that works brilliantly!  I did try something similar to that but it didn't work!

 

Thanks! Smiley Happy

0 Kudos
Message 3 of 3
(2,705 Views)