<?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: How can I build an array using two numeric controls and a button? Whenever I press the button a column of 2 rows (the numeric controls) should be created. in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201635#M928362</link>
    <description>&lt;P&gt;Thank you!!!&lt;/P&gt;</description>
    <pubDate>Thu, 08 Oct 2015 18:31:30 GMT</pubDate>
    <dc:creator>patomated</dc:creator>
    <dc:date>2015-10-08T18:31:30Z</dc:date>
    <item>
      <title>How can I build an array using two numeric controls and a button? Whenever I press the button a column of 2 rows (the numeric controls) should be created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201539#M928303</link>
      <description>&lt;P&gt;I tried many ways so far.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know that I can use build array to create an array from two numbers but Im not able to create a 2d array that way&lt;/P&gt;
&lt;P&gt;I also tried using Replace array subset but still it wont work.&lt;/P&gt;
&lt;P&gt;I know that I have to use an array function that has column index starting at 0 so whenever I press the button the column index incriments by 1 so the next column will change but Im not able to create this.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 16:05:55 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201539#M928303</guid>
      <dc:creator>patomated</dc:creator>
      <dc:date>2015-10-08T16:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I build an array using two numeric controls and a button? Whenever I press the button a column of 2 rows (the numeric controls) should be created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201543#M928305</link>
      <description>&lt;P&gt;You want it to add to your current array? Here's a good way using an event structure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/8eb40df07856e07642d5ae1d27365c781640f875/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31373332373769463843323943454541373537303233382f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="event structure array builder.png" title="event structure array builder.png" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;edit: Attached the VI for OP&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 16:17:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201543#M928305</guid>
      <dc:creator>ijustlovemath</dc:creator>
      <dc:date>2015-10-08T16:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I build an array using two numeric controls and a button? Whenever I press the button a column of 2 rows (the numeric controls) should be created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201545#M928307</link>
      <description>&lt;P&gt;Here's a screenshot to explain myself better.&lt;/P&gt;
&lt;P&gt;In this case however, whever In press the button the first column is replaced.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to change the next column whenever I press "next point".&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 16:18:33 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201545#M928307</guid>
      <dc:creator>patomated</dc:creator>
      <dc:date>2015-10-08T16:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I build an array using two numeric controls and a button? Whenever I press the button a column of 2 rows (the numeric controls) should be created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201546#M928308</link>
      <description>&lt;P&gt;Download the VI attached to my previous post and try it out! I think it does what you want.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 16:18:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201546#M928308</guid>
      <dc:creator>ijustlovemath</dc:creator>
      <dc:date>2015-10-08T16:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can I build an array using two numeric controls and a button? Whenever I press the button a column of 2 rows (the numeric controls) should be created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201549#M928311</link>
      <description>&lt;P&gt;Greatly appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 16:21:46 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201549#M928311</guid>
      <dc:creator>patomated</dc:creator>
      <dc:date>2015-10-08T16:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I build an array using two numeric controls and a button? Whenever I press the button a column of 2 rows (the numeric controls) should be created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201550#M928312</link>
      <description>&lt;P&gt;No problem! You may want to mark my first post as the solution instead, for future generation's benefit &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 16:23:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201550#M928312</guid>
      <dc:creator>ijustlovemath</dc:creator>
      <dc:date>2015-10-08T16:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I build an array using two numeric controls and a button? Whenever I press the button a column of 2 rows (the numeric controls) should be created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201551#M928313</link>
      <description>&lt;P&gt;Fixed it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; sorry still new to the forum&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 16:24:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201551#M928313</guid>
      <dc:creator>patomated</dc:creator>
      <dc:date>2015-10-08T16:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I build an array using two numeric controls and a button? Whenever I press the button a column of 2 rows (the numeric controls) should be created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201552#M928314</link>
      <description>&lt;P&gt;No worries! Welcome to LV!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 16:25:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201552#M928314</guid>
      <dc:creator>ijustlovemath</dc:creator>
      <dc:date>2015-10-08T16:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I build an array using two numeric controls and a button? Whenever I press the button a column of 2 rows (the numeric controls) should be created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201557#M928317</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/304870"&gt;@ijustlovemath&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;You want it to add to your current array? Here's a good way using an event structure:&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;UL&gt;
