<?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: LED blinking in while loop in LabVIEW</title>
    <link>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/603480#M281237</link>
    <description>The while loop is primarly used to to read the serial port and write the data to file.&amp;nbsp; The problem with using a wait millisecond command is that it will throw off the reading from the serial port, the most I can wait is 38 milliseconds otherwise I will miss data at the port.&amp;nbsp; I will see about getting my code up, unfortunately I will be out of the office for most of today.&amp;nbsp; Thank you very much for the help!&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 30 Oct 2007 15:47:52 GMT</pubDate>
    <dc:creator>jon_mcbee</dc:creator>
    <dc:date>2007-10-30T15:47:52Z</dc:date>
    <item>
      <title>LED blinking in while loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/603435#M281218</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;My application involves reading data off of a serial port at 26Hz.&amp;nbsp; I am parsing this data in real time and writing statistics to file.&amp;nbsp; I want to have an LED blink each time a file is written (I have a files being written in the following intervals: 1sec, 3sec, 15sec, 60sec, 10min).&amp;nbsp; My problem is that the LED only stays illuminated for the single iteration, which is dictated by the speed I am reading from the serial port.&amp;nbsp; Is there a clever way to have the LED flash for a standard .5 sec without creating timing issues?&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Oct 2007 15:14:31 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/603435#M281218</guid>
      <dc:creator>jon_mcbee</dc:creator>
      <dc:date>2007-10-30T15:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: LED blinking in while loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/603443#M281222</link>
      <description>&lt;DIV&gt;In order to make an LED "blink" you can create a property node and select blinking.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Do you have the files written only 5 times at 1sec, 3sec, 15sec, 60sec, 10min, resulting in 5 files.&amp;nbsp; Or do you have files written every 1sec, 3sec, 15sec, 60sec, 10min?&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Oct 2007 15:20:11 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/603443#M281222</guid>
      <dc:creator>Steve.Briggs</dc:creator>
      <dc:date>2007-10-30T15:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: LED blinking in while loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/603449#M281226</link>
      <description>Thank you for the reply,&amp;nbsp; I create a new set of five files at midnight and append to them throughout the day at the given interval.&amp;nbsp; As I understand it the property node causes the LED to blink at a set interval.&amp;nbsp; I am looking to have the LED blink at the predetermined interval (1sec, 3sec, 15sec...) and stay illuminated for 0.5sec each time it blinks.&amp;nbsp; I have the triggering for the blinking worked out so that it blinks when I want it to, the problem is that it is in a while loop that is executing very quickly and so the LED doesnt stay illuminated for very long when it does blink.&amp;nbsp; I hope that this helps.&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Oct 2007 15:25:20 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/603449#M281226</guid>
      <dc:creator>jon_mcbee</dc:creator>
      <dc:date>2007-10-30T15:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: LED blinking in while loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/603462#M281232</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Do you have other activity inside of this while loop?&amp;nbsp; If not you can just put a Wait command that will keep the LED illuminated until the wait is over and the loop moves on to the next iteration.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Attaching your code will help as well &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://forums.ni.com/i/smilies/16x16_smiley-wink.gif" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by Steve.Briggs on &lt;SPAN class="date_text"&gt;10-30-2007&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;11:33 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2007 15:33:00 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/603462#M281232</guid>
      <dc:creator>Steve.Briggs</dc:creator>
      <dc:date>2007-10-30T15:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: LED blinking in while loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/603480#M281237</link>
      <description>The while loop is primarly used to to read the serial port and write the data to file.&amp;nbsp; The problem with using a wait millisecond command is that it will throw off the reading from the serial port, the most I can wait is 38 milliseconds otherwise I will miss data at the port.&amp;nbsp; I will see about getting my code up, unfortunately I will be out of the office for most of today.&amp;nbsp; Thank you very much for the help!&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Oct 2007 15:47:52 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/603480#M281237</guid>
      <dc:creator>jon_mcbee</dc:creator>
      <dc:date>2007-10-30T15:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: LED blinking in while loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/603544#M281264</link>
      <description>&lt;DIV&gt;Somehow incorporating the wait with the timing intervals for your read could do the trick.&amp;nbsp; For instance, you read at intervals no less than 1 second, so instead read at an interval of 0.5 second, and have the wait for 0.5 seconds.&amp;nbsp; You'll get both the 0.5 second illumination of the LED and a read that performs 0.5 seconds after, giving you 1 second.&amp;nbsp; Same thing goes for the other intervals you wish to read at.&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Oct 2007 16:51:19 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/603544#M281264</guid>
      <dc:creator>Steve.Briggs</dc:creator>
      <dc:date>2007-10-30T16:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: LED blinking in while loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/603671#M281329</link>
      <description>Perhaps a simple timer would work. Either the Elapsed Time vi or the Get Date/Time in Seconds. Use a boolean that gets set at the time you read the data, and resets the timer. After the 0.5 seconds of elapsed time, change the indicator. That shouldn't use a while loop or any delay, so it shouldn't affect your reading or writing of the data. I just posted a simple example here: http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=281242&amp;amp;jump=true#M281242&lt;BR /&gt;&lt;BR /&gt;Hope it helps.&lt;BR /&gt;&lt;BR /&gt;B-)&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Oct 2007 19:44:59 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/603671#M281329</guid>
      <dc:creator>LabViewGuruWannabe</dc:creator>
      <dc:date>2007-10-30T19:44:59Z</dc:date>
    </item>
    <item>
      <title>LED blinking from counter input</title>
      <link>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/857834#M388831</link>
      <description>&lt;P&gt;hi, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a similar solution to my problem and hope some smart guy here could help me for this. I am reading sync pulses from a laser (1 to 20 Hz) through one of the input counters of my DAQ PCI 6221.I am able to read the number of pulses at input counter however, I would like to let a LED blink on each edge detected at input counter. In other words, I would like a boolean output for each detected pulse.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;immi &lt;/P&gt;</description>
      <pubDate>Sun, 22 Feb 2009 07:50:27 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/857834#M388831</guid>
      <dc:creator>immi</dc:creator>
      <dc:date>2009-02-22T07:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: LED blinking from counter input</title>
      <link>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/857835#M388832</link>
      <description>&lt;P&gt;Hi immi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check out this vi. This Vi make the&amp;nbsp;Led blink,&amp;nbsp;when it detects a Rising/Falling Edge in the signal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Venky&lt;/P&gt;</description>
      <pubDate>Sun, 22 Feb 2009 08:03:48 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/857835#M388832</guid>
      <dc:creator>VENKATESH.J</dc:creator>
      <dc:date>2009-02-22T08:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: LED blinking from counter input</title>
      <link>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/857838#M388833</link>
      <description>&lt;P&gt;Hi Venky,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for prompt reply. Sorry I forgot to mention that I am using Labview V8.0 and the Vi is not opening with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;immi &lt;/P&gt;</description>
      <pubDate>Sun, 22 Feb 2009 08:33:22 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/857838#M388833</guid>
      <dc:creator>immi</dc:creator>
      <dc:date>2009-02-22T08:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: LED blinking from counter input</title>
      <link>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/857845#M388837</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Immi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check out this 8.0 Vi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Venky&lt;/P&gt;</description>
      <pubDate>Sun, 22 Feb 2009 09:23:29 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/857845#M388837</guid>
      <dc:creator>VENKATESH.J</dc:creator>
      <dc:date>2009-02-22T09:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: LED blinking in while loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/857849#M388840</link>
      <description>&lt;P&gt;Hi Venky,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks..I see only one ex-or gate with 2 switches and&amp;nbsp; a LED in the vi. I hope nothing is missing in it. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;imran &lt;/P&gt;</description>
      <pubDate>Sun, 22 Feb 2009 10:26:19 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/857849#M388840</guid>
      <dc:creator>immi</dc:creator>
      <dc:date>2009-02-22T10:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: LED blinking in while loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/857850#M388841</link>
      <description>&lt;P&gt;Hi Imran,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yeah it is not missing anything.&lt;/P&gt;&lt;P&gt;It detects the transition ,whenever the Signal boolean changes its value from true to false or false to true.&lt;/P&gt;&lt;P&gt;Note: for help check context help (Ctrl+H) of the Edge detection.vi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if it meets ur requirement or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Venky&lt;/P&gt;</description>
      <pubDate>Sun, 22 Feb 2009 10:52:04 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/857850#M388841</guid>
      <dc:creator>VENKATESH.J</dc:creator>
      <dc:date>2009-02-22T10:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: LED blinking in while loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/857860#M388846</link>
      <description>&lt;P&gt;Dear Venky,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To eleobrate my problem, i am attaching an image of the part of the vi. As you can see the information I am
