LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tab control refnum

Solved!
Go to solution

I have tried this option too, I right clicked and deselected the include data type option. And after doing this I do not get wire conflict but for some reason the refrence is not passed and when I tried to access the reference in other vi I got a new tab order instead of getting the reference of the tab I wanted. Would you be able to show me with the example ? all the answers I have received for this question have the reference defined within the same vi. 

Rajnikant Singh
Iowa State University (Research Assistant)

0 Kudos
Message 11 of 17
(1,600 Views)
Solution
Accepted by topic author raj_iastate

I have tried this option too, I right clicked and deselected the include data type option. And after doing this I do not get wire conflict but for some reason the refrence is not passed and when I tried to access the reference in other vi I got a new tab order instead of getting the reference of the tab I wanted. Would you be able to show me with the example ? all the answers I have received for this question have the reference defined within the same vi. 

Rajnikant Singh
Iowa State University (Research Assistant)

0 Kudos
Message 12 of 17
(1,600 Views)

Hello Raj,

 

If you are interested in how to modify your Tab Control from another VI, I recommend that you check out the following Developer Zone Community page:
https://decibel.ni.com/content/docs/DOC-12776

Cameron
0 Kudos
Message 13 of 17
(1,575 Views)

take a look at the following pics

 

7.PNG

 

front panel :

 

8.PNG

 

 

data.ctl file to pass the reference to 

 

9.PNG

 

 

 

my confusion is that when I pass the reference using the control refnum and then try to unbundle then I get an error 1055 : object reference is invalid. I want to know if I am passing the reference right ? 

Rajnikant Singh
Iowa State University (Research Assistant)

0 Kudos
Message 14 of 17
(1,559 Views)

Hello Raj,

 

I re-created the code displayed in the pictures you posted and did not receive an error.

 

Is the type def that holds the tab control reference in the same project as your main VI? What version of LabVIEW are you using?

 

Could you please post the code that is creating this error? You can always use Application Builder to zip the entire project:

http://www.ni.com/white-paper/3303/en/

Cameron
0 Kudos
Message 15 of 17
(1,528 Views)

the issue got fixed, I was trying to use pass the tab control reference from the main vi to a subVI. Then I was trying to access the pages using a case structure, I thought I would get the pages by defualt with their names but I was not but when I added more cases inside the case structure then I was able to access the pages. So I had to match the cases inside the subVI case structure manually. 

Rajnikant Singh
Iowa State University (Research Assistant)

0 Kudos
Message 16 of 17
(1,515 Views)

That is great news! Thank you for following up.

Cameron
0 Kudos
Message 17 of 17
(1,499 Views)