<?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: Create array with for loop in LabVIEW</title>
    <link>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2319230#M728200</link>
    <description>&lt;P&gt;You might want to take a look at the&amp;nbsp;Recent History Buffer Example.vi in examples. You can make separate renamed copies of the buffer vi for each axis, with a different length for each. Old, but useful code. The buffer works as a old style global and can be read out elsewhere in the diagram or another vi.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Feb 2013 17:56:16 GMT</pubDate>
    <dc:creator>bill_gilbert</dc:creator>
    <dc:date>2013-02-18T17:56:16Z</dc:date>
    <item>
      <title>Create array with for loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318180#M727950</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stupid question, but i can't do it myself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I receive scalar byte data from com port in main while loop and want to make 1D array with adjustable size for further filtering and so on. Simple "for loop" with indexed output makes me array with all the same elements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone tells me how can i make this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2013 17:23:10 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318180#M727950</guid>
      <dc:creator>Egorkkk</dc:creator>
      <dc:date>2013-02-17T17:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create array with for loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318184#M727952</link>
      <description>&lt;P&gt;Build array with a shift register. This would be in your main acquisition loop. It does sound like you could make use of the pt-by-pt functions, though.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2013 17:55:45 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318184#M727952</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2013-02-17T17:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create array with for loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318190#M727954</link>
      <description>&lt;P&gt;Can i tell more about you solution? Shift registers in main loop or in for loop? Or can you show me example, please&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2013 18:01:32 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318190#M727954</guid>
      <dc:creator>Egorkkk</dc:creator>
      <dc:date>2013-02-17T18:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create array with for loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318196#M727956</link>
      <description>&lt;P&gt;In the main loop where you are doing the scalar acquisition. You need to post &lt;STRONG&gt;your&lt;/STRONG&gt; VI if you need help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.ni.com/ni/attachments/ni/170/727956/1/while%20loop.png" border="0" alt="" title="" align="middle" /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2013 18:12:33 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318196#M727956</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2013-02-17T18:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Create array with for loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318236#M727970</link>
      <description>&lt;P&gt;Ok, thank you very much. I'll try this and post if there will be questions. Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2013 20:00:49 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318236#M727970</guid>
      <dc:creator>Egorkkk</dc:creator>
      <dc:date>2013-02-17T20:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create array with for loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318448#M728023</link>
      <description>&lt;P&gt;Why can't you use string to byte array function.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 06:33:01 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318448#M728023</guid>
      <dc:creator>Ranjeet_Singh</dc:creator>
      <dc:date>2013-02-18T06:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create array with for loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318592#M728055</link>
      <description>&lt;P&gt;First, sorry for my english.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I receive bytes every 10ms and want to use filters and other processing. So, thats why i want to create 1D array with adjustable size. In other words, "stacking" 8 (or 4 or 100) bytes to 1D array. I know, that this is simple, but have a "wall" in my head )&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 10:04:42 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318592#M728055</guid>
      <dc:creator>Egorkkk</dc:creator>
      <dc:date>2013-02-18T10:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create array with for loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318622#M728060</link>
      <description>&lt;P&gt;Try this &amp;amp; let me know.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 10:20:24 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318622#M728060</guid>
      <dc:creator>Ranjeet_Singh</dc:creator>
      <dc:date>2013-02-18T10:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create array with for loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318646#M728066</link>
      <description>&lt;P&gt;Ok, i was try your example. I'm replace random generatro with input from visa and see that all elements of array are identical...&lt;/P&gt;
