11-12-2019 02:59 AM
Dear Labview Community,
Am trying to reset a MCLB on program start or when needed. I found the invoke node 'reinitiatise to default', but this did not work. Other way that would work would be to do it by resetting everything like symbols, item names etc individually.
To reset the content is similar to tables but the symbols still appear. Is there a more straightforward way?
Thank you for your valued responses!
Solved! Go to Solution.
11-12-2019 03:24 AM
11-12-2019 04:10 AM
Thanks. Eventually this is what I did. 👍
I have another question if you do not mind:
After clearing the table, all the rows are empty. So if I will add an element to it, this will not work. I have to initialise the size before hand. But assuming I want to step wise add elements to that table to an unpreditable lenght, this means I do not know what will be the size of the table. Further, if I try to initialise it, then the symbols appear for all the items instead of only the filled table fields.
How to solve this issue? => I mean how to make the table be able to insert step wise any number of elements and put the symbols or row numbers only for the filled items?
11-12-2019 06:47 AM
The easy version (not quite recommended, but easier to understand) is to Read the data from the MCLB, Add Array to add a new line and write it back to the MCLB.
Since the UI thread is slow and you shouldn't keep data in indicators; The correct way is to keep the data outside in a shift register, do the same Add array operation and send the result to the MCLB.
/Y
11-12-2019 08:14 AM
@Yamaeda, thank you very much! That was very helpful!