View Single Post
  #9   Spotlight this post!  
Unread 10-02-2009, 22:38
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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