LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Check out the related Code Repository Files or visit the LabVIEW Wiki Development Environment 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: 115
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: 274
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: 1226
Joined: 15-August 06
From: Austin, TX
Member No.: 5877
Using LabVIEW Since:2000
LV:8.5.1 ,. ,.
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

Reply to this topicStart new topic

 




Time is now: 1st December 2008 - 11:52 PM