LAVA 1.0 Content Posted January 27, 2007 Report Share Posted January 27, 2007 Hi, I'd need to get a reference to a LabVIEW Class that is currently in memory. All I have is the class name in a format "MyClass.lvclass". The problem is that I don't know the path of the class but only that the class is currently in the application memory. If there is a way to get a reference using the class name, that would be superb. If this is not possible, is there a way to get the path of the class if you just know the name and that it's currently in memory. jimi If I get a reference to all VIs in memory, that is fine as well. Quote Link to comment
Ton Plomp Posted January 28, 2007 Report Share Posted January 28, 2007 If I get a reference to all VIs in memory, that is fine as well. Jimi the following code (8.2) should do that: Download File:post-2399-1169973721.viDownload File:post-2399-1169973693.vi Ton Quote Link to comment
LAVA 1.0 Content Posted January 28, 2007 Author Report Share Posted January 28, 2007 Jimi the following code (8.2) should do that:Download File:post-2399-1169973721.viDownload File:post-2399-1169973693.vi Thanks Quote Link to comment
LAVA 1.0 Content Posted January 29, 2007 Author Report Share Posted January 29, 2007 It worked... Each class always has a typedef, the name of which is of the form MyClass.lvclass:MyClass.ctl. One can open VI reference to this typedef using Open VI reference and a technique described by Ton. Having retrieved this reference one can then find out the library into which the typedef belongs to. I however noticed that I really needed the reference to the typedef itself and not the class. jimi 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.