07-18-2017 11:50 AM
Everything is working on my MainVI how I would like except for the table. Every table connected to a SubVI shows all data and not just the data from the single SubVI.
Thanks
07-18-2017 12:07 PM
The Corrected Box(subVI) is not included - I assume this is the one you mean when you talk about a table connected to a subVI? I can't really say why it's outputting more data than you expect since I can't see the VI. Does it have uninitialized shift registers in it? Maybe those could be carrying data from previous iterations that gets put into your tables.
Can you describe what data you expect to see coming out of your subVI, compared with the data you are actually seeing?
07-18-2017 12:23 PM
Here's the SubVI. Every column in the table is a channel and I want the data to continue building in the column. Every subVI holds 3 channels and instead of the table holding data for only 3 channels it holds it for all of the channels.
07-18-2017 12:27 PM
Basically it makes the same table for every SubVI with 3 columns and every row is from a different SubVI and it continues that pattern
07-18-2017 12:33 PM - edited 07-18-2017 12:36 PM
@Amanda_Kay wrote:
Here's the SubVI.
Your "subVI" is just a wrapper for yet another subVI. Attach that too (and give it a more distinctive name that hints at the functionality!)
(Also note that you don't need to wire the indices of index array if you want the elements in order, starting with zero. look again here. I also told you about this function.)
07-18-2017 12:36 PM
07-18-2017 01:56 PM - edited 07-18-2017 01:58 PM
Hi Amanda,
did you notice the comment on using descriptive names for (sub)VIs? Seems not…
Every table connected to a SubVI shows all data and not just the data from the single SubVI.
Did you debug your subVI? Did you find the place where that additional data is coming from?
How often do you call that subVI (in parallel)?
Why do you need to hide a (upto) 5s wait delay in this subVI? That timing should be done in the calling VI!
Why do you create clusters just to convert them into an array? Why not build an array in the first place?
Why do you build path using string functions instead of using path functions?
Why do you create that path twice when all that changes is the filename suffix?
Why do you still Reshape your 1D array? Christian told you better before!
Why are there controls without a label?
It's hard to provide help when people refuse to take advices… 😞
07-18-2017 02:20 PM
For your immediate issue with the table data, the Build Table express VI stores all of the data from the previous calls. I recommend replacing it with a simple Number To Fract String.
07-18-2017 02:46 PM
@crossrulz wrote:
I recommend replacing it with a simple Number To Fract String.
Or configure the express VI to "clear data on each call". Of course there is no need to express VIs here, so follow Tim's advice. 😄
07-19-2017 09:20 AM
Is there any way to have the number to Fractional string store all data from those 3 channels?
That's my issue at the moment, I want a table with 3 channels and not all