I created a small LabVIEW VI which prompts for some database connection details and then returns a .net object which has methods to access data stored in the database. This works fine so far. But now I want to use this as a Sub-VI and thus I need to pass out the created database connector object as an output.
Everything I found when searching was to hook up an output control (text or numeric) to the "wiring panel" (I don't know what the English name for this is, in my German version it is called "Anschlussfeld"), but obviously, this only works for text, numbers and the like.
Is it only possible to output these types, or can I also output .net references, and if so, how do I do this?
Use a .NET Refnum
control, on the Controls » Ref Num palette.
For example, open the Task Monitor Using .NET Objects example VI: from the Help menu, select Find Examples, then double-click Communicating with External Applications, and then double-click on .NET. Change one of the constructor nodes into a subVI and inspect the new VI's front panel and connector pane.
Here's an illustration: