LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

what is it about data types of local variables?

Hey there!
I'm trying hard to access the booleans, whose refnums got stored into an array. As the example show, everything's fine unless I start using local variables: I can access the data in the topmost FOR loop. As soon as variables come into play, it seems as if I have to explicitly typecast the data. Is it just me? There has to be a less complicated way... can anybody give me a hint?

Kind regards,
Severin
0 Kudos
Message 1 of 3
(2,574 Views)
Hi Severin,

The output from that property node is of variant data type. You can convert it to boolean by using the Variant to Data VI. See attached example
Sarah

Applications Engineer | National Instruments | UK & Ireland
0 Kudos
Message 2 of 3
(2,564 Views)
Is this related to the post at http://forums.ni.com/ni/board/message?board.id=170&message.id=192305? What exactly are you trying to do?
0 Kudos
Message 3 of 3
(2,558 Views)