LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Check out our OOP Code Repository Files or visit the LabVIEW Wiki OOP Portal.


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Inserting a class cube on a palette?
Daklu
post Sep 9 2008, 07:14 PM
Post #1


Very Active
***

Member
Posts: 118
Joined: 26-January 07
From: Seattle, WA
Member No.: 7603
Using LabVIEW Since:2006
LV:8.20 ,. ,.
United States us_washington Nothing Selected


Is there some special technique required to insert a class cube on a custom palette? I've tried several times but it doesn't seem to be working.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Sep 9 2008, 07:14 PM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
normandinf
post Sep 9 2008, 09:13 PM
Post #2


Extremely Active
****

Premium Member
Posts: 324
Joined: 18-January 08
From: Montréal, Canada
Member No.: 10515
Using LabVIEW Since:2000
LV:8.6 ,8.5 ,.
ca_quebec Canada Nothing Selected


QUOTE (Daklu @ Sep 9 2008, 03:14 PM) *
Is there some special technique required to insert a class cube on a custom palette? I've tried several times but it doesn't seem to be working.


The Class Cube is a built-in function and I don't think you can access it. In the palette editor, when selecting "Display path to palette file...", you get a message saying it's built-in.
However, if you create a control and put the class cube in (type def or not), you can insert this wrapper control in any palette or save it to user.lib.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Aristos Queue
post Sep 9 2008, 10:44 PM
Post #3


LV R&D Envoy
*****

NI
Posts: 1275
Joined: 15-August 06
From: Austin, TX
Member No.: 5877
Using LabVIEW Since:2000
LV:8.6 ,6.0 ,.
United States Nothing Selected Nothing Selected My Gallery


QUOTE (normandinf @ Sep 9 2008, 04:13 PM) *
The Class Cube is a built-in function and I don't think you can access it. In the palette editor, when selecting "Display path to palette file...", you get a message saying it's built-in.
That particular cube is for "LabVIEW Object", which is indeed built-in. But for classes in general, you should be able to add to the palette just by selecting the .lvclass file. However, this is not working in LabVIEW 8.2, 8.5 or 8.6 (it did work in LV8.2 beta, but broke for some reason in the actual release). No one noticed that until very recently. But the workaround, as has already been mentioned, is easy enough.
QUOTE
However, if you create a control and put the class cube in (type def or not), you can insert this wrapper control in any palette or save it to user.lib.

If you want to insert the block diagram constant into the Functions palette, you can create a VI that has nothing except the constant on its diagram and then add it to the palette as a Merge VI.

--------------------
"A VI outside a class is a gun without a safety. Data outside a class is a target."
--- A message from LabVOOP R&D


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
BrokenArrow
post Dec 8 2008, 10:38 PM
Post #4


Very Active
***

Premium Member
Posts: 243
Joined: 30-July 05
From: Tampa Bay
Member No.: 2655
Using LabVIEW Since:2001
LV:8.5 ,8.2.1 ,7.1
United States Sweden us_florida My Gallery


Along these same lines, how come in my OOP code, my class data is a cube, but on some other code I have inherited, it's a cluster showing the class data? How do I get that later thing?


QUOTE (Aristos Queue @ Sep 9 2008, 05:44 PM) *
...If you want to insert the block diagram constant into the Functions palette, you can create a VI that has nothing except the constant on its diagram and then add it to the palette as a Merge VI.


I think you are referring to Place VI Contents. What used to be called Merge is now the deal when you're sopposed to be able to merge two VI's, which is great demo at shows.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Aristos Queue
post Dec 9 2008, 01:41 AM
Post #5


LV R&D Envoy
*****

NI
Posts: 1275
Joined: 15-August 06
From: Austin, TX
Member No.: 5877
Using LabVIEW Since:2000
LV:8.6 ,6.0 ,.
United States Nothing Selected Nothing Selected My Gallery


QUOTE (BrokenArrow @ Dec 8 2008, 04:38 PM) *
Along these same lines, how come in my OOP code, my class data is a cube, but on some other code I have inherited, it's a cluster showing the class data? How do I get that later thing?
There is no cluster view of LabVIEW classes -- the data is private and there is no way to get access to it (including FP access) other than through interfaces the programmer exposes (FP access can be exposed through an XControl if the programmer chooses).

You may have inherited code written with one of the GOOP toolkits, perhaps?

--------------------
"A VI outside a class is a gun without a safety. Data outside a class is a target."
--- A message from LabVOOP R&D


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
BrokenArrow
post Dec 9 2008, 02:27 PM
Post #6


Very Active
***

Premium Member
Posts: 243
Joined: 30-July 05
From: Tampa Bay
Member No.: 2655
Using LabVIEW Since:2001
LV:8.5 ,8.2.1 ,7.1
United States Sweden us_florida My Gallery


QUOTE (Aristos Queue @ Dec 8 2008, 08:41 PM) *
There is no cluster view of LabVIEW classes -- the data is private and there is no way to get access to it (including FP access) other than through interfaces the programmer exposes (FP access can be exposed through an XControl if the programmer chooses).

You may have inherited code written with one of the GOOP toolkits, perhaps?


I bet you're right The originator of the code was a hardcore C++ programmer. It wouldn't surprise me if he used 3rd party OO. I have a good idea... I'll ask him. Sounds radical, I know.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 9th January 2009 - 02:36 AM