LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Having trouble assigning the Data Type to Shared Variables

I have some type definitions that I need to use as shared variables.  When making the shared variable, I create it and then name it.  I then select "From Custom Control..." in the Data Type field and select the applicable type definition.  The problem is that it displays some other type definition.  Am I doing something wrong?  I am using LV v.8.6. I don't recall having this problem with v.8.5.1.
0 Kudos
Message 1 of 4
(2,812 Views)

Do you have your custom controls set as type defs or strict type defs?

 

0 Kudos
Message 2 of 4
(2,789 Views)

Hi Hunter,

 

All the custom controls are set to Type Def.  Since sending my question, I noticed that the system uses the first similarly used custom control and it's name.  For example, I have several clusters that each have four numeric controls in them.  When creating a shared variable for each of the various clusters, it uses the first custom control that was set up as a shared variable.  I hope this makes sense to you.  I have not had a chance to see if the shared variables are working because I have other issues to deal with first. 

 

What troubles me is that I don't recall seeing this with v.8.5.1.

 

I suppose I could and perhaps should use a common type def for all similarly used shared variables.

 

Dave

0 Kudos
Message 3 of 4
(2,780 Views)

A Common Type def will make things much easier down the road especialy if you decide to make changed to the data type.

 

Hunter

0 Kudos
Message 4 of 4
(2,762 Views)