<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Connecting wires to build array through VI Scripting in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092900#M884635</link>
    <description>&lt;P&gt;Running LV12 at the moment, faster to write a quick example than to open LV14 and look at your VI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/b38e1ee845820117269958fdcefb00c4175de25b/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31363332373469464241304342423735433232333443392f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="WireBuildArray.png" title="WireBuildArray.png" /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 21 Feb 2015 16:21:59 GMT</pubDate>
    <dc:creator>Darin.K</dc:creator>
    <dc:date>2015-02-21T16:21:59Z</dc:date>
    <item>
      <title>Connecting wires to build array through VI Scripting</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092615#M884523</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have been looking for a way to connect wires to a "build array" node through VI Scripting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an array of inputs which have to translate into an array via "build array" node. I successfully added input terminals to "build array" node through VI Scripting. However, the program fails when I try to run a loop to wire all the inputs sequentially. The problem is, all of the input wires at the first element of "build array". Snapshot of code is attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please suggest me a way to connect different elements at different inputs of "build array" node.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;HB&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2015 17:12:43 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092615#M884523</guid>
      <dc:creator>HB.</dc:creator>
      <dc:date>2015-02-20T17:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting wires to build array through VI Scripting</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092645#M884534</link>
      <description>&lt;P&gt;You should be iterating over the terminals of the Build Array node and calling the Connect Wire method of each terminal.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2015 17:41:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092645#M884534</guid>
      <dc:creator>Darin.K</dc:creator>
      <dc:date>2015-02-20T17:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting wires to build array through VI Scripting</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092649#M884536</link>
      <description>&lt;P&gt;Thanks for the reply. This is the same I am doing as shown in the snap shot. Please point out where I am missing something.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Hasan&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2015 17:46:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092649#M884536</guid>
      <dc:creator>HB.</dc:creator>
      <dc:date>2015-02-20T17:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting wires to build array through VI Scripting</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092652#M884537</link>
      <description>&lt;P&gt;You are calling Connect Wires on the node itself, not on the individual terminals. &amp;nbsp;You need to use the Terminals[] property of the node to get the array of terminals (element 0 is the output terminal).&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2015 17:56:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092652#M884537</guid>
      <dc:creator>Darin.K</dc:creator>
      <dc:date>2015-02-20T17:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting wires to build array through VI Scripting</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092669#M884546</link>
      <description>&lt;P&gt;I am still unable to solve it. It is still connecting the terminals to the 1st element of "build array" node. Please see the edited code and point out the mistake in it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;HB&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2015 18:15:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092669#M884546</guid>
      <dc:creator>HB.</dc:creator>
      <dc:date>2015-02-20T18:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting wires to build array through VI Scripting</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092681#M884554</link>
      <description>&lt;P&gt;You'd have to post the code, not the screenshot. &amp;nbsp;Are you sure it is wiring to the first element? &amp;nbsp;Wiring in scripting can be tricky, have you tried doing a BD cleanup on the scripted code? &amp;nbsp;Often wires overlap or run in strange places.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2015 18:37:43 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092681#M884554</guid>
      <dc:creator>Darin.K</dc:creator>
      <dc:date>2015-02-20T18:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting wires to build array through VI Scripting</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092742#M884580</link>
      <description>&lt;P&gt;I'd recommend looking at JKI's Right Click Framework.&amp;nbsp; One of the plugins it has that I've used in the past is Build Array of References.&amp;nbsp; At the heart of it will be a subVI for building the array.&amp;nbsp; It looks like it uses a method for the Terminal object called&amp;nbsp; "Create Described Wire".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Digging into that could give you the main part of the code that you need for what you are trying to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2015 20:56:40 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092742#M884580</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2015-02-20T20:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting wires to build array through VI Scripting</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092878#M884622</link>
      <description>&lt;P&gt;Hi Darin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the inconvenience. I posted screen shot because it is a long VI including many other sub VIs in it. Anyways, I have made the new VI containing only that piece of code where I am having problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This VI generates another VI (in stack sequence 0) and creates two numeric&amp;nbsp;control knobs in the new VI (in stack sequence 1). I then want to build an array of these control knobs (in stack sequence 2).&amp;nbsp;I am unable to wire them&amp;nbsp;in different terminals of "build array" node. The 0th stack sequence (nested inside the outer 2nd stack) adds the appropriate number of terminals in "build array" node.&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;The 1st&amp;nbsp;stack sequence (nested inside the outer 2nd stack)&amp;nbsp;is the one where I am doing unknown mistake.&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Thanks for your due help.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;HB&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Feb 2015 09:39:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092878#M884622</guid>
      <dc:creator>HB.</dc:creator>
      <dc:date>2015-02-21T09:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting wires to build array through VI Scripting</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092879#M884623</link>
      <description>&lt;P&gt;Hi Raven,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have already been through it and following his&amp;nbsp;logic , but still unable to achieve my desired goal. It must be very small logical mistake&amp;nbsp;which I am committing. Please see the attached file in the above comment Problem_HB.vi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Hasan&lt;/P&gt;</description>
      <pubDate>Sat, 21 Feb 2015 09:44:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092879#M884623</guid>
      <dc:creator>HB.</dc:creator>
      <dc:date>2015-02-21T09:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting wires to build array through VI Scripting</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092900#M884635</link>
      <description>&lt;P&gt;Running LV12 at the moment, faster to write a quick example than to open LV14 and look at your VI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/b38e1ee845820117269958fdcefb00c4175de25b/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31363332373469464241304342423735433232333443392f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="WireBuildArray.png" title="WireBuildArray.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Feb 2015 16:21:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092900#M884635</guid>
      <dc:creator>Darin.K</dc:creator>
      <dc:date>2015-02-21T16:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting wires to build array through VI Scripting</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092907#M884640</link>
      <description>&lt;P&gt;You would probably see your problem if you ran the VI in highlight execution or single stepping mode and then you'll see that you have at least two bugs - the minor one is that you're assuming that the array of terminals is parallel to the array of control refs, but it's not, because the first terminal is the output one. The fastest way to resolve this is probably to only increment your counter inside the false case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The more major is that you're reading the number of terminals on the node before you're resizing it, so that your loop only runs two times.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Feb 2015 17:30:35 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3092907#M884640</guid>
      <dc:creator>tst</dc:creator>
      <dc:date>2015-02-21T17:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting wires to build array through VI Scripting</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3093084#M884738</link>
      <description>&lt;P&gt;Hi Darin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot. It worked with your block diagram except that I had to pass the reference through "terminal" property node to define the source of wire. LV2012 version attached!&lt;BR /&gt;&lt;BR /&gt;Thanks again.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Regards&lt;BR /&gt;HB&lt;/P&gt;</description>
      <pubDate>Sun, 22 Feb 2015 22:23:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3093084#M884738</guid>
      <dc:creator>HB.</dc:creator>
      <dc:date>2015-02-22T22:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting wires to build array through VI Scripting</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3093085#M884739</link>
      <description>&lt;P&gt;Thanks tst,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I got your point and it helped me solving the problem. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;
&lt;P&gt;HB&lt;/P&gt;</description>
      <pubDate>Sun, 22 Feb 2015 22:25:55 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Connecting-wires-to-build-array-through-VI-Scripting/m-p/3093085#M884739</guid>
      <dc:creator>HB.</dc:creator>
      <dc:date>2015-02-22T22:25:55Z</dc:date>
    </item>
  </channel>
</rss>

