LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't convert from weakly typed to strictly typed Refnum

Hi guys,

 

I can not select Include Data Type for my refnum. I want to convert from weakly to strictly typed.

0 Kudos
Message 1 of 7
(3,094 Views)

I find out. When I create a text button refnum, I can't get it strictly typed. When I use regular button refnum it's strictly typed.??

0 Kudos
Message 2 of 7
(3,054 Views)

If you ctrl-drag the control into the refnum control, it will adapt.

 

It may not be obvious but just pretend the refnum control is a cluster container and drag and drop the other control into it. When you find teh sweet spot the refnum will adapt.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 7
(3,044 Views)

Ben,

 

 

To what the refnum control will adapt? Coz I can't get a strictly typed refnum for a text button.

0 Kudos
Message 4 of 7
(3,015 Views)

With no code or images you and I could dance for days!

 

I'll let my grandaughter help out a bit to see if we can get anywhere.

 

 

In the image below Oliva is trying to figure out how she can crate a refnum that is typed like the string control she has on the FP.

1.JPG

 

 

To let LV "know" how she wants the refnum typed, she oes a control-drag on the string control...

 

2.JPG

 

 

...and as shown below (A) she drags the copy until she sees she is over the sweet spot (notice marching ants around ref) and then she drops the control (B)...

3.JPG

 

...resulting in a refnum that istyped as s string.

 

If that does not help then slow down and post code or iamges to illustrate your request.

 

Ben

 

PS Please excuse the proud grampa thing. i have to do smoething to make answering questions fun for me. Smiley Wink

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 5 of 7
(3,005 Views)

Ben,

 

 

Only for the nice pics of ur granddaughter I would like to give u Kudo's. U can be very proud... 😉

 

But regarding my topic.I need to link that refnum to to a reference on another vi. But if that reference at the other vi is not strictly typed, I can't get my refnum strictly typed.

Download All
0 Kudos
Message 6 of 7
(3,000 Views)

I think I understand better now.

 

You can either take the route of passing the strictly typed refs or to work with the non-strict types.

 

This thread outlines how I pass the refs.

 

It uses Action Engines to pass a type def cluster of the refs I need.

 

If that route is of no use then this thread talks about dealing with refs of unknown types.

 

Sorry about teh shot-gun approach to answering. This machine does not have a modern version of LV.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 7
(2,995 Views)