JDave Posted April 3, 2006 Report Share Posted April 3, 2006 At the risk of asking too many questions... Here is another one. Has anyone ever successfully used the Replace invoke node one a control with the Path input? I am :headbang: right now. I want to replace a control with an existing control, but if I use the Replace invoke node with a .ctl file as follows: It tells me: Error 1059 occurred at Invoke Node in replace control.viPossible reason(s): LabVIEW: Unexpected file type. So what is the expected file type for a control? On a side note, while researching this in the scripting forum (and while dashing to download stuff yesterday) I noticed a thread about creating custom controls. While you cannot create a new control in a .ctl file, you can delete the old one and *paste* a new one in. Maybe someone already noticed this. Works for type-def files as well. Quote Link to comment
Kurt Friday Posted April 3, 2006 Report Share Posted April 3, 2006 Hi I just replicated your code and I see the same error. The problem is that the path that you are setting as the replacement control is not valid, try pointing the path at the absolute control path, ie c:\temp\temp.ctl I tested this in 7.1 and works fine Quote Link to comment
JDave Posted April 5, 2006 Author Report Share Posted April 5, 2006 HiI just replicated your code and I see the same error. The problem is that the path that you are setting as the replacement control is not valid, try pointing the path at the absolute control path, ie c:\temp\temp.ctl I tested this in 7.1 and works fine Thanks. That worked !! :thumbup: Sorry for the delay, but I have been off taking a mandatory training class. :thumbdown: David Quote Link to comment
Mike Ashe Posted April 5, 2006 Report Share Posted April 5, 2006 Nice technique. I assume that you are using this for modification of templates of generic apps/VIs to your specific use at the moment? Quote Link to comment
JDave Posted April 10, 2006 Author Report Share Posted April 10, 2006 Nice technique. I assume that you are using this for modification of templates of generic apps/VIs to your specific use at the moment? That is a wonderful application, but mine is orders of magnitude more basic. I am going to post it sometime this week. Hopefully you will like it. 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.