LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

updating type defs in Xcontrol Facade

Hi,

I'm trying to create an Xcontrol that is an array of numerics (e.g., singles).  I change the Data ctl type def to an array of singles, and, not surpisingly, the Facade vi is broken, since the Data In and Data Out terminals aren't arrays (they are scaler doubles).  The problem is I can't find anyway to update this to the correct type def.  How do I do this?  I noticed that you can't even right click on Data In (or Data Out) to update the type def.  Help please...

Thanks,
Steve

0 Kudos
Message 1 of 6
(3,222 Views)
I just recently created an Xcontrol that is an array and have not experienced any such problems.
 
 
For testing, I made a new one and tried the following "data.ctl" in sequence:
 
DBL, Array(DBL), SGL, Array(SGL).
 
At each step, the facade VI updated immediately to the new type. 🙂
 
Maybe you can post your xcontrol.
0 Kudos
Message 2 of 6
(3,217 Views)
Hi,

I tried again (quit LabView then restarted it), and tried again (once again, no luck).  I've attached my extremely simple XControl (a 1-D array of doubles).

Thanks for the help,
Steve

0 Kudos
Message 3 of 6
(3,208 Views)
Very interesting.
 
If I open your attached XControl, everything works fine. The facade is NOT broken and contains a SGL array in the right place (see image).
 
Maybe somebody from NI has more insight into this...
 
 
0 Kudos
Message 4 of 6
(3,204 Views)
Wow, I just re-opened the example I posted, and it 'fixed' itself.   I then re-did another example (same thing), and again, I had to re-open the file to get it to work.  So, either I'm missing something, or maybe there is an updated version of LV 8.0 which I need...

0 Kudos
Message 5 of 6
(3,196 Views)
I figured out what to do to get the Xcontrol facade type def to update:  I have to select 'Apply changes' in the Data control menu.  I would think this would be automatic, but apparently, it's not.  This explains why when I re-open the same XControl after closing it, everything is ok.

0 Kudos
Message 6 of 6
(3,187 Views)