mike5 Posted July 6, 2011 Report Share Posted July 6, 2011 (edited) Well, the last step for this round. Now that I have a DVR control (in a typedef ctl file), how do I add this control to class private data. I've done this (the first vi is from the class.ctl): Now what? Controls[] cannot be changed to "write". There is no method to add a new control. Will I really be forced to create a "new VI object" (as in the example) and replace it with my own control? Thanks again and best regards, Mike Edited July 6, 2011 by mike5 Quote Link to comment
mike5 Posted July 6, 2011 Author Report Share Posted July 6, 2011 Well, the last step for this round. Now that I have a DVR control (in a typedef ctl file), how do I add this control to class private data. I've done this (the first vi is from the class.ctl): Now what? Controls[] cannot be changed to "write". There is no method to add a new control. Will I really be forced to create a "new VI object" (as in the example) and replace it with my own control? Thanks again and best regards, Mike Anyway, I just thought I'd mention. I'm trying to do all this in memory. Nothing is saved yet. Is this even possible. So far I've had zero progress. Mike Quote Link to comment
Yair Posted July 6, 2011 Report Share Posted July 6, 2011 You can call the Move method on the new control and specify the cluster as the owner. This will move the control into the cluster. Quote Link to comment
mike5 Posted July 6, 2011 Author Report Share Posted July 6, 2011 You can call the Move method on the new control and specify the cluster as the owner. This will move the control into the cluster. Do I have ti get the control onto the destination panel first? Or can I just take control from the original file (the typedef CTL file), and then move it into the "private data cluster", and it will just work? I don't know if I'm making myself clear.... Br, Mike Quote Link to comment
Yair Posted July 6, 2011 Report Share Posted July 6, 2011 You need a reference to the control so you can call the Move method on it. To get that reference you first need to drop the control somewhere: The easiest is probably to use the New VI Object primitive to drop the control. Quote Link to comment
mike5 Posted July 6, 2011 Author Report Share Posted July 6, 2011 I just wanted to add that I got it working in a way now - without the "move" by creating an "new VI object" and replacing it with my DVR. The only problem is, that I needed to save everything. No way to do it just i the memory. Mike Quote Link to comment
Francois Normandin Posted July 6, 2011 Report Share Posted July 6, 2011 Check my answer in the other thread. The API presented there has no hidden code, so you might want to particularly look at the Set Private Data VI. 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.