LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems in SUBVI after expanding a cluster

Hi LabView-Experts,

I have a problem with editing an existing LabView program: I added an element (boolean control) to an existing cluster. This cluster is called from several SubVIs by Control RefNums.
After the expansion of the cluster I got error message from the main VI (class conflict) so that I deleted the Contol RefNums in the SubVIs and Inserted them again and also resetted the wireing from the cluster to the SubVIs. After that there were no more errors in the main VI but in all changed subVIs the called Refnum had no elements anymore ( I wired the Control Refnum with a Property Node). So how can I initialize the Control Refnum or pass the elements to it?

Thanks a lot for your help and please ask, if you did not understand what is my problem.

Kind regards,
Christian
0 Kudos
Message 1 of 6
(2,915 Views)
What do you mean by "no elements"?  Do you mean nothing specific to your control?
 
If that's the case, then you probably put generic control references in your SubVIs instead of a reference to your specific control.  Try this: on your actual cluster, right click->create->reference.  Copy that and paste it into your SubVIs and you should have cluster specific options again.
0 Kudos
Message 2 of 6
(2,908 Views)
Thank you for your very fast answer.

If I insert the property node in the SubVi  without wiring the Control Refnum with the Property Node it is ok..then the Property Node (Value) has all elements in it. But if I then wire the Control Refnum which should call the cluster with the Property Node there are no elements any more at the property node.. So I think the problem is somehow related with this control Refnum..

I have chosen Generic->Gobject->Control->Cluster->Cluster for the VI Server Class of the Control Refnum because thats what it was before expanding the cluster.

What should I do?
0 Kudos
Message 3 of 6
(2,900 Views)
I think you may be doing things in a much more difficult way than necessary.  Can you attach a screenshot of the property node and refnum, or (even better) a sample vi?
0 Kudos
Message 4 of 6
(2,898 Views)
Here is a screenshot of the SubVi. Let me know if a sample VI is necessary... I can prepare this at the beginning of next week. But maybe the screenshot helps you somehow.

The Control Refnom which causes the problem is calles "cam control". As you can see it is wired to a property node which shows no elements..

Have a nice weekend and thank you for your help so far.

Bye
Christian
0 Kudos
Message 5 of 6
(2,892 Views)
OK, I think I know what's going on.  If you look at the refnum control on the front panel, there should be an orange star in the bottom left corner.  That means it's typed (as in, LabVIEW knows what's in it and what data types should be present).  I'm guessing yours doesn't have that.  To make it typed, just copy and paste the original cluster control onto the front panel of the SubVI, then drag it onto the refnum control, and you should be set.
0 Kudos
Message 6 of 6
(2,886 Views)