abandoningcausality Posted December 30, 2015 Report Share Posted December 30, 2015 I'd like to create a typedefed control and then drop it in a new VI. Here's what I have but I get this error: Error 1061 occurred at New VI ObjectPossible reason(s):LabVIEW: Unable to create new object. Quote Link to comment
jacobson Posted December 31, 2015 Report Share Posted December 31, 2015 If you want to use the New VI Object VI to insert a custom control you need to feed it a valid path and set the Class input to GObject or a class it inherits from. I would be interested to know if there is a way around this but I think you will also need to save the .ctl (at least temporarily) so you have a valid path to reference. To explain the error you were getting, you were telling LabVIEW to put whatever was at the path "Control 1" into your new VI. That isn't a valid path so LabVIEW just gave an error saying that it couldn't create that object. -Matt J Quote Link to comment
abandoningcausality Posted January 15, 2016 Author Report Share Posted January 15, 2016 Thank you. I was hoping I could do it without saving the type def as is possible manually. I guess I can't. Quote Link to comment
hooovahh Posted January 15, 2016 Report Share Posted January 15, 2016 I'm pretty sure you could do it without saving. You'd have to get a reference to the VI in memory, and insert that instead of using it by path, but this design is easier to implement and understand, but by name is probably possible. 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.