03-27-2008 05:52 PM
04-01-2008 04:22 PM
Hi VRMan,
When a VI terminates execution, it (and, consequently, any .NET objects it references) is garbage collected by LabVIEW and all information is lost.
To avoid this, you could try to store your .NET reference in a shared variable independent of the VI, or simply keep the VI running by placing the block diagram in a while loop. You can hide the front panel if necessary (see FrontPanelStates.vi in the Help»Find Examples menu).
As for your second question, LabVIEW data types do not directly correspond to those of text-based languages (including .NET). It is sometimes necessary to first write a wrapper DLL or assembly to convert the .NET data to a format that LabVIEW can process. In this case, importing an array of Type objects directly would require a significant amount of manipulation within LabVIEW before it would be of any use (if it's even possible).