getting from the hardware through the DAQmx is a DBL precision number
and I dont see any direct boolean signal readout from the counter. Hope
this will give you a better view of the problem. I need to be able to read the logic level of the counter first in order to get the edge detection work. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;
Rgrds&lt;/P&gt;imran</description>
      <pubDate>Sun, 22 Feb 2009 12:12:14 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/857860#M388846</guid>
      <dc:creator>immi</dc:creator>
      <dc:date>2009-02-22T12:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: LED blinking in while loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/858692#M389180</link>
      <description>&lt;P&gt;Hi Imran:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any reason why you cannot use a digital input rather than a counter?&amp;nbsp; This would give you a boolean value that you could use with the code from Venky.&amp;nbsp; If you do have to use a counter, can you provide some more background on what your application is doing?&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by A Person on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 02-23-2009&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 05:27 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 Feb 2009 23:27:28 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/858692#M389180</guid>
      <dc:creator>A_Person</dc:creator>
      <dc:date>2009-02-23T23:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: LED blinking in while loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/862448#M390724</link>
      <description>&lt;P&gt;Hi Alex, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am developing a laser ablation system for which i need a simple control of a laser equipment for generating specific number of pulses and stepping a stepper motor after each pulse (falling edge). I&amp;nbsp; tried to use a digital input but apparently the DAQ digital input is not able to detect the input pulses which are (50 us) short. Counter input detects is easily and accurately but I cannot get a logic level information from counter and&amp;nbsp; which is my basic problem. i read the help and the only way i can use digital input of my DAQ card is it to configure it as "detect changes" and hardware timed but in that case it i noticed it missed to detect some pulses and accuracy is compromised. Please bare with me as i am not an expert user of LabView.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;imran &lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2009 20:24:15 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/862448#M390724</guid>
      <dc:creator>immi</dc:creator>
      <dc:date>2009-03-01T20:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: LED blinking in while loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/862528#M390752</link>
      <description>&lt;SPAN class="noindex"&gt;&lt;P&gt;Hi Alex, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am developing a
