<?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: Sending Values to an Array when a Record Button Is Pressed in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2553951#M772467</link>
    <description>&lt;P&gt;The Shift Register worked great!&amp;nbsp; Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently my code records every single elapsed value during operation.&amp;nbsp; This make 100000+&amp;nbsp; entries, not good.&amp;nbsp; What loop structure would you suggest or funtion block to only record the elapsed time when I press record?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2013 17:13:37 GMT</pubDate>
    <dc:creator>hturner</dc:creator>
    <dc:date>2013-09-11T17:13:37Z</dc:date>
    <item>
      <title>Sending Values to an Array when a Record Button Is Pressed</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2553861#M772450</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am displaying elapsed time on the display panel.&amp;nbsp; I also have a "record" button on the panel and I would like it to take the current elapsed time value and write it to a spreadsheet.&amp;nbsp; Currently my code runs the elapsed time and resets when I press record, but it records every single value and overwrites itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2013 16:06:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2553861#M772450</guid>
      <dc:creator>hturner</dc:creator>
      <dc:date>2013-09-11T16:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Values to an Array when a Record Button Is Pressed</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2553907#M772459</link>
      <description>&lt;P&gt;You need to set up a shift register instead of your tunnel you currently have. &amp;nbsp;What's happening is when you finally press stop, it takes the last value it saw for your elapsed time, record data, and time stamp and puts that in your spreadsheet. &amp;nbsp;You simply need to put a shift register and a build array that has one input as the current data and the next input as the new data. &amp;nbsp;You need to do that for each of your records that are going to change during a run. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also why are you building into an array before the spreadsheet? &amp;nbsp;I would think you might want to concatenate those strings instead.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2013 16:32:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2553907#M772459</guid>
      <dc:creator>NECO2012</dc:creator>
      <dc:date>2013-09-11T16:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Values to an Array when a Record Button Is Pressed</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2553923#M772464</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp; I will try the shift register instead.&amp;nbsp; I honestly havent heard of concatenating before and I saw an example like this online that sent to a speadsheet so i tried to mimc it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2013 16:44:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2553923#M772464</guid>
      <dc:creator>hturner</dc:creator>
      <dc:date>2013-09-11T16:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Values to an Array when a Record Button Is Pressed</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2553929#M772465</link>
      <description>&lt;P&gt;Just keep in mind you need to initialize the shift register outside of the while loop as a 1D array of strings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find the concatenate under Programming&amp;gt;Strings&amp;gt;Concatenate. &amp;nbsp;You could build it into array though as you are doing and have the tab as the delimiter. &amp;nbsp;That would just change your 1D array into a 2D array. &amp;nbsp;Concatenating is useful if you want a specific format i.e. Time Stamp : Record Data/Time Elapsed. Though if you wanted this in Excel, you should indeed build an array because as just mentioned it will put each one into its own individual column.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2013 16:50:46 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2553929#M772465</guid>
      <dc:creator>NECO2012</dc:creator>
      <dc:date>2013-09-11T16:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Values to an Array when a Record Button Is Pressed</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2553951#M772467</link>
      <description>&lt;P&gt;The Shift Register worked great!&amp;nbsp; Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently my code records every single elapsed value during operation.&amp;nbsp; This make 100000+&amp;nbsp; entries, not good.&amp;nbsp; What loop structure would you suggest or funtion block to only record the elapsed time when I press record?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2013 17:13:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2553951#M772467</guid>
      <dc:creator>hturner</dc:creator>
      <dc:date>2013-09-11T17:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Values to an Array when a Record Button Is Pressed</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2553961#M772469</link>
      <description>&lt;P&gt;An event structure. &amp;nbsp;Just house all of your code into an event structure that waits for record to be pressed. &amp;nbsp;Note you would also have to add an event for the stop button, so that it exits the while loop properly.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2013 17:21:18 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2553961#M772469</guid>
      <dc:creator>NECO2012</dc:creator>
      <dc:date>2013-09-11T17:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Values to an Array when a Record Button Is Pressed</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2554025#M772487</link>
      <description>&lt;P&gt;I have tried putting the event structure around my code as you suggested and I added the record triggered action but what happend was when I ran the program nothing happend until I pressed record and then It ran my normal code.&amp;nbsp; I then tried putting the event around the output string to the array so that it would block the signal until callled upon but that didnt work either.&amp;nbsp;I suggested labview to my company because I remember it being use friendly in college so now i just feel stupid.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2013 18:05:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2554025#M772487</guid>
      <dc:creator>hturner</dc:creator>
      <dc:date>2013-09-11T18:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Values to an Array when a Record Button Is Pressed</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2554071#M772496</link>
      <description>&lt;P&gt;Can you go over the steps you want for your VI? There are a lot of stray indicators and a random run button. &amp;nbsp;You really first need to think of what you want your VI to do. &amp;nbsp;Then make an architecture from that. &amp;nbsp;You need to plan out what happens when one button is pressed. &amp;nbsp;I really feel you need to write all of these things down in a pseudo-code like format first. &amp;nbsp;LabVIEW is, indeed, more user-friendly than trying to do what you are currently doing in C++ or some other language mainly because of what it takes to make a GUI. You'll eventually get the hang of it.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2013 18:25:41 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2554071#M772496</guid>
      <dc:creator>NECO2012</dc:creator>
      <dc:date>2013-09-11T18:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Values to an Array when a Record Button Is Pressed</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2554095#M772497</link>
      <description>&lt;P&gt;The stray indocators at the bottom are going to be used for parts/per hour indication.&amp;nbsp; simple items that I am ignoring for now.&amp;nbsp;&amp;nbsp;&amp;nbsp; The meat and potatos of the program is that it will show a machine operator the time it has taken for a part or cylce compared to the accepted time.&amp;nbsp; Got that.&amp;nbsp;&amp;nbsp; Now the difficulty is getting the data to record properly.&amp;nbsp; I would like to press the record button and the current elapsed time be saved along with the timestamp and part number.&amp;nbsp; Then the elapsed time will restart and i will be able to press record agian.&amp;nbsp; I want one excel data entry everytime I press record.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2013 18:38:10 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2554095#M772497</guid>
      <dc:creator>hturner</dc:creator>
      <dc:date>2013-09-11T18:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Values to an Array when a Record Button Is Pressed</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2554125#M772500</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/274885"&gt;@hturner&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I have tried putting the event structure around my code as you suggested and I added the record triggered action but what happend was when I ran the program nothing happend until I pressed record and then It ran my normal code.&amp;nbsp; I then tried putting the event around the output string to the array so that it would block the signal until callled upon but that didnt work either.&amp;nbsp;I suggested labview to my company because I remember it being use friendly in college so now i just feel stupid.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You don't put the event structure &lt;FONT color="#FF0000"&gt;around&lt;/FONT&gt; your code, you put it &lt;FONT color="#FF0000"&gt;inside&lt;/FONT&gt; the outermost while loop. It has taken me a while to get used to event structures, too (I still don't always do them right the first time). Go to the help file first. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your company bought LabVIEW with a SSP, then you're in luck! As long as the SSP is in force, you can go onto NI's website and go through the Core 1, 2, and 3 classes online for free (Event structures are Core 2, Lesson 3). There, you'll learn a LOT about LV. It is a relatively user friendly language, just like you thought, but there is a non-trivial learning curve involved. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oh, and if you upload your code as LV12 VIs, there will be many more people (including myself) who can help you, since many haven't upgraded to LV13 yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cameron&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2013 18:50:31 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2554125#M772500</guid>
      <dc:creator>camerond</dc:creator>
      <dc:date>2013-09-11T18:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Values to an Array when a Record Button Is Pressed</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2554155#M772507</link>
      <description>&lt;P&gt;I didnt realize there was an issue.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2013 19:04:38 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2554155#M772507</guid>
      <dc:creator>hturner</dc:creator>
      <dc:date>2013-09-11T19:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Values to an Array when a Record Button Is Pressed</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2554177#M772511</link>
      <description>&lt;P&gt;When you press record, you currently do not have anything to say when to start and stop. &amp;nbsp;You do not have a reference to go off of to say x amount of time has passed. &amp;nbsp;Pressing record should either start the timer or end the timer. &amp;nbsp;I am not sure I understand which it is supposed to do. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2013 19:22:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Sending-Values-to-an-Array-when-a-Record-Button-Is-Pressed/m-p/2554177#M772511</guid>
      <dc:creator>NECO2012</dc:creator>
      <dc:date>2013-09-11T19:22:32Z</dc:date>
    </item>
  </channel>
</rss>

