<?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: Diffrence between two data from data aquisition in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/860100#M389727</link>
    <description>&lt;P&gt;I'm not sure what you mean by real time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you get a waveform out of your DAQmx Read, you can use Get Waveform components from the Waveform palette to unbundle and get the raw data Y array.&lt;/P&gt;&lt;P&gt;With a dynamic data type, you have the blue express VI conversions.&amp;nbsp; You are using one now to convert from the blue wire to a scalar.&amp;nbsp;&amp;nbsp; If you right click and do properties, you can select various other outputs such as arrays, waveforms, arrays of waveforms, ....&lt;/P&gt;</description>
    <pubDate>Wed, 25 Feb 2009 15:09:00 GMT</pubDate>
    <dc:creator>RavensFan</dc:creator>
    <dc:date>2009-02-25T15:09:00Z</dc:date>
    <item>
      <title>Diffrence between two data from data aquistion</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/859478#M389457</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got a data aquistion system which is supposed to keep aquiring data unitl the difference between two points reached some big number. For example, I am getting voltage(mv) like 2.31, 2.32, 2.34. 2.33, 2.32, 2.32, 2.33......Until the data reach some point, let's say 0.1V higher or lower than the first one.Thewhole procss stop. Thank you for any suggestions. &lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2009 20:19:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/859478#M389457</guid>
      <dc:creator>oly</dc:creator>
      <dc:date>2009-02-24T20:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between two data from data aquistion</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/859498#M389463</link>
      <description>Try this... (Labview 8.2)</description>
      <pubDate>Tue, 24 Feb 2009 20:44:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/859498#M389463</guid>
      <dc:creator>MattBradley</dc:creator>
      <dc:date>2009-02-24T20:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between two data from data aquistion</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/859505#M389464</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help. However, I do not the Max until I actually run the program. For example, the data I got is 10% bigger than the first one, then the aquistion stops. :(...However, I do know the first one until I run the program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Em..I kindof see your point. Thank you. Let me work on it...Thank you~~~~~~~~~~~~~~~~~~~~ &lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by oly on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 02-24-2009&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 03:02 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Feb 2009 21:02:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/859505#M389464</guid>
      <dc:creator>oly</dc:creator>
      <dc:date>2009-02-24T21:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between two data from data aquistion</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/859531#M389476</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understood the program now. One more question is I do not know my initial value until I run the DAQ system. The first data I aquired should be my initial value which has a wild range actually, 0-600mv. However, I max difference I want is around 10mv. Any idea how to set the initial value. Can I somehow run my DAQ several times and then get mean of them and then set it as the initial value?Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2009 21:36:19 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/859531#M389476</guid>
      <dc:creator>oly</dc:creator>
      <dc:date>2009-02-24T21:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between two data from data aquistion</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/859562#M389492</link>
      <description>&lt;P&gt;It looks to me like Matt's example took care of that.&amp;nbsp; The first (0th) iteration of the loop can't stop while while loop because he requires the condtion and the i terminal to be greater than zero in order to stop the loop.&amp;nbsp; This gives the loop an opportunity to seed the shift register.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Post your code if your having problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to get a handful of values and average them to get the initial value, I would just do another DAQ read in a loop of let's say 10 times and feed the average to the left hand shift register to initialize it.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2009 22:18:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/859562#M389492</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2009-02-24T22:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between two data from data aquistion</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/859576#M389498</link>
      <description>&lt;P&gt;Hi Ravens,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your explanation. You and Matt are right. Here is my program. &lt;/P&gt;&lt;P&gt;Couple questions came up. The amplitude I got from the DAQ is dynamic data. &lt;/P&gt;&lt;P&gt;1. Any way to record them and then manage them real time? Is it possilble that we store them in an array or something as Amp(1),Amp(2), Amp(3)..,...Amp(i)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. I failed to wire "amilitude" to the wait loop and replace "get data"...I know the data types are different.How can I change the data type of "amplitude"? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your explanation again. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2009 22:49:24 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/859576#M389498</guid>
      <dc:creator>oly</dc:creator>
      <dc:date>2009-02-24T22:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between two data from data aquistion</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/859581#M389503</link>
      <description>&lt;P&gt;I cleared out the seconde question.&amp;nbsp; I used the dynamic data type converter and change to it DBL. I finally connected this two together. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2009 22:59:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/859581#M389503</guid>
      <dc:creator>oly</dc:creator>
      <dc:date>2009-02-24T22:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between two data from data aquistion</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/859586#M389505</link>
      <description>Updated program..&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by oly on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 02-24-2009&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 05:15 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Feb 2009 23:15:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/859586#M389505</guid>
      <dc:creator>oly</dc:creator>
      <dc:date>2009-02-24T23:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between two data from data aquistion</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/859588#M389507</link>
      <description>I think I figured it out. The last message is the updated program. Thank you both～～～～～～～～～</description>
      <pubDate>Tue, 24 Feb 2009 23:19:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/859588#M389507</guid>
      <dc:creator>oly</dc:creator>
      <dc:date>2009-02-24T23:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between two data from data aquistion</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/859592#M389510</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still curious about this one,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The amplitude I got from the DAQ is dynamic data. &lt;/P&gt;&lt;P&gt;1.
Any way to record them and then manage them real time? Is it possilble
that we store them in an array or something as Amp(1),Amp(2),
Amp(3)..,...Amp(i)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea? Thanks! &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2009 23:25:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/859592#M389510</guid>
      <dc:creator>oly</dc:creator>
      <dc:date>2009-02-24T23:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between two data from data aquisition</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/860100#M389727</link>
      <description>&lt;P&gt;I'm not sure what you mean by real time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you get a waveform out of your DAQmx Read, you can use Get Waveform components from the Waveform palette to unbundle and get the raw data Y array.&lt;/P&gt;&lt;P&gt;With a dynamic data type, you have the blue express VI conversions.&amp;nbsp; You are using one now to convert from the blue wire to a scalar.&amp;nbsp;&amp;nbsp; If you right click and do properties, you can select various other outputs such as arrays, waveforms, arrays of waveforms, ....&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2009 15:09:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/860100#M389727</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2009-02-25T15:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between two data from data aquistion</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/861567#M390328</link>
      <description>&lt;P&gt;Thank you, Ravens.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to wire Amplitude output with a 1-D array. However, only the first item in the array was keeping changing. All others are still zeros...I must have done something wrong. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I tried to do is to store all the data from DAQ system into an array. Then later on, I can operate data in the array just like what we do in C or Matlab. For example, if we can store data in an array A[4]= (1, 2, 3, 4), after that, I can get any data out of the array by referring A[1]...A[4]....I am just wondering whether LabView can do this...Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2009 07:53:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/861567#M390328</guid>
      <dc:creator>oly</dc:creator>
      <dc:date>2009-02-27T07:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between two data from data aquistion</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/861771#M390402</link>
      <description>&lt;P&gt;Of course.&amp;nbsp; LabVIEW has the Index Array function to be able to access individual elements of an array.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We'd have to see your code to give any more help.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2009 14:10:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Diffrence-between-two-data-from-data-aquistion/m-p/861771#M390402</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2009-02-27T14:10:53Z</dc:date>
    </item>
  </channel>
</rss>

