LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to place a reference (strict) of a cluster into a Type Def. control?

Solved!
Go to solution

Example use: In for instance queued message handler there is a cluster holding references to front panel indicators and controls.

Cluster of ref's.png

I have a type-def'ed front panel cluster which I need to add to this cluster of references.

 

In the typedef for front panel controls (shown above), I place a control refnum then
Right click it ->Select Vi Server Class -> Generic -> GObject -> Control -> Cluster -> Cluster.

This does however not produce a typedef of the strict type which I need.

How can I acieve this?

 

I manage to place controls into the typedef cluster of common simple types (numbers, strings etc.) by placing a control refnum in the cluster and (for string control reference)
Right click ->Select Vi Server Class -> Generic -> GObject -> Control -> String -> String
Think this works because they dont need to be strict typed.

 

0 Kudos
Message 1 of 4
(4,280 Views)
Solution
Accepted by topic author heel

Drop an instance of your cluster type def on the FP then drag it into the referance.


"Should be" isn't "Is" -Jay
Message 2 of 4
(4,261 Views)

Thanks Jeff, exactly what I was missing.

0 Kudos
Message 3 of 4
(4,245 Views)

@heel wrote:

Thanks Jeff, exactly what I was missing.


Its one of those "Tricks" that once you know it you know it and wonder; "Why didn't anyone tell me I could just do THAT?"  it happens all the time!


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 4
(4,238 Views)