Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Network Variables Custom Control Size Limit

I have a RT application running on cRIO and I'm using Network Variables to communicate status and commands from my desktop host User Interface.  Most of the Network Variables are custom controls - made of clusters.  Thus, I add the Network Variables to my project and all is fine.  However, in one case I have a very large custom control, made of about 6 custom controls, and when I attempt to create a new Network Variable I get an "Invalid Data Type" error.  It's not apparant why I get this and I am wondering if there is a size limitation for a custom control Network Variable.  Any ideas?

 

Thanks.

0 Kudos
Message 1 of 7
(3,668 Views)

Hi meg57,

 

Can you post a copy of the custom control you are trying to use for your Shared Variable? 

0 Kudos
Message 2 of 7
(3,651 Views)

I attached the custom control in a .zip file which includes the other controls.  Refer to Calibration Constants.ctl.

 

Thanks.

0 Kudos
Message 3 of 7
(3,648 Views)

Hello meg57,

 

I was able to make Calibration Constants.ctl a network shared variable without any problems in LabVIEW 2009. What version of LabVIEW are you using? I have added the project I used in order to test this if you are using LabVIEW 2009.

 



Jim St
National Instruments
RF Product Support Engineer
0 Kudos
Message 4 of 7
(3,640 Views)
This is interesting - I took your LabView project, which you created to test creating a Network Variable from the Calibration Constant custom control I posted earlier, and after observing that the Network Variable could be created, I pursued a divide and conquer until I understood what was happening.  First, I must point out that what I posted in the .zip file earlier was scrubbed a little before posting - I changed the names of some of the labels and re-initialized default values.  Anyhow, working from within the project you posted I replaced the scrubbed .ctl files with the originals and again I was unable to create the Network Variable.  I then replaced the .ctl files one at a time until I found the one causing the problem.  It came down to 'calibration constants - solenoid fule.ctl' file.  Cutting to the chase, all I needed to do to make this work was to change the name of one of the labels of one of the cluster items making up that custom control.  But, it's more than that.  I would then change the label name back to what it was and I'm still able to successfully create the Network Variable.  I demonstrated this repeatedly for myself just to be sure and got the same results everytime - can not create the Network Variable using the original .ctl files, change a label name and then back again and the problem goes away(???).
0 Kudos
Message 5 of 7
(3,620 Views)

Hi meg57,

 

Are you using LabVIEW 2009 SP1?  I was also able to create the shared variable from your files, but I'm in the SP1 version. 

0 Kudos
Message 6 of 7
(3,592 Views)

I'm using LabView2009.  I haven't received SP1.

 

As noted in my previous posting, I am able to create the Network Variable, but again, as described earlier, I don't understand the odd behavior.  I would consider this issue to be resolved using the method I described. 

0 Kudos
Message 7 of 7
(3,573 Views)