LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview on Shared Variable

Hi,

 

In our application we want share the some IO's in Tablet PC(remote PC) and HOST PC.

We are using real time controller in our application.

For this purpose we have create shared variables in *.lvproj. While we craeting shared variables we can not assign DATA type as a cluster of different elements to the shared variables.

Due to this we created *.ctl file of that cluster and then tried to assign the same cluster to the particular shared variable.

There are nuamber of shared variables in this application with different cluster of elements.The problem is that the same *.ctl file assign to two different shared varialbles which we not required. Because we have created different *.ctl files for two different shared variables.

 

Is our apporach is right?

Can we use *.ctl file as a data type as cluster of different elements for shared variable?

 

Please suggest ....

Thanks in advance

 

0 Kudos
Message 1 of 2
(2,648 Views)

I believe your approach is correct.

Share Variables use the data type. So if you have a number of controls with the same type of cluster, e.g. Cluster1 is String & Numeric, Cluster2 is String and Numeric, then when you assign the Shared Variable to Cluster2 it will be identified as Cluster1.

This is a reported bug in shared variables.

One workaround would be to change the data type e.g. Numeric in Cluster1 may be INT16 while Numeric in Cluster2 may be INT32.

Then the Shared Var's will identify them as different data types.

 

DOK

0 Kudos
Message 2 of 2
(2,637 Views)