<?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 VI for recording data in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/VI-for-recording-data/m-p/1857723#M631663</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am a mechatronics student, and am new to labview. Needed some help with a few things to get started. I am using labview student edition 2009 and a NI 9213 temperature module with NI USB 9162. I wanted to design a VI that would in essence do the following tasks:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Check to see how many sensors are connected and display LEDs for the same.&lt;/P&gt;
&lt;P&gt;2. Take an average of the sensors values. (but only those which are connected).&lt;/P&gt;
&lt;P&gt;3. Show sensor values and deviation of the individual values from the calculated average.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have started the design of the VI but am just in the basics.&amp;nbsp;I wanted to know how it is possible to check data coming from DAQ satisfies a set of given 'if then else' conditions?&lt;/P&gt;
&lt;P&gt;I hope you can help me out.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2012 16:24:59 GMT</pubDate>
    <dc:creator>rosshan.jethwa</dc:creator>
    <dc:date>2012-01-31T16:24:59Z</dc:date>
    <item>
      <title>VI for recording data</title>
      <link>https://ni.lithium.com/t5/LabVIEW/VI-for-recording-data/m-p/1857723#M631663</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am a mechatronics student, and am new to labview. Needed some help with a few things to get started. I am using labview student edition 2009 and a NI 9213 temperature module with NI USB 9162. I wanted to design a VI that would in essence do the following tasks:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Check to see how many sensors are connected and display LEDs for the same.&lt;/P&gt;
&lt;P&gt;2. Take an average of the sensors values. (but only those which are connected).&lt;/P&gt;
&lt;P&gt;3. Show sensor values and deviation of the individual values from the calculated average.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have started the design of the VI but am just in the basics.&amp;nbsp;I wanted to know how it is possible to check data coming from DAQ satisfies a set of given 'if then else' conditions?&lt;/P&gt;
&lt;P&gt;I hope you can help me out.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2012 16:24:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/VI-for-recording-data/m-p/1857723#M631663</guid>
      <dc:creator>rosshan.jethwa</dc:creator>
      <dc:date>2012-01-31T16:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: VI for recording data</title>
      <link>https://ni.lithium.com/t5/LabVIEW/VI-for-recording-data/m-p/1857937#M631697</link>
      <description>&lt;P&gt;Well I don't ever use the DAQ Assistant or the Dynamic Data Type but I can help you with two things right off the bat.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; TCs report a very high number when they're NOT connected.&amp;nbsp; Almost all types can go below 0 degrees (C or F).&amp;nbsp; So, using less than zero isn't a valid way to determine if a TC is hooked up to a channel.&amp;nbsp; Try actually disconnecting one and see what temperature comes back.&amp;nbsp; (Hint: If it's close to the surface of the sun it's probably not valid. &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://ni.lithium.com/i/smilies/16x16_smiley-wink.gif" alt="Smiley Wink" title="Smiley Wink" /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; DAQ code set up for multiple channels returns an ARRAY of values.&amp;nbsp; Index that array in a loop and put your code there rather than copying everything 16 times.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2012 18:02:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/VI-for-recording-data/m-p/1857937#M631697</guid>
      <dc:creator>NIquist</dc:creator>
      <dc:date>2012-01-31T18:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: VI for recording data</title>
      <link>https://ni.lithium.com/t5/LabVIEW/VI-for-recording-data/m-p/1857971#M631701</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yea I am aware of the fact that an open channel on the DAQ results in a value of -55000 or so.. So I used a simple check for positivist of channel data to check if a T/C is connected... Because I'm only interested in temperature ranging from room temp up to 200C. So just put in a simple check for connection / disconnection of a T/C in a channel. Hope this was a simple solution.&lt;BR /&gt;Also thanks for the input on using a array instead of repeating stuff 16 times &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; I knew there was a better way but didn't know the solution.. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Roshan&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2012 18:32:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/VI-for-recording-data/m-p/1857971#M631701</guid>
      <dc:creator>rosshan.jethwa</dc:creator>
      <dc:date>2012-01-31T18:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: VI for recording data</title>
      <link>https://ni.lithium.com/t5/LabVIEW/VI-for-recording-data/m-p/1860599#M632150</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So i tried working a little further to develop the VI to check for if a signal was (+ve), if so then it is relevant for calculation of average else dicard...&lt;/P&gt;
&lt;P&gt;I wrote down a simple C/C++ code as I am used to programming in that.. it goes as follows :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;avg,count, loca_sum = 0;&lt;/P&gt;
&lt;P&gt;for (int i=0;i&amp;lt;=15;i++)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (a[i]&amp;gt;0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; local_sum = Local_sum + a[i];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;count ++,;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;avg = local_sum / count&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to implement this simple for loop into my labview VI.... but i was not sucessful.. can some one help me out with this...&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2012 09:00:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/VI-for-recording-data/m-p/1860599#M632150</guid>
      <dc:creator>roshan.jethwa</dc:creator>
      <dc:date>2012-02-02T09:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: VI for recording data</title>
      <link>https://ni.lithium.com/t5/LabVIEW/VI-for-recording-data/m-p/1861253#M632264</link>
      <description>&lt;P&gt;Your code makes no sense. First, you are only taking a single sample per channel. What sort of average do you want to take? The average for all channels? You certainly can't take an average for a single channel unless you use the point-by-point mean function. If you had multiple samples, just use the standard Mean function. There is even an express VI (Statistics) that you can use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should take the &lt;A href="http://www.ni.com/academic/students/learnlabview/" target="_self"&gt;basic LabVIEW tutorial&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2012 16:27:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/VI-for-recording-data/m-p/1861253#M632264</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2012-02-02T16:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: VI for recording data</title>
      <link>https://ni.lithium.com/t5/LabVIEW/VI-for-recording-data/m-p/1862315#M632405</link>
      <description>&lt;P&gt;Hi Dennis,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you would have read my first post you would've probably understood my problem.&lt;/P&gt;
&lt;P&gt;I want to check how many sensors are connected and online, and take an average of those that are connected and display them.... Can you help me to do this.. I am not sure how to split the signal coming from the DAQ as it is an array and i need to acess the individual elements of this array&amp;nbsp;to check if connected and then decide to take them into account for calculating the mean of those.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2012 08:22:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/VI-for-recording-data/m-p/1862315#M632405</guid>
      <dc:creator>roshan.jethwa</dc:creator>
      <dc:date>2012-02-03T08:22:49Z</dc:date>
    </item>
  </channel>
</rss>

