<?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 Capturing Data Point in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Capturing-Data-Point/m-p/248382#M134635</link>
    <description>&lt;DIV&gt;I have written a program that constantly monitors the pressure from a transducer.&amp;nbsp; Once the pressure has stabilized the user can begin the record process which essentially records the data to an excel spreadsheet at different rates depending on whether or not the even has been triggered.&amp;nbsp; The event is determined by the pressure at the point when the record process began + a user defined slope, so when the initial pressure increases by this much begin recording at a faster rate.&amp;nbsp; To capture the initial pressure I'm using a for loop with an iteration count of 1 reading from the continuous pressure reading.&amp;nbsp; That value is then used in a formula node.&amp;nbsp; I'm getting an error saying that the left brace for the formula node is needed.&amp;nbsp; Is this because of the way I'm capturing that initial pressure value?&amp;nbsp; Thanks.....&lt;/DIV&gt;</description>
    <pubDate>Fri, 29 Jul 2005 21:46:23 GMT</pubDate>
    <dc:creator>MeCoOp</dc:creator>
    <dc:date>2005-07-29T21:46:23Z</dc:date>
    <item>
      <title>Capturing Data Point</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Capturing-Data-Point/m-p/248382#M134635</link>
      <description>&lt;DIV&gt;I have written a program that constantly monitors the pressure from a transducer.&amp;nbsp; Once the pressure has stabilized the user can begin the record process which essentially records the data to an excel spreadsheet at different rates depending on whether or not the even has been triggered.&amp;nbsp; The event is determined by the pressure at the point when the record process began + a user defined slope, so when the initial pressure increases by this much begin recording at a faster rate.&amp;nbsp; To capture the initial pressure I'm using a for loop with an iteration count of 1 reading from the continuous pressure reading.&amp;nbsp; That value is then used in a formula node.&amp;nbsp; I'm getting an error saying that the left brace for the formula node is needed.&amp;nbsp; Is this because of the way I'm capturing that initial pressure value?&amp;nbsp; Thanks.....&lt;/DIV&gt;</description>
      <pubDate>Fri, 29 Jul 2005 21:46:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Capturing-Data-Point/m-p/248382#M134635</guid>
      <dc:creator>MeCoOp</dc:creator>
      <dc:date>2005-07-29T21:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing Data Point</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Capturing-Data-Point/m-p/248409#M134647</link>
      <description>&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/45584"&gt;@MeCoOp&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;DIV&gt;...To capture the initial pressure I'm using a for loop with an iteration count of 1 reading from the continuous pressure reading.&amp;nbsp; That value is then used in a formula node.&amp;nbsp;&lt;BR /&gt;
&lt;HR /&gt;
&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;
&lt;DIV&gt;I don't understand how you are "capturing" anything with a FOR loop. If it runs only once, you might as well leave it out. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Please explain!!!&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;In any case, if you only want the last value from the FOR loop output, right-click on the ouptut tunnel and disable indexing. Now your formula error disappears. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;A&amp;nbsp;simple addition is better done with an ADD node from the numeric palette. Stick to wires, formula nodes are not that great in general.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;(Also, why do you need two indicators for the continuous pressure? Just right-click on the gauge and do a "visible items...digital display". Now you have both in one. :))&lt;/DIV&gt;</description>
      <pubDate>Sat, 30 Jul 2005 00:35:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Capturing-Data-Point/m-p/248409#M134647</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2005-07-30T00:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing Data Point</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Capturing-Data-Point/m-p/248411#M134649</link>
      <description>&lt;DIV&gt;Just replace your formula nodes by LabVIEW operators. The error is due to the fact that you are trying to add a single real value to an array. Laview Addition operator can do that directly, but using the formula node you would have to include the operation in&amp;nbsp;a FOR loop !&lt;/DIV&gt;
