LED blinking in while loop

Hello
My application involves reading data off of a serial port at 26Hz.  I am parsing this data in real time and writing statistics to file.  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).  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.  Is there a clever way to have the LED flash for a standard .5 sec without creating timing issues?
Cheers!
CLA, CLED, CTD,CPI, LabVIEW Champion
Platinum Alliance Partner
Senior Engineer
Using LV 2013, 2012
Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

Thank you for the reply,  I create a new set of five files at midnight and append to them throughout the day at the given interval.  As I understand it the property node causes the LED to blink at a set interval.  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.  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.  I hope that this helps.
Cheers!
CLA, CLED, CTD,CPI, LabVIEW Champion
Platinum Alliance Partner
Senior Engineer
Using LV 2013, 2012
Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

Similar Messages

  • No display while caps lock LED blinks

    Hi
    Please could someone help me.
    For about 2 weeks now my laptop has refused to display anything. When I turn it on, nothing displays on the screen but the caps lock LED blinks once every 2 seconds. Also the wireless button displays orange light but nothing on the screen.
    It managed to display once in this 2 weeks and the error message I was able to see before it came on read something like:
    HP Battery Alert
    The system has detected the storage capacity of .....(did not see all the message on this line)
    very low. For optimal performance, this battery .... (did not see all the message on this line also)
    Primary(internal) Battery (601)
    ENTER - Continue Startup
    For more Information, please visit:

    Hi IIHenriquell,
    Take a look at this document.  Follow the 'Update BIOS and Software' section and let me know if it helps resolve your issue.
    Good luck!
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Accessing Data within while loops

    I have LabView 6.0
    I have a while loop for my GUI that accesses various sub VIs. One of the Sub VI is a LED on/off thing, which basically checks the communication with the PIC board that I have. For turning the LED on or off, I have to sent a unique command.
    Since the Sub VI for the LED on/off is inside a while loop it continuously executes. I want the SubVI to execute only when the status of the boolean controlling the LED has changed from the previous value. I tried giving a feedback from the SubVI to indicate whether there is a change, but Labview will not allow such loops.
    I then took the SubVI outside the while loop, keeping the boolean control (so that it continuously checks) inside the while loop. I would like the SubVI to execute depending on the boolean control change. I tried using occurances, but I think these execute only once. I tried accessing the boolean control through a local variable, but the value of the local variable would not change outside of the while loop. (even tried property indicators).
    Any solution would be appreciated.
    I could post the VI, but there are too many sub VIs... Dunno if it would be appreciated.
    Thanks!

    If you need to post a VI, it is best to strip out those parts which do not have any effect on the problem you are facing. With subVIs, do a Save with Options..>>Development Distribution. This will create an .llb file with your VI and subVIs.
    Queues and global variables can transfer data between independent nodes. I am not sure when the datatypes of queues changed. In LV6 you may need to flatten your data to string typpe before passing it to a queue. The functional global or LV2 style global is a subVI consisting of a loop which executes only once and which contains the data in an uninitialized shift register. Many threads on this forum have discussed these options.
    Lynn

  • How do i stop a while loop

    I'm new to labview and I'm having a problem stopping a while loop (running windows XP/2000 with the student edition of labview express 7).
    I'm doing a data acquisition program where I'm constantly reading in voltage and comparing it to a set point value, when the input voltage goes above the set point, i want the while loop to stop. How do I do this? I already have an LED going on when the criteria is met, but I'm not sure how to actually stop the loop (i.e. change the iteration value from true to false-i guess). If anyone can please assist me with this I would very much appreciate it.
    I've included my program too.
    Attachments:
    CO_Detection_Monitoring_System_Modified.vi ‏60 KB

    Hello Everyone-
    I've just posted a message about stopping a while loop and it was answered accurately and quickly- thanks to LV_Pro and PauloM- thanks much- its nice too see that there are many helpful people out there! Unfortunately, I have 2 more questions to ask of the forum.
    My application is almost completed- I just need to add an elapsed time counter that will tell me how long it took for my LED to trigger (from my set point-i.e. when from 0:00:00 until when my loop stopped).
    Now I've found a perfect elapsed time counter on the NI web site contributed from Mike Hall from Ohmeda Medical- the page is here.... http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=D37E2493DC333076E034080020E74861&p_node=DZ52032&p_source=external
    So my first question is, it looks like I can just extend the while loop box in my 'CO detector... .vi' and paste just the code from the 'elapsed time.vi' while loop into my loop and I will be set- but do I need to change my wait until next multiple to be a 1000 too in my program? Probably, but I'm not sure hence the question- or other ideas would appreciated.
    My second question is now that my application is complete (after I add the elapsed time above), I need to exactly duplicate this process for 7 other DAQ inputs (i.e. right now I'm using only 1 of 8 analog inputs on the FP-AI110). So should I make my 'CO detector.. .vi' a separate program (I remember reading something about this in one of the posts earlier).
    Any help is very appreciated.
    Thank you again,
    Daniel
    Attachments:
    CO_Detection_Monitoring_System_Modified.vi ‏60 KB

  • How do I run two while loops independent of each other?

    I have a simple VI. I have loop 1 with and LED and a stop button and I have loop 2 with an LED and stop button.  They are both in while loops.  When I run the VI,if I stop loop 1, I can not turn it back on.  If I stop loop 2, it will not stop.  I've attached a file with my VI.  
    Attachments:
    2 Loops.vi ‏9 KB

    bebesbabe,
    This looks like a learning exercise, so I will not present a complete solution.
    1. It is not polite to post to the Forum a VI which will not stop except by pressing the Abort button.  The Abort button should only be used to stop a VI if something is wrong with the program during development. Add a stop button to the outer loop.
    2. A loop with no delay will try to run as fast as possible, consuming all the CPU resources it can get. Since these loops are for user interfaces, delays of 100 to 200 ms are appropriate. Use the Wait (ms) function.
    3. Your main problem is understanding dataflow. In LabVIEW any node may execute only when all of its inputs have been given data and it will not complete its execution until all nodes inside it have completed.  Your VI does not have external inputs so waiting for data is not a factor. Each loop is considered a node. So the outer loop will iterate only after BOTH of the inner loops have stopped.  On the next iteration both inner loops will be started again.  Of course if the stop buttons are still pressed, the will stop after one iteration, which will seem almost instantaneous. But because of dataflow as I have described, your program cannot really work the way you want. You cannot restart one loop until both have stopped. Put an indicator on the "i" terminal of the outer loop.
    4. You may wish to consider changing the mechanical action on your stop buttons to Latch when Released.  Read the help to learn about mechanical actions.
    The way the instructions on the front panel read, it is not clear what the intended solution is. What control or user action or program action is required to turn the loops back on? Changing the stop button?  Automatically after a delay? A separate On switch?  How is the entire program supposed to stop?
    Lynn

  • Time not stopping with while loop

    Hello,
    I've attached my VI.  I am having trouble with while loops.
    I want to turn on LEDs. The first LED should turn on after 3s.  The second LED should turn on after 5s.  The third LED will turn on later. 
    The LEDs turn on based on the following conditions:
    Case 0: numeric control > 10 then led_1 off, led_2 off, led_3 off
    Case 1: numeric control <= 10 then led_1 on, led_2 on, led_3 on
    Case 2: numeric control <=5 then led_3 on
    Because of the way I'm delaying time, I have the following problems
    Case 1 --> case 2: led_3 doesn't come on right away
    Case 2 --> case 1: led_3 doesn't turn off right away
    Putting probes in certain areas leads me to believe that these problems are due to the way the time delay is being generated.
    Thanks in advance.
    EDIT: Looking at it more...it seems to be that when the stop condition is true, the loop runs one more iteration. Is there a way to keep it from running that "one more iteration."
    Attachments:
    timing.vi ‏15 KB

    One of the problems is that your VI is not able to "breathe" because it is sometimes trapped inside inner loops that consume all CPU and step on each others toes. All you need is an single outer loop and a few shift registers.
    May of your specifications are still not clear, for example what should happen to LED 1&2 in case #3? Should they remain in the state they are in, or should they turn off, for example.
    Here is a simple rewrite that spins the outer loop at a regular rate, has no inner loop, and does not need any local variables or value property nodes. See if it makes sense. Also note that your code can be simplified dramatically by using arrays. Since the stop button is read with each of the regular interations, we don't need to worry about sequencing.
    Most likely you need to do a few simple modofications, because your specs are not clear.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    timingMODCA.vi ‏15 KB

  • Blackberry Curve 9220 led blinking 4 times

    Hi, 
    i'm ikari from indonesia, 
    i have 9220 curve in condition led blinking 4 times.
    i put my device to apploader, it says USB-PIN: UNKNOWN.
    i've click next, after that my phone is start to reboot again and apploader failed to connect to my device.
    i don't know what happened to my device, it starts from charging in a night.
    at morning, my led device is blinking 4 times.
    sorry if my word can't to understanding...
    thanks.

    Hi and Welcome to the Community!
    Before you proceed to try and reload your OS, I recommend something a bit less destructive...
    Please try this sequence...note that, throughout the entire 4h15m process, your BB must remain directly connected to a known-good wall charger (not PC USB, not a cradle):
    With the battery inside, connect your BB to the wall charger
    Leave it alone for 2 hours, no matter what the LED or the display does
    Remove the battery
    Wait 15 minutes
    Insert the battery
    Wait another 2 hours, no matter what the LED or the display does
    This has been known to "kick start" some BBs.
    It is also possible that your battery or BB has experienced a problem...to test, this sequence is needed:
    Obtain an known good and already fully charged additional battery...use it in your BB and see what happens
    Obtain access to a known good and identical BB...use your battery in it and see what happens
    The results of this will indicate if it's your BB or your battery that has the problem. Note carefully please that "new" and "know good" are not necessarily the same things. While rare, a "new" battery certainly could be defective. Rather, the simplest (and least costly, btw) method to conduct this test is to find someone with an identical BB who has no issues...trade batteries and see what happens.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Handling while loop in subvi

    I have a subvi that currently contains a while loop.  The while loop is responsible for sequentially illuminating a grouping of LEDs continuously.  This is the desirable function of this subvi.  (if there is a better way to do this without a while loop I'm all ears)
    Secondly, I have a main vi using event structures.  To make things generic, lets say the user can select the LED grouping by selecting the 1st LED and the last LED to illuminate by editting two text fields in the main vi.  After the user enters the LED values in the two text fields, they click OK, the range is sent to the subvi, and the subvi starts controlling the sequential illumination of LEDs.  Got this working great!
    Here is where I have the problem.  The user now wants to change the range of LEDs and send these to the subvi.  Nothing happens because the subvi is stuck in it's while loop.
    whats the best way to handle this.?.it's kick'n my butt currently, and a simple example would be wonderful!
    Thanks,
    Mike
    Solved!
    Go to Solution.

    Robert Cole beat me to the punch, but here is an example of his solution.
    - tbob
    Inventor of the WORM Global
    Attachments:
    LED_Main.vi ‏8 KB
    LED_Sub.vi ‏14 KB

  • PSC 1410 shows E and all leds blinking

    Hi there everyone!
    I'm not an english speaker, but I will try to do my best in order to explain myself as clear as possible. This is the fact, I recently acquired a PSC 1410 a year ago. I know the previous owner bought it on 2006 and it was working properly till a month ago when the tricolor cartridge blew up inside the printer, literally. I turned on the printer and it showed me the Error message and all the panels led were blinking. I disconnected it from the wall outlet. So, I disassembled the printer and it was a mess, there was ink all over the interior, including the circuits board. Then I cleaned everything very carefully, and finally I assembled the pieces back together. When I tried to turn on the printer again I received the same Error message and all the leds blinking.
    I've been looking for a service manual on the web or something to solve this, but I was unable to achieve my goal. I can not indulge me and buy another printer, I can not reach HP customer service, and nobody knows how to fix this problem here. Moreover I feel like I have a little kind of affection for this appliance.
    Now my question: is this problem fixable? Can I fix it on my own?
    Thanks a lot in advance.
    CULEBRA83

    All lights blinking on the printer would indicate a fatal error situation. Here are couple of things you can try:
    1) Perform the steps under the section 'All lights are Blinking' in the document below:
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&docname=c00476152
    2) Follow the steps in the document below to 'Clean the gold-colored contacts in the print carriage' and cartridge contacts.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00094661
    Note: Ensure that the printer is disconnected from power while performing the step.
    Hope this helps.
    Say thanks by clicking the Thumbs up icon in the post
    Please mark reply as "Accept as Solution" if it solved the problem, so others can find it.
    Although I am an HP employee, I am speaking for myself and not for HP

  • SG200-08 all LED blink together.

    Hello,
    I have a SG200-08 which all LEDs blink together. This happened after a firmware upgrade.
    I can not access my switch.
    does anyone know a solution for this?
    thanks.

    Hi
    I think the following link will be helpful to upgrade and after upgrading the firmware, reboot the switch to factory default settings. I tried and I was successful, so I though it would be helpful to you.
    The following link will be useful while upgrading :
    http://sbkb.cisco.com/CiscoSB/Loginr.aspx?login=1&pid=4&app=search&vw=1&articleid=947
    Thanks & Regards
    Punith Kumar Neelam
    SBCD Engineer

  • Neo4 does not POST (Power cuts + 3 second Power LED Blinking)

    Hi,
    This is my first build and I have already been plagued with 2 problems.  First, I finished the build and ran for one night and then the PSU went bad and needed to be replaced (replaced with same model).  Now, after running fine for about two weeks, the system shutdown over night and won't restart.  No activity should have been happening overnight.   When I try to start the system, the fans and everything start for about one second and then stop.  The power LED begins to blink every 3 seconds and no power is given to the system.  The D-bracket does not have any lights showing, they go out after the first second of running.  Here is what I have tried so far:
    1.  Tested power supply on second system and it worked fine.
    2.  Removed the motherboard from the case and set it on the static bag it came in.  Then with only the video (with it's power) and the two MB power cables connected, I tried to boot the system.  The same problem occured, power off after 1 second and LED blinks.
    3.  Bought a new PSU (Mad-Dog 500W which has +12V/30A) and still the same problem.
    4.  Removed each RAM module and tried with just one stick, still the same problem. 
    So I think I the only things left are MOBO and CPU...  I would think if it was the CPU, I would get a signal from the D-Bracket.  Any help? 
    Thanks in advance!

    Quote from: Deathstalker on 12-April-05, 00:14:59
    I would try removing the Power Cord from the Power Supply and the Battery from the mobo. Leave them out a good 15 to 20 minutes before putting them back.
    If that does not work, try a different brand of RAM for testing purposes.
    Deathstalker,
    Thanks for the suggestions.  I tried removing the battery and power for 15 minutes and replacing, but no luck, same problem.  This system was working for two weeks with the PQI RAM modules. Can this compatability change all of a sudden while running and just power down the system?

  • Caps-lock and scoll-lock LEDs blinking

    Ok so a friend gave me 2 dv7-1245dx laptops. When I turn them on both screens do nothing,and the caps and scroll lock LEDs blink every 3 sec apart. On one of them the dvd drive also acts like it is trying to read a disc. External monitor didn't owkr,nor did changing ram to a set that know works,and swapped CMOS batterys between the 2 didn't help either. Also did a hard reset which also didn't help. Any suggestions?

    It sounds like they may be experiencing a processor failure if it blinks only once with a 3-4 second pause between each blink.
    Review this document as it has the decoding table for the blink codes. 
    One blink indicates that the processor has failed.  While it is is unlikely to happen on two notebooks simultaneously, it's not impossible.
    The steps listed in the document is to reseat the processor or to have the unit serviced. 
    Normally, HP has a guide for most of the notebooks on how to reseat/replace the processor.  However, this particular system does not list the maintenance and service guide here.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • LED blinks upon switching on, system doesnt boot up!!!

    I have HP Pavilion dv4 1225dx laptop
    While switching on LEDs located near caps lock and num lock are blinking, without any beep sound. At the same time, the exhause fan runs. But the system doesnt boot up. The LED blinks continously, with out stopping. Time to time the system boots up and i was able to work normally, still with blinking LED signals.
    To note, i dont see anything in the screen and i tried with alternative screen, but the situation remains...
    I checked in the Hp support, which conveys the problem in the CPU. but I was able to login my system even after this problem.
    So im not sure my CPU is having a problem.
    Before this issue, there used to be a message while switchign on about replacing the internal battery. This i havent done yet. Im suspecting this issue.
    Also, recently i cleaned the exhaust windows using an air gun.
    Presently, My system is working on windows 8 OS.
     I hope to have answers to my problem
    Thanks in advance

    Thanks for the reply!
    But how to overheat the system.
    I tried leaving it on for at least 7-8 hrs, then sometimes it starts and not sure about all the time.
    Moreover how to switch off the fan to overheat the system.
    Anyway both suggestions will take time to switch on, is there any instant solution???
    thanks in advance

  • How to use one single boolean button to control a multiple while loops?

    I've posted the attached file and you will see that it doesn't let me use local variable for stop button, but I need to stop all the action whenever I want but more than one single button on the front panel would look ugly... The file represents the Numeric Mode of
    HP 5371A. thanks for your time
    Attachments:
    NUMERIC.vi ‏580 KB

    In order to use a local variable, you can change the mechanical action of stop button (Switch When Pressed will work), or create a property node for it and select values. You'll also have to do a lot of work changing those for loops into while loops so that you can abort them.

  • While loop doing AO/AI ... Performanc​e?

    Hi!
    I have been trying to get a VI to do concurrent Analog
    data in and out and both the input and output rates and
    waveforms can change while the VI is running. My problem
    is this:
    (a) If I try putting the read and write operations in
    separate while loops, one or the other loop will
    die in a buffer over/underrun.
    (b) If I put both into the same loop, then this works
    but I am limited in the choice of data-rate parameters
    because eventually one or the other DAQ VI will take
    too long.
    At this point I have only one loop and the buffers are big
    enough to hold 10 iteration. Every time one of the loops
    dies I reset it. Still this seems awkward. Is there a
    way of improving on the loop overhead and putting t
    he
    input and output in separate loops? Or any other way to
    improve performance?
    Rudolf

    Ok, I knew that ocurences did something useful but I am
    still a bit confused:
    * Can you set an occurrence for an output event. None
    of the examples I've seen say so but it looks like
    it should work
    * How do occurrences actually help with the "hanging"
    problem. Does the compiler see the occurrence in
    a loop and change the wait parameters?
    I looked at devzone but most of the stuff I found there,
    even the promising looking stuff was all about
    synchronizing and triggering, not about occurrences.
    Rudolf
    JB wrote:
    : Once in the read function, the program "hangs" until the number of
    : data points is in the buffer. The same applies to the write function.
    : This means that most of the time, your program is waiting.
    : To sol
    ve this problem, you must use DAQ occurrences (--> hardware
    : events).
    : For examples for using daq occurrences, type "daq occurrence" in the
    : search of the LabVIEW help or even better, at
    : http://zone.ni.com/devzone/devzoneweb.nsf
    : Hope this helps

Maybe you are looking for

  • Blinking I beam, but still cant fill out form

    I have reader 9. I need to fill out forms.So far I have had two that I have tried, both fillable with allowed access. I have a blinking I beam, but when I hit the keys, I get nothing, the curser just blinks at me in that ha, ha kind of way. Please he

  • Inventory with HU enabled - pallet in wrong place

    I'm running an inventory in a HU managed storage location, and I've come up with the normal situation that a pallet is in the wrong place. When I try to post the count the system show me the L4 203 that basically says the pallet already exists in ano

  • How can I tell when an update offer is real or just a scam to mess up my computer

    whats your answer adobe

  • Auto negotiation of codec in AS5350

    My gateway (AS5350) can not do autonegotation of codec. Can anyone tell me how to do. I'm using c5350-is-mz.122-15.T14.bin in my gateway. I have config: voice class codec 1 codec preference 1 g729r8 codec preference 2 g729br8 codec preference 3 g723r

  • JTree Listener problem!

    I have the following JTree: [root] project [node1] car [node2 = child of node1] car_Info [children of node2] color, length, engine, price, etc...(about 80 items) I use polymorphism to implement this: public interface NodeInfo { public void select();