jdunham Posted May 24, 2007 Report Share Posted May 24, 2007 I'm having trouble figuring out how to dynamically clone VIs in LabVIEW 8. In LabVIEW 7, we just made copies of the VI on disk with different names, and loaded them dynamically. We also used the libraryn.llb library from NI to copy the template VI out of the built executable to start making the clones, but that doesn't seem to be working with my LV 8.2.1 built executable. It seems like LV8 fixed this, with better support for reentrant VIs with separate panels, but I couldn't find good documentation or examples (or the right lavag.org thread) of how to generate an unlimited number of copies at run time. I'd rather do this the right way than fix my old code, because I'll bet it's much easier now. Thanks Jason Dunham Quote Link to comment
Jim Kring Posted May 24, 2007 Report Share Posted May 24, 2007 Hi Jason, Use Open VI Reference to open a reference to a reentrant VI and you'll get a new clone. You can either open it for use with a Call By Reference node or for invoking the Run method (see screenshot, below). http://forums.lavag.org/index.php?act=attach&type=post&id=5931 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.