Jump to content

Replacing a Control


JDave

Recommended Posts

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:

post-1519-1144041750.jpg?width=400

It tells me:

Error 1059 occurred at Invoke Node in replace control.vi

Possible reason(s):

LabVIEW: Unexpected file type.

So what is the expected file type for a control? :wacko:

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.

Link to comment
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

Thanks. That worked !! :thumbup: Sorry for the delay, but I have been off taking a mandatory training class. :thumbdown:

David

Link to comment
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.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.