Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Cluster Shared variables

I am programming with LabVIEW Real Time ver. 8.0.
 
I want to create a cluster shared variable. However, in the listing of Data Type it does not appear the cluster type. My cluster is composed of 6 numbers, some of them DBL, SGL and I 32
 
How can I convert my cluster to a valid shared variable data type ?
 
Thanks
Simbani
0 Kudos
Message 1 of 16
(10,461 Views)
You may need to re-format your cluster to a string (flatten to string) and/or convert to a binary array.  I have not done this before, so just an idea.
Preston Johnson
Solutions Manager, Industrial IoT: Condition Monitoring and Predictive Analytics
cbt
512 431 2371
preston.johnson@cbtechinc
0 Kudos
Message 2 of 16
(10,447 Views)
Simbani,

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. Note that the custom shared variable type doesn't support some features such as RTFIFO (for LabVIEW Real-Time) and alarming (for LabVIEW DSC).

Gerardo
0 Kudos
Message 3 of 16
(10,434 Views)
Thanks.
 
I have been able to create the custom shared variable following your steps. Also, I have wired it without any trouble. However when downloading the VI to the target I get this error :
 
ni_tagger_lv_Read.viLabVIEW: Failed to load shared library nitaglv.dll:ni_tagger_lv_Read:E on RT Target device
 
Any idea of why do I get this error and how to eliminate it ? 
 
Simbani
 
 
 
0 Kudos
Message 4 of 16
(10,411 Views)
Simbani,

It sounds like you don't have the variable client component installed on the target, see the image.

Gerardo
Message 5 of 16
(10,387 Views)

Gerardo,

Thanks a lot.

I have installed the Variable Client Support 1.0.0 and I get not any error when downloading to the target. Now, the cluster shared variable seems to work properly.

Regards

Simbani

 

 

 

0 Kudos
Message 6 of 16
(10,372 Views)
If you add a cluster shared variable is it possible to access it in a client PC connected to the same network as the rt controller?The network-published option seems to be disabled if I try to configiure a cluster...

Kallis
BR
0 Kudos
Message 7 of 16
(10,335 Views)
Kallis,

Yes, you can publish a cluster shared variable to the network (see the image). What you cannot do is use the real-time FIFO feature, that is disabled when using custom datatypes.

Gerardo


Message Edited by gcubed on 01-03-2006 05:49 PM

Message Edited by gcubed on 01-03-2006 05:49 PM

0 Kudos
Message 8 of 16
(10,299 Views)
Gerardo,

Thanks for the reply. I was able to add some "network-published" custom cluster variables. But at times I have seen that certain clusters cannot be used for making shared variable with the "network-published" option like the one that I have attached here. I get the message shown in tha attached image when I try to  create a variable.

Also I noticed that my shared variable porperties window( see the attached image) dosen't show most of the categories that was there in your image....Anyu idea why this is happening?

Kallis
BR
Download All
0 Kudos
Message 9 of 16
(10,288 Views)
Kallis,

I'm not sure why, but it seams that the network-published shared variable doesn't support the DAQmx Task Name datatype. However, it does seem to support the DAQmx Physical Channel datatype. I'm not sure if this is expected behavior. You may want to call into the support team and check.

Gerardo
Message 10 of 16
(10,276 Views)