Jump to content

Vi scripting - detect and manipulate junctions in wires


bejanbos

Recommended Posts

Hi,

I have the following question: It is possible to insert a subvi in a block diagram through vi scripting, but How can you connect a wire that already exsists and has several junctions at the correct location? eg: a string control connected to 2 (arbitrty) string functions, and you want to insert a function just after the string. As far as I can see a wire with all its junctions is threated as 1 object and then this would not be possible. Is this correct?

thanks,

JBS

Link to comment

Short answers to your question are as follows.

Yes it is possible by using the "New Object" scripting primitive and making the object a SubVI

And the best way to wire things together w/out worrying about wire branches, is to first find the terminals of interest, delete the wires in between and then use the Wire Terminals method to re-wire up the works. A much more robust attack pattern.

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.