09-07-2017 01:49 AM
Hi,,
I have multiple pages on the tab controller and a multicolumn list box on every page. I will fill with data on the multicolumn list box on every page sequentially one after the other. While filling data on one page i need to see the already filled data on the previous pages.
To implement this I can have a multicolumn list box on all the pages of the tab controller (any number of pages). Using individual multicolumn list box on every page will have too many terminals on the block diagram to get handled.
Another way is to use single multicolumn list box as a common in all tabs by placing over the tab. but in this method i may not be able to see the data allready filled on the previous page because since it a single common milticolumn list box it may get changed when data being filled by other page. Can any one suggest how to update data on the common multicolumn list box on all the page by maintaining previous page data or we have to use individual multicolumn list box for every page.
09-07-2017 02:28 AM - edited 09-07-2017 02:30 AM
Hi details,
Can any one suggest how to update data on the common multicolumn list box on all the page by maintaining previous page data or we have to use individual multicolumn list box for every page.
LabVIEW trivia: to store data from one iteration of a loop to the next you should use a shift register.
So store all relevant data in a shift register!
Can any one suggest how to update data on the common multicolumn list box on all the page by maintaining previous page data
Just some grammar correction: it's not on all pages, but over the whole tab control…
or we have to use individual multicolumn list box for every page.
For 7 pages you get 7 terminals: what's the problem?
09-07-2017 04:24 AM
Hi Gred,
I Think my doubt has not been properly conveyed so that others can understand my query.
I have attached a front panel and it can be implemented in this way with individual multicolumn box on every page so that individual multicolumn list box will be updated separately and the data will be available on the MCLB with respect to that page. In this VI if we update MCLB on page 1 it will update the control on that page and that data will be restored to view by user while the MCLB on the page 2 being updated.
But my query is if i use single MCLB as common over all pages means the MCLB will be updated irrespective of the page selected and i could see the only the currently being updated data on the MCLB over all the page of tab control.
So my requirement is data updated on the MCLB on page 1 should be available to view even when i start updating the MCLB on the next pages...
As per the attachment the pages with individual MCLB to be replaced with single MCLB in column and to be viewed data of respective page. I hope i have explained clearly the doubt
09-07-2017 06:00 AM
Hi details,
So my requirement is data updated on the MCLB on page 1 should be available to view even when i start updating the MCLB on the next pages...
Again: store your data in a shift register - including information, which data belong to which page!
When the user switches the page you could call an event case. In the event case you update the MCLB to show the data relevant for the current page…
09-07-2017 06:39 AM
Keep/ Store the Values of Each pages in the Shift register based on the Switching of pages update the respective stored values to MCLB
09-07-2017 06:47 AM
Hi Gred,
Thanks for the suggestion. I will try it out and get back.
If am correct, Storing data in shift register means finally i should use some local variable to store data from the shift register and transfer the data from the local variable to the MCBL based on the page selection.
09-07-2017 07:07 AM
Hi details,
If am correct, Storing data in shift register means finally i should use some local variable to store data from the shift register
NO!
You don't need any local variables to "store data from a shift register"! You store the data IN THE shift register and only need wires to read from/write into…
Basic pronciple of LabVIEW: THINK DATAFLOW!
09-08-2017 06:36 AM
Hi,
i need to fill data in the multicolumn list box one after other like 1 to 10 on the 1st column, then 11 to 20 on the 2nd column and so on... Note i need to fill one cell after the other cell only like (0,0), (0,1), (0,2)... then (1,0), (1,1), (1,2),,, and so on. how to create in this fashion. Attached the VI which i tried out for reference. can anyone advice..
09-08-2017 06:45 AM
Hi details,
first step: initialize a 2D array of (empty) strings for the needed size
2nd step: replace array elements as needed "like (0,0), (0,1), (0,2)... then (1,0), (1,1), (1,2)"
And please use ReplaceArrayElements instead of InsertIntoArray for this…
I merged your new question into your older thread as you still seem to search for an answer for the same problem…
09-08-2017 06:57 AM
filling column by column