LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Updating Control in Tab controller

Hi Gred,

 

Thanks for the input i was trying with insert into array instead replace array element.

 

I have worked out and attached the concept VI which is that am trying to accomplish for all my queries related to tab control and the MCLB. But which is not successful.

Main VI consist of Tab control and MCLB. The MCLB data will be updated in a sub VI with different loop functionality sequentially for various purpose which in turn continuously updated in the MCLB on the main VI through Global variable (which am not satisfied since I feel and based on NI recommendation (http://zone.ni.com/reference/en-XX/help/371361H-01/lvconcepts/using_local_and_global/) use of global variable will be inefficient with array and more memory wil be occupied. Kindly Comment on using global variable for this case or any alternate solution is recommended).

 

Note: At the same time in the main VI i need to see the current data which being updated on the subVI for the respective page. Also when i switch the page need to see the previously completed page data during that time the data fo the other page to be recorded in background and when the page is switched the data to be seen.

 

hope i have clearly told about my doubt

0 Kudos
Message 11 of 16
(980 Views)

This would be a great candidate for a class. The init stores the reference, and the methods update the control by that reference. You'll still need a shift register... Re-useability being the advantage.

 

0 Kudos
Message 12 of 16
(977 Views)

 hi Gred,

 

I have modified the code and stuck with one problem that how to update the data from the sub VI to the main VI MCLB over the Tab control continuously.

Loop1 data generation to be viewed on the main VI continuously on the Page1. After completion of loop1 when loop 2 is executed loop2 data to be viewed continuously on the main VI on the page 2. If suppose in between the page is switched from 2 to 1 then the stored data of the loop1 should be visible on the page 1 on the main VI and if once again page switched from 1 to 2 means the data being updated on the loop2 subVI should be visible on the page 2 of main VI.

 

Can you provide any hint / sample program to achieve this scenario.

0 Kudos
Message 13 of 16
(960 Views)

Hi details,

 

I implemented the display of data from "loop 1" in your main VI.

 

- You need to implement the same for your other loops.

- You should also implement to input the current MCLB data into your subVIs to be able to modify the MCLB data instead of overwriting them…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 16
(937 Views)

@Technical_details wrote:

 hi Gred,

 


poor Gred


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 15 of 16
(919 Views)

@jwscs wrote:

@Technical_details wrote:

 hi Gred,

 


poor Gred


Still better then a PM.

0 Kudos
Message 16 of 16
(911 Views)