LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a shared variable that the data type is a cluster stored in a library

Hi all,

 

I want to create a shared variable that the data type is a cluster stored in a library belongs to the same project to keep the connection with the type def as the photo below shows.

 

The picture below show a shared variable that the data type is a Enum stored in library (CommonLLB.lvlib).

 

 

Capt.JPG

 

Thanks.

0 Kudos
Message 1 of 3
(978 Views)

Hi,

 

Taken from this forum discussion.

 

You can use a cluster as a shared variable type. First you have to convert your cluster into a custom control by right-clicking on your cluster and select Advanced>>Customize. Then save the cluster as .ctl file. In the shared variable dialog, choose "Custom" for the data type and select your .ctl file.

 

Message 2 of 3
(934 Views)

I know this method but the variable loses the link with the cluster in the library, because the cluster will be saved outside this library.

 

I'm looking for another method.

 

0 Kudos
Message 3 of 3
(916 Views)