LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

variant in event structure

I have a very large user interface that uses tabs and I need to clean it up a bit. I have been playing with registered events > controls on page > value change. I really like the simplicity of it, but I can't seem to get the data type correctly from the variant NewVal terminal. I've tried just about everything I can think of. Attached is an example of what I am trying to do.
 
 
PaulG.

LabVIEW versions 5.0 - 2023

“All programmers are optimists”
― Frederick P. Brooks Jr.
Download All
0 Kudos
Message 1 of 3
(3,124 Views)
Since all the cluster elements are the same you can use the following code:

I added a case for 'Cluster 1' and 'Cluster 2'

Change to your needs

Ton


Message Edited by TonP on 11-14-2007 07:47 PM

Message Edited by TonP on 11-14-2007 07:48 PM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 2 of 3
(3,118 Views)

I like the way this works but but the clusters may not all be the same. When I changed one of the clusters it doesn't work because the type changes. But you did point me in the right direction. I simply use the cluster element to type the variant. Seems to work fine. Thanks Ton.

 

 

PaulG.

LabVIEW versions 5.0 - 2023

“All programmers are optimists”
― Frederick P. Brooks Jr.
0 Kudos
Message 3 of 3
(3,106 Views)