Philippe, Actually, an ActiveX container's Value is a reference to the one (and only one) ActiveX control that is loaded into the container *at edit-time* (not a reference to the ActiveX container Control on the FP). When you drop an ActiveX container on the FP you get a Terminal on the BD (not a control refnum). The data (value) that the Terminal will output at run-time is an ActiveX reference to the control within the container. Since a SubPanel can be reassosiated with new VI references and only *at run-time*, NI folks decided not to use the same design as the ActiveX container, and eliminate the Subpanel value (and BD terminal), which would logically contain a VI Reference. However, flowing this data through a diagram in a SubPanel typed wire would be rather pointless, since the VI Reference type already exists. Interestingly, the subpanel, is the only FP control that I can think of which has no data/value (actually, its value is a null variant), and therefore it has no terminal (or LabVIEW suppresses it). Finally, the reason you have an invoke node than a reference is that NI folks thought that you would rather have an explicitly linked invoke node on the BD (for calling directly on the BD of the VI containing the SubPanel), than an explicit Reference (for passing to and calling from a subVI). Regards, -Jim
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of PJ M Sent: Friday, January 30, 2004 1:31 PM To: Scott Hannahs; LABVIEW INFO Subject: Re: Subpanels in 7.0 Scott I am talking about a Subpanel Reference, not about a VI ref. I am expecting a behavior similar to an ActiveX container (drop an ActiveX container on the FP and you get an ActiveX Ref on the BD), PJM Scott Hannahs <[EMAIL PROTECTED]> wrote: At 09:12 -0800 01/30/2004, PJ M wrote: >Another strange thing (to me) is why don't I *automatically* get a subpanel refnum when I create a subpanel (instead of that "insert VI" method) ? >Also, because of that, whatch out for these tranparent supanel with no scrollbar (it is so easy to get more that one on the FP without any indication on the BD). Because the subpanel accepts a vi ref number and not generates it. The ref number is for whatever vi you want to put into it. The subpanel is a sink for references not a source. -Scott Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!