laser ablation system for which i need a simple control of a laser
equipment for generating specific number of pulses and stepping a
stepper motor after each pulse (falling edge). I&amp;nbsp; tried to use a
digital input but apparently the DAQ digital input is not able to
detect the input pulses which are (50 us) short. Counter input detects
is easily and accurately but I cannot get a logic level information
from counter and&amp;nbsp; which is my basic problem. i read the help and the
only way i can right now use digital input of my DAQ card is it to configure the advanced clock settings to "change detection" and hardware timed but in this case it i noticed it is missing to detect some pulses and accuracy is compromised. Please bare
with me as i am not an expert user of LabView.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;imran &lt;/P&gt;&lt;/SPAN&gt;</description>
      <pubDate>Mon, 02 Mar 2009 05:54:05 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/862528#M390752</guid>
      <dc:creator>immi</dc:creator>
      <dc:date>2009-03-02T05:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: LED blinking in while loop</title>
      <link>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/863141#M391015</link>
      <description>&lt;P&gt;Hi immi:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So 1 to 20 times per second, you are receiving a 50us pulse?&amp;nbsp; Your digital input should be able to detect that without a problem.&amp;nbsp; One thing you can do to help make sure you detect the pulses is to turn off the filtering as shown in the example.&amp;nbsp; Give this example a try and see if you can detect the digital pulses.&amp;nbsp; Otherwise, we can try and come up with a solution that uses a counter.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2009 22:53:07 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/LED-blinking-in-while-loop/m-p/863141#M391015</guid>
      <dc:creator>A_Person</dc:creator>
      <dc:date>2009-03-02T22:53:07Z</dc:date>
    </item>
  </channel>
</rss>

