LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SubVI and table/array

Is there any way to get a table or an array from a subvi??? Pls

In my project there's a subVI where I have a table with random numbers, I need to get all those values and write them in another table on my main project... I prefer table, but it can be using array as well...

0 Kudos
Message 1 of 3
(2,093 Views)

Hi Douglas,

 

setup the connector pane of the subVI as needed and use wires to get data from subVI to MainVI…

 

(This is pretty basic LabVIEW stuff: did you notice the Training section in the header of the LabVIEW board?)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(2,085 Views)

@douglashenri wrote:

Is there any way to get a table or an array from a subvi??? Pls

In my project there's a subVI where I have a table with random numbers, I need to get all those values and write them in another table on my main project... I prefer table, but it can be using array as well...


A table isn't a data type... You can pass a reference to the table, or indeed pass the 2D data of the table. Use Strings[] (IIRC) property of a table to get the data, and pass as an indicator connected to the connector pane.

0 Kudos
Message 3 of 3
(2,059 Views)