LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Producer Consumer Refnum Error

Hi all

I have a Producer/Consumer structer in my Program. On the Frontpanel there are a couple of elements. When I change the state of one of this elements I deliver the refnum of this element to the consumer loop.  With the variant to data i can recive the corrsponding refnum.

My Problem is :

This will just work with one kind of the frontpanel elemnts but not with the others. ( See the attached VI)

I hope someone can help me.

regards


0 Kudos
Message 1 of 3
(2,095 Views)
I was able to get it to work by inserting the "To Variant" function in the producer events.  So rather than wiring the cluster into the cluster and depending on the cast there, use the actual "To Variant" finction.
0 Kudos
Message 2 of 3
(2,093 Views)
Hi evan

Thank you for the answer.

At this moment I found this solution at:
http://wiki.lavag.org/index.php/Image:Typecasttoanotherclass.png

regards
0 Kudos
Message 3 of 3
(2,089 Views)