&lt;DIV&gt;Keep using formula nodes only for complicated operations with a few input variables, such as &lt;/DIV&gt;
&lt;DIV&gt;z = 2 (sin(x**2)cos(y)+3 cos(x)sin(y**2))exp(x y)/(x y sin(x y))&lt;/DIV&gt;
&lt;DIV&gt;that could be a nightmare with direct wiring.&lt;/DIV&gt;
&lt;DIV&gt;Otherwise, LavVIEW standard operators are easier to use, more powerfull due to polymorphism, easier to debug and FASTER at execution.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;As a true beginner, you should give some attention to basic programming principles with LabVIEW.&lt;/DIV&gt;
&lt;DIV&gt;Keep your diagram tidy and compact, avoiding long wires and unnecessary bends and improve the diagram aspect by aligning objects. &lt;EM&gt;Read the manuals.&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sat, 30 Jul 2005 00:43:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Capturing-Data-Point/m-p/248411#M134649</guid>
      <dc:creator>chilly_charly</dc:creator>
      <dc:date>2005-07-30T00:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing Data Point</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Capturing-Data-Point/m-p/248416#M134651</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;You are getting the error because you are feeding the formula box with an array but have defined a scalar operation. I don't understand what you are wanting to accomplish with the FOR loop.&lt;/P&gt;
&lt;P&gt;Mike...&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2005 01:35:02 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Capturing-Data-Point/m-p/248416#M134651</guid>
      <dc:creator>mikeporter</dc:creator>
      <dc:date>2005-07-30T01:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing Data Point</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Capturing-Data-Point/m-p/248852#M134849</link>
      <description>Essentially with the For Loop I was trying to tell the program to read the value from the transducer at the instant the Begin Pressure Monitor button was activated and to store that value, to make that value static.&amp;nbsp; Thats why I have it set to&amp;nbsp;an iteration count of one, hoping it would read it and store that value.&amp;nbsp; I also tried putting the field point read in the for loop with the same iteration count but it still continuously changes the value, I assume that as long as its in that case structure that will continue to occur.&amp;nbsp; So how do I save the initial value from the transducer once the Begin Pressure Monitor button&amp;nbsp;is activated? 
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 01 Aug 2005 16:41:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Capturing-Data-Point/m-p/248852#M134849</guid>
      <dc:creator>MeCoOp</dc:creator>
      <dc:date>2005-08-01T16:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing Data Point</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Capturing-Data-Point/m-p/249731#M135243</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Hi MeCoOp,&lt;BR /&gt;
&lt;BR /&gt;
I don't know if I fully understand what you are trying to accomplish,
but it sounds like you want the first (initial pressure) value to be
used in all calculations, once it's acquired the first time. With your
current code that will never happen since you are continuously writing
new values to "Initial Pressure" when the "Begin Pressure Monitor" is
TRUE. If you use "Highlight Execution" (the small light bulb) while
your VI is running, you will get a good idea of your dataflow - you
should see that the "Initial Pressure" keeps getting new values from
outside the Case Structure.&lt;BR /&gt;
&lt;BR /&gt;
To store the initial value and use it for the subsequent iterations,
you could use a couple of Shift Registers on the edge of the While Loop
to store the value. The reason that you need a couple of Shift
Registers and not just one, is to keep track of if it is the first time
the "Begin Pressure Monitor" has been pressed and if it's the first
iteration of the loop. Here's a simplified example:&lt;BR /&gt;
&lt;BR /&gt;
&lt;IMG src="http://forums.ni.com/attachments/ni/170/135243/1/InitialValue.PNG" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
If this example doesn't relate to what you are trying to accomplish, please let me know why, thanks.&lt;BR /&gt;
&lt;BR /&gt;
Have fun!&lt;BR /&gt;

&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by Philip C. on &lt;SPAN class="date_text"&gt;08-03-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;12:40 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2005 05:39:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Capturing-Data-Point/m-p/249731#M135243</guid>
      <dc:creator>Philip_Courtois</dc:creator>
      <dc:date>2005-08-03T05:39:23Z</dc:date>
    </item>
  </channel>
</rss>

