01-24-2018 07:02 PM
All the code in this VI is currently controlled by a variable time control. What I want to do is break this while loop into two different sections, but the code still be dependent.
What is an efficient way to achieve this?
01-24-2018 07:20 PM
Put red circle in case structure driven by Elapsed Time express VI. Get rid of the wait timer in that circle.
In false case, just wire the array through unmodified.
01-24-2018 08:41 PM - edited 01-24-2018 08:43 PM
You make the upper section as a subvi, with the shift register inside it.
You then run that part only when you want to update the table. There is an input - iteration that you can use connecto the iteration of the main loop i, so in the first iteration, it will start the array and then every time you want it to run, it will update the table.
If you want that part of the code to run in a different rate as the main loop, you can then implement other mechanisms to make it run at the rate you specify.
There is one point to consider, the datalogging part may use too much memory if you make it auto growth. You can define a time size for string array, or keep ading the data log data into a file, adding just the latest data, instead of saving the whole table every time.