|
Re: Clustering in Labview
A function, or subVI, can return any number of outputs of any datatype including cluster. The return values are returned via the icon in the upper right. You might want to look up a tutorial on building a subVI, but the short steps are to right click on the icon and show the connector terminals. If you need to, pick a terminal pattern with at least enough inputs and outputs (extra are fine, and often a good idea for forward compatibility). Click on a terminal where you want the output, then click on the indicator(cluster). If you show the help window, you should see that you now have your function returning a cluster.
To explain a bit more about the other syntax errors in your diagram, LV doesn't like uninitialized data. For a case to pass data out of it to the outer diagram, every diagram must pass some data out, otherwise it'd be uninitialized.
Greg McKaskle
|