LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

separate SubVI tables?

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

0 Kudos
Message 1 of 24
(4,182 Views)

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?

0 Kudos
Message 2 of 24
(4,174 Views)

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.

0 Kudos
Message 3 of 24
(4,168 Views)

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

0 Kudos
Message 4 of 24
(4,162 Views)

@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.)

0 Kudos
Message 5 of 24
(4,156 Views)

This should be it

0 Kudos
Message 6 of 24
(4,153 Views)

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… 😞

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 24
(4,115 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 8 of 24
(4,107 Views)

@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. 😄

0 Kudos
Message 9 of 24
(4,101 Views)

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

0 Kudos
Message 10 of 24
(4,060 Views)