LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Strictly Type Constant Refnum

It's easy enough to create a Refnum control for a strictly typed cluster control.

I want to create one for a strictly typed cluster constant.

Is that even possible?

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 1 of 23
(2,055 Views)

Yes.  It's possible.

Just enumerate all objects on the diagram, and find the one with classname as clusterconstant.

 

George Zou
0 Kudos
Message 2 of 23
(2,045 Views)

but ... why?

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 23
(2,024 Views)

@zou wrote:

Yes.  It's possible.

Just enumerate all objects on the diagram, and find the one with classname as clusterconstant.

 


That's not even close to what I asked for.  I want to set the server class of a refnum control to a strictly typedef'd cluster constant.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 4 of 23
(1,998 Views)

@Yamaeda wrote:

but ... why?


For the "Affected Items" typedef for a custom shortcut menu.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 5 of 23
(1,996 Views)

Not sure what you mean.

Are your try to something like this:

Untitled.jpg

Could you should us your code?

 

George Zou
0 Kudos
Message 6 of 23
(1,955 Views)

@zou wrote:

Not sure what you mean.

Are your try to something like this:

Untitled.jpg

Could you should us your code?

 


Are you only reading every 5th word that I write?

I want a Refnum Control to have a VI Server Class of a strict cluster type.

paul_cardinale_0-1666025799906.png

 

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 7 of 23
(1,944 Views)

It might not be possible, since having a strictly typed constant is only enabled by a special flag (which I believe you are intimately aware of).  I don't believe you can even make a reference for ANY kind of BD constant.

 

But I guess that's why you're asking, because you know all of this and you want to see if anyone has some kind of undocumented way to make this happen.

 

Edit: What is to be gained by using a BD constant ref instead of a control ref?  I don't see any practical reason why a control couldn't be substituted for a BD constant.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 8 of 23
(1,929 Views)

@paul_cardinale wrote:

@zou wrote:

Not sure what you mean.

Are your try to something like this:

Untitled.jpg

Could you should us your code?

 


Are you only reading every 5th word that I write?

I want a Refnum Control to have a VI Server Class of a strict cluster type.

paul_cardinale_0-1666025799906.png

 


I think you need to give zou a break, as this user is usually spot on with their answer when they chime in.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 9 of 23
(1,926 Views)

@billko wrote:

It might not be possible, since having a strictly typed constant is only enabled by a special flag (which I believe you are intimately aware of).  I don't believe you can even make a reference for ANY kind of BD constant.

 

But I guess that's why you're asking, because you know all of this and you want to see if anyone has some kind of undocumented way to make this happen.

 

Edit: What is to be gained by using a BD constant ref instead of a control ref?  I don't see any practical reason why a control couldn't be substituted for a BD constant.


You can make a reference to a BD constant:

paul_cardinale_0-1666027447038.png

But I want the reference to be for a specific type of cluster, not a generic cluster.

I want this for the "Affected Items" typedef for a custom shortcut menu.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 10 of 23
(1,915 Views)