&lt;LI&gt;I don't understand the purpose of the timeout case. All it does burn CPU cyclces as fast as the computer allows, constantly writing the same stuff to the array indicator. remove it.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="line-height: 15px;"&gt;If you would wire the array indicator before the event structure, it would reset correctly at the beginning of the program.&amp;nbsp;&lt;/SPAN&gt;Now you can even use the same event for stop and add, because nothing gets appended to the indicator when you stop. Only one event case needed overall, simplifying the code.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="line-height: 15px;"&gt;It would be much simpler and efficient to add rows instead of columns. Adding columns is expensive in terms of memory management.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="line-height: 15px;"&gt;If the final array size were known, things could be made significanttly more efficient.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 08 Oct 2015 16:32:12 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201557#M928317</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2015-10-08T16:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I build an array using two numeric controls and a button? Whenever I press the button a column of 2 rows (the numeric controls) should be created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201563#M928319</link>
      <description>&lt;P&gt;You're the authority on this one Altenbach! Writing this one, I just made it to have it work. Didn't really consider all of that. Here's a modified version for the OP to use should he like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/e6635faf7a9a2f7d6a6c8836e01b580f0caf1908/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31373332373869373039343337363133443031323141312f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="event structure array builder.png" title="event structure array builder.png" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 16:34:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201563#M928319</guid>
      <dc:creator>ijustlovemath</dc:creator>
      <dc:date>2015-10-08T16:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I build an array using two numeric controls and a button? Whenever I press the button a column of 2 rows (the numeric controls) should be created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201568#M928322</link>
      <description>&lt;P&gt;Here's my version &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;IMG src="https://ni.lithium.com/ni/attachments/ni/170/928322/1/EventSimplified.png" border="0" alt="" title="" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 16:40:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201568#M928322</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2015-10-08T16:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I build an array using two numeric controls and a button? Whenever I press the button a column of 2 rows (the numeric controls) should be created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201570#M928324</link>
      <description>&lt;P&gt;As I said, Adding rows (instead of columns) is significantly more simple and efficient, because the existing elements remain in memory order. Maybe the original problem can be reformulated. We can always transpose at the end if needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;IMG src="https://ni.lithium.com/ni/attachments/ni/170/928324/1/EventSimplified_AddRows.png" border="0" alt="" title="" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 16:47:02 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201570#M928324</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2015-10-08T16:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I build an array using two numeric controls and a button? Whenever I press the button a column of 2 rows (the numeric controls) should be created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201572#M928325</link>
      <description>&lt;P&gt;And here's my modified version. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I used the case structure since I understand it better than the event structure. It'll be easier for me to modify or work on it later.&lt;/P&gt;
&lt;P&gt;Anyway Thanks for your solutions &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What are ur opinions on my version?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 16:52:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201572#M928325</guid>
      <dc:creator>patomated</dc:creator>
      <dc:date>2015-10-08T16:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I build an array using two numeric controls and a button? Whenever I press the button a column of 2 rows (the numeric controls) should be created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201581#M928330</link>
      <description>&lt;P&gt;Ok so I just realized that in my case its also continuously running the false&amp;nbsp;case.. So I think I'll just stick with the event structure&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 16:59:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201581#M928330</guid>
      <dc:creator>patomated</dc:creator>
      <dc:date>2015-10-08T16:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I build an array using two numeric controls and a button? Whenever I press the button a column of 2 rows (the numeric controls) should be created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201582#M928331</link>
      <description>What happens in the false case? (Sorry posting by phone).&lt;BR /&gt;What determines the loop rate?</description>
      <pubDate>Thu, 08 Oct 2015 17:00:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201582#M928331</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2015-10-08T17:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I build an array using two numeric controls and a button? Whenever I press the button a column of 2 rows (the numeric controls) should be created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201583#M928332</link>
      <description>&lt;P&gt;It does the same job as the timeout case previously which will waste CPU&lt;/P&gt;
&lt;P&gt;here's a screenshot&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 17:04:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201583#M928332</guid>
      <dc:creator>patomated</dc:creator>
      <dc:date>2015-10-08T17:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I build an array using two numeric controls and a button? Whenever I press the button a column of 2 rows (the numeric controls) should be created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201585#M928333</link>
      <description>&lt;P&gt;I just checked the CPU&lt;/P&gt;
&lt;P&gt;In your case only 2% is being used whereas in mine it reaches 20%&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 17:06:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201585#M928333</guid>
      <dc:creator>patomated</dc:creator>
      <dc:date>2015-10-08T17:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I build an array using two numeric controls and a button? Whenever I press the button a column of 2 rows (the numeric controls) should be created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201587#M928335</link>
      <description>OK, you are basically burning 100% of one cpu core doing absolutely nothing useful. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 08 Oct 2015 17:09:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201587#M928335</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2015-10-08T17:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I build an array using two numeric controls and a button? Whenever I press the button a column of 2 rows (the numeric controls) should be created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201609#M928349</link>
      <description>&lt;P&gt;Patomated,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sixclear has a great video describing what the event structure is, located &lt;A href="http://blog.sixclear.com/post/2927225020/labview-events" target="_blank"&gt;here.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 17:51:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201609#M928349</guid>
      <dc:creator>ijustlovemath</dc:creator>
      <dc:date>2015-10-08T17:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I build an array using two numeric controls and a button? Whenever I press the button a column of 2 rows (the numeric controls) should be created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201635#M928362</link>
      <description>&lt;P&gt;Thank you!!!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 18:31:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-can-I-build-an-array-using-two-numeric-controls-and-a-button/m-p/3201635#M928362</guid>
      <dc:creator>patomated</dc:creator>
      <dc:date>2015-10-08T18:31:30Z</dc:date>
    </item>
  </channel>
</rss>

