LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error of reference to Tab Control when extracting from TypeDef

Solved!
Go to solution

Hello everyone,

I'm trying to unpack a Tab control reference from a Typedef, but I get the following message when I put the probe after the unbundle:

Not A Refnum
Refnum (in hex): 0x00000000


The direct reference gives the following value on the probe and it works:

 

Class name: TabControl
Control label: Tab
Refnum (in hex): 0xED0007DE
Owning VI: Untitled 5

 

 

The procedure I follow to create the typedef is the following:

  1. Create the reference from the tab control
  2. Create the TabInfo cluster and instert the reference created to the cluster
  3. Insert the cluster in de Data cluster

test_example_snippet.png

I don't know what is happening, my Labview version is 2021 SP1. Could anyone help me, please??

Download All
0 Kudos
Message 1 of 5
(987 Views)
Solution
Accepted by topic author IPach

Try this:

Untitled.png

 

George Zou
Message 2 of 5
(965 Views)

Hello George,

 

What I want to avoid is passing the reference on the lower part. That's why I'm creating the TypeDef. I want to use the unbundle by name with the property node on the lower part.

After looking to your solution I've been thinking that maybe an initialization of the tab control reference is required. Could anyone explain why is required this initialization?

 

Cheers.

0 Kudos
Message 3 of 5
(928 Views)

Hi IPach,

 


@IPach wrote:

Hello George,

 

What I want to avoid is passing the reference on the lower part. That's why I'm creating the TypeDef. I want to use the unbundle by name with the property node on the lower part.

After looking to your solution I've been thinking that maybe an initialization of the tab control reference is required. Could anyone explain why is required this initialization?


Because a typedefinition is just what the name says: a definition of a datatype - but not of a data value!

So you need to initialize the cluster values with actual values, like the reference of your tab container…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(914 Views)

Thanks for the explanation GerdW, as you see I'm a rookie in labview! 🙂

0 Kudos
Message 5 of 5
(904 Views)