&lt;P&gt;Here is my VI. First part of it is simply for formatt input from COM port - take two bytes from array and make word.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 10:41:03 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318646#M728066</guid>
      <dc:creator>Egorkkk</dc:creator>
      <dc:date>2013-02-18T10:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create array with for loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318648#M728067</link>
      <description>&lt;P&gt;2011 compatible VI please&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 10:43:12 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318648#M728067</guid>
      <dc:creator>Ranjeet_Singh</dc:creator>
      <dc:date>2013-02-18T10:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create array with for loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318652#M728069</link>
      <description>&lt;P&gt;Suppose each time from the serial port 25 byte you read then use one string to byte array &amp;amp; thats it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It has to work.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 10:44:21 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318652#M728069</guid>
      <dc:creator>Ranjeet_Singh</dc:creator>
      <dc:date>2013-02-18T10:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create array with for loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318654#M728070</link>
      <description>&lt;P&gt;Sorry, take it&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 10:44:34 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318654#M728070</guid>
      <dc:creator>Egorkkk</dc:creator>
      <dc:date>2013-02-18T10:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create array with for loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318664#M728074</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;Suppose each time from the serial port 25 byte you read then use one string to byte array &amp;amp; thats it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;No, there are many other information in com port input. I'm take two bytes from port, make word and only after this i can work with it&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 10:47:12 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318664#M728074</guid>
      <dc:creator>Egorkkk</dc:creator>
      <dc:date>2013-02-18T10:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create array with for loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318668#M728075</link>
      <description>&lt;P&gt;Then whats a problem, Read required byte using array subset as you already doing. What more you are looking for ?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 10:54:32 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318668#M728075</guid>
      <dc:creator>Ranjeet_Singh</dc:creator>
      <dc:date>2013-02-18T10:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create array with for loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318674#M728077</link>
      <description>&lt;P&gt;Can you give me example, please?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 10:55:37 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318674#M728077</guid>
      <dc:creator>Egorkkk</dc:creator>
      <dc:date>2013-02-18T10:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create array with for loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318678#M728078</link>
      <description>&lt;P&gt;Tell me first ?&lt;/P&gt;
&lt;P&gt;If the serial data is 25 bytes what operation you want to perform on that, I will post the example but first let me know the requirement ?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 10:57:56 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318678#M728078</guid>
      <dc:creator>Ranjeet_Singh</dc:creator>
      <dc:date>2013-02-18T10:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Create array with for loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318690#M728080</link>
      <description>&lt;P&gt;Ok.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have info from gyros and accelerometers position sended in blocks by UART. 1st byte - LSB axis X, 2nd byte - MSB axis X, 3rd byte - LSB axis Y and so on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All of this data will be processed in many different ways.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my question i only want to now, how can i make array from periodic scalar data. All of the examples use random numbers generator INSIDE for loop, but i can't. My data comes from outside. When i connect it directly to "for loop" my array fills with same elements. For example, i have "254" on input of the for loop, and take 1D array with size of forloop count and all elements are "254". That is my problem )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 11:06:35 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318690#M728080</guid>
      <dc:creator>Egorkkk</dc:creator>
      <dc:date>2013-02-18T11:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create array with for loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318700#M728082</link>
      <description>&lt;P&gt;How are you reading data i.e. in each serial read how many bytes you are receving. If you are reading multiple times then you need to read inside for loop only ? Which data you want to make array&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know this.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 11:16:47 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318700#M728082</guid>
      <dc:creator>Ranjeet_Singh</dc:creator>
      <dc:date>2013-02-18T11:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create array with for loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318706#M728085</link>
      <description>&lt;P&gt;See my last post in which i attached VI. Instead of random number you can use your serial read VISA function.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 11:18:23 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318706#M728085</guid>
      <dc:creator>Ranjeet_Singh</dc:creator>
      <dc:date>2013-02-18T11:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create array with for loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318708#M728086</link>
      <description>&lt;P&gt;Now, with only one gyro, in each while loop i'm receive 6 bytes. 2 bytes &amp;nbsp;- X, 2 bytes - Y, 2 bytes - Z.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to work with only one axis - X. I do not want to use PtbyPt filters, so i must have 1d array of U16 for filtering. Because this is experimental project, i want to manually adjust array size. Only thing that i need is make 1D array from scalar data.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 11:22:27 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Create-array-with-for-loop/m-p/2318708#M728086</guid>
      <dc:creator>Egorkkk</dc:creator>
      <dc:date>2013-02-18T11:22:27Z</dc:date>
    </item>
  </channel>
</rss>

