Quit from while loop inside a vi that run a while loop

Hello,
this is just an example
i have a led that blink inside a subvi and i what to stop it form the ui of the user (MainHelp.vi)
but because the subvihelp.vi dont know the stop button it will not stop when i klick on the stop button
How i can work it out with out using global Var
thanks for your replay.
Attachments:
MainHelp.vi ‏9 KB
SubVIHelp.vi ‏9 KB

Hi
Here is one method to stop a blinking VI in a SubVI.  I tried not to change your version of how the blinking works.  Since the subVI is running continuously this example calls the VI using static reference and using the control names.  You could also use a queue to pass values to the subVI controls.
Your original VI has a lot of stuff that made no sense, so I cleaned them all out or up, so to speak.
Good Luck.
Mark Ramsdale
Attachments:
MainHelp.vi ‏12 KB
SubVIHelp.vi ‏9 KB

Similar Messages

  • I am trying to burn some cds from my playlist on itunes, but my playlist shows many of my songs in light print and says that it will not burn because it is not a file, these are all songs I have purchased quite a while ago, how do i get them to files?

    I am trying to burn some cds from my playlist on itunes, but my playlist shows many of my songs in light print and says that it will not burn because it is not a file, these are all songs I have purchased quite a while ago, how do i get them to files?

    If they were songs you purchased from itunes, try redownloading them from your purchases...
    if that doednt work, make sure the optuon to copy files to itunes media folder is checked in settings, then find and download from the net. and re-add them to your library

  • Last value from a loop and values inside the loop

    Hi
    Sorry about the confusing heading above, but its late at night and better words do not occur to me rightaway. Let me explain my situation.
    I have a single instrument (a voltage source) that is being swept from one value to another for an experiment. It has three VI's : 1. enable o/p. 2. Set a voltage output level. 3. diable o/p.
    I am using the error in and error out pins of instrument vis to properly sequence operations. I connect the error out pin of VI 1 to the error in pin of VI 2. Each of these errors is a cluster of three values.
    When I try to wire the error out from VI 2 inside the loop to VI 3 outside the loop, the wiring breaks as I am then trying to connect an array (a 1 dimensional n member array of error outs) to a single error in pin. Trying to connect it to an array outside the loop is obviously the same. (I am making an assumption here - while the loop is running, I do not need to make certain of the sequencing of operations by putting a feedback node on VI 2 - that would mean something quite different in any case.).
    So, how do I pass the last value (in this case, the error out cluster from the last stage) to error in pin of VI 3 ?
    I have read that it might be possible using shift registers. I am quite new to LabVIEW. A somewhat detailed description of what I need to do would be nice.
    Thanks.

    Hello,
    There are basically two options:
    Handle the errors outside the for-loop
    Handle the errors inside the for-loop
    For you solution 1 is the easiest achievable, after the for loop use the 'Merge Errors' VI this will change the 1d-array into a cluster. The downside is that if an error occured later states of the loops don't know this
    Solution 2 uses the shift register you mentioned. To use this you have to right-click on the right hand-side tunnel of the error wire (where it leaves the for-loop) and select shift register, sequentially your mouse pointer changes into an downpointed arrow, click on the entry tunnel on the left of the for-loop. What happens is that an error in the for loop is remembered into the next iteration (use execution highlighting to watch these)
    Here is some code:
    A good start might be:
    The link to the LabVIEW Learning Center is here
    Ton
    Message Edited by TonP on 09-25-2006 08:01 AM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!
    Attachments:
    Example_BD.png ‏5 KB

  • How to exit from while loop

    Hi
        I want to exit from loop if error is encountered.
    THanks

    Hi Sonu,
    This is not a question related to the SDK. This is more of a coding question you should probably try something like StackOverflow or MSDN forums for that next time.
    Regarding your question it depends on the language you are using. If you are using c# you can use the keyword "break;" inside an if that checks for the error. In VB you can use "Exit For" or "Exit While".
    Best regards,
    Pedro Magueija

  • I have had my IPAD2 for quite a while but haven't activated my cellular data for about a year.  I am now trying to activate and when I go to cellular data, turn it on and try to tap view account i just get a message that says "connection to server lost".

    I have had my IPAD2 for quite a while but haven't activated my cellular data for about a year.  I am now trying to activate and when I go to cellular data, turn it on and try to tap view account i just get a message that says "connection to server lost".  I could swear the last time I used cellular data you would see the signal in the upper left corner and I only see "no service" there, I am in a location where I know I should have service.  Is there something I should do to my IPAD?  I tried resetting, I tried clearing cookies and history in Safari (after reading a post n these discussions).  I don't know what to do next. My IOS version is 6.1.3.  I did go into Network from the general tab and I see it says "SIM not provisioned".    HELP and Thank you in advance.

    Hello Theresa818,
    Thank you for using Apple Support Communities!
    It sounds like the cellular data will not activate for some reason on the iPad.
    I found this article that will help you resolve this issue here, named iPad (Wi-Fi + Cellular Models): Troubleshooting a cellular data connection, found here http://support.apple.com/kb/TS4249
    Check for a carrier settings update.
    Update your iPad.
    Toggle the Cellular Data setting off and on under Settings > Cellular Data.
    Restart your iPad.
    Tap Settings > General > About. Locate the Carrier entry and make sure that your carrier is correct.
    If your SIM card has SIM PIN enabled, try turning it off: Tap Settings > Cellular Data > SIM PIN.
    Make sure you're in an area of good coverage. If the cellular data connection works in another area, contact your carrier to report the original affected area.
    Reset network settings: Tap Settings > General > Reset > Reset Network Settings.
    Restore the iPad as new.
    If none of the above steps resolves the issue, make an appointment at an Apple Retail Store, contact your carrier, or contact AppleCare to troubleshoot further.
    I know you may have done one or two of the steps here, so you can skip those.
    Take care,
    Sterling

  • Writing thermocoup​le data to measuremen​t file from while loop

    Hello,
    I'm trying to write thermocouple data that has already been filtered into a measurement file.  My code works, but has many zero-time entries (probably from the filtering aspect), and some of the non-zero-time entries are even out of sequence (my output file is attached as well as my VI.)  I'd love any help regarding getting this to work!
    Thanks in advance,
    Megan
    Attachments:
    FrontPanel.jpg ‏211 KB
    ThermocoupleDAQ_IOrtiz.vi ‏67 KB
    test1.csv ‏63 KB

    Hi Megan,
    do you really need to sample thermocouple data at 1kHz? How fast does the temperature change - and how fast do thermocouples react on that temp change? (Which sample rate is recommended for your hardware?)
    Are your filter settings reasonable? "TC2 unfiltered" looks quite ok, while the "filtered" graph looks awful (atleast for a TC measurement)…
    And you should definitely fetch a constant number of samples from DAQmxRead. Usually you read 1/10th of the sample rate, so reading 100 samples for 1kHz sample rate!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Still running adobe cs2 on leopard. but now get unexpected quit msg. and wont launch. any chance that when i installed then uninstalled GENIEO yesterday something went wrong? how to fix? can i reinstall cs2 from original discs? by stephenftlaud

    still running adobe cs2 on leopard. but now get unexpected quit msg. and wont launch. any chance that when i installed then uninstalled GENIEO yesterday something went wrong? how to fix? can i reinstall cs2 from original discs? bystephenftlaud

    Hi,
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.
    Open Console in Applications>Utilities & see if there are any clues or repeating messages when trying to open CS2.

  • Still running adobe cs2 on leopard. but now get unexpected quit msg. and wont launch. any chance that when i installed then uninstalled GENIEO yesterday something went wrong? how to fix? can i reinstall cs2 from original discs?

    still running adobe cs2 on leopard. but now get unexpected quit msg. and wont launch. any chance that when i installed then uninstalled GENIEO yesterday something went wrong? how to fix? can i reinstall cs2 from original discs?

    Hi,
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.
    Open Console in Applications>Utilities & see if there are any clues or repeating messages when trying to open CS2.

  • HT2396 I quit iTunes while voice memos were importing from an ipod. Now iTunes won't import the memos. What do I do?

    Hello. I quit iTunes while voice memos were importing from an ipod. Now iTunes won't import the memos. What do I do?
    Thank you very much,
    Roger

    I have the same problem!! only thing is that i have the ipod touch 5th generation and a mac. I've been trying to find a way to get all my music to play cuz it will only play on itunes but when i try to play it on my ipod it'll just show a circle with a red square in the middle next to the songs i cant play.

  • I have never been able to migrate my ibooks library from iTunes to ibooks. Setup stops during creating ibooks library with the following error message:iBooks quit unexpectedly while creating your library.

    i have never been able to migrate my ibooks library from iTunes to ibooks. Setup stops during creating ibooks library with the following error message:iBooks quit unexpectedly while creating your library.

    Hello cpikehfx, 
    Welcome to the forums. 
    You can try one of the two options below to work around your issue. 
    Drag and drop the files from the desired music folder to the BlackBerry Music folder using the computer.
    Open the desired music folder on the computer
    Go into Computer or My Computer and open the BlackBerry network drive
    Open the Music folder
    Drag the desired music files from the computer music folder to the BlackBerry Music folder
    Try a different Windows profile.
    Go into the Control Panel and create a new user account
    Put some music files in a folder that is accessible by all profiles or transfer them to the BlackBerry device
    Log out of the current profile and log into the new profile
    Transfer music into iTunes or Windows Media Player
    Launch BlackBerry Link and go through the setup configuring the music source of your choice
    Click on the Computer name in the bottom left corner of Link
    Select Music on the left side
    Drag and drop the desired music files from the list to the BlackBerry name in the bottom left corner of Link
    If neither of these options work for you then you will want to contact your mobile service provider and ask that this issues be escalate to BlackBerry support for investigation. 
    Hope this helps. Have a good day. 
    -SR
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • I lost access to my email account quite a while ago.  I don't remember what password I had on it.  Even though it says everywhere else what my apple id is in the link that comes up you  can't change it

    I lost access to my email account quite a while ago.  I don't remember what the old pass word is.  My I cloud account under my email settings is correct.  My phone set up fine, but when I set my ipad up, it comes up with old email address.  In the email settings the icloud is correct.  But it will not let me change it in the part I need to.  It is greyed out.  This is actually for the iphone 5.

    If you're running iOS 6, go to Settings>iCloud, tap Delete Account, then sign back in with the new ID.  This deletes the account and your iCloud data from your device, but not from iCloud.  Provided you are signing back into the same account, your iCloud data will reappear on your device when you sign back in.
    To avoid losing photo stream photos, save them to your camera roll (if not already there) before deleting the account.  To do this, open your my photo stream album, tap Edit, tap the photos, tap Share, then tap Save to Camera Roll.

  • My Reminders app will not open. When I try to open it, quits and gives me an error message: "Reminders quit unexpectedly while using the CalDAV plug-in." My Reminders is synced with my iPod touch, and it is fine on that. How do I fix it?

    My Reminders app will not open. When I try to open it, it quits and gives me an error message: "Reminders quit unexpectedly while using the CalDAV plug-in." My Reminders is synced with my iPod touch, and it is fine on that. How do I fix it?
    Also, the Calendar is loading very very slowly, and sometimes it quits and gives me the same error message as above.

    The problem has been fixed with the most recent OS X software update.

  • I updated my iphone 3gs to ios 5.0.1 from ios 4 , now its saying that sim is not activated but the sim is still inside

    i updated my iphone 3gs to ios 5.0.1 from ios 4 , now its saying that sim is not activated but the sim is still inside
    PLSS HELP ME OUT !!!!

    Sounds like your phone was hacked to work with any network. Doing the update re-locked it to the original carrier. All you can do now is contact the carrier it is locked to to see if they have an unlocking policy. Note that if it's AT&T they do not offer unlocking. otherwise find an un-activated sim for the original carrier and you can use it as an iPod.

  • My iPhone5 prompts while setting up "This iPhone is not currently setup to work with carrier you are attempting to use.Please insert another SIM card from a supported carrier" or "Request that this iPhone be unlocked" How can I unlock my new iPhone5 ?

    My iPhone5 prompts while setting up "This iPhone is not currently setup to work with carrier you are attempting to use.Please insert another SIM card from a supported carrier" or "Request that this iPhone be unlocked" How can I unlock my new iPhone5 to function properly?

    That means that the phone is locked to a carrier other than the one you are trying to use.
    ONLY the carrier it is locked to can authorize unlocking it.
    Where exactly did you get this "new" iPhone 5?

  • When i try to open my flash player in system preferences i get the message that system preferences quit unexpectedly while using the flash player plugin.

    when i try to open my flashplayer in system preferences i get the message that system preferences quit unexpectedly while using the flashplayer plugin. thanks for any help

    The problem has been fixed with the most recent OS X software update.

Maybe you are looking for

  • How do I downgrade from NI-Daqmx 9.0 to 8.1?

    So my ni-daqmx drivers decided to die off and my programs would no longer run.  I could see my daq card (6024e) in the device manager for windows but in MAX there was nothing.  So I installed the ni-daqmx 9.0 drivers and all the software that comes w

  • GRIR manual clearing

    We configured GRIR account for automatic posting and it also not allow to post celring thru F-03. Now I want to clear balance in GL : 322001 with corresponding entry in GL : 322007 both are GRIR accounts to knock off open items. This is required beca

  • How to Disable Afaria client in Kapsel Logon plugin on Android?

    I want to disable Afaria client in Kapsel Logon plugin on android instead of iOS as follows: "The Afaria client is opening after calling sap.Logon.init(...), it can be disabled by modifying the file MAFLogonManagerOptions.plist. In Xcode this can be

  • Why will Firefox will not open when connecting via Remote Desktop?

    I have Firefox v. 6.0 or 7.0 installed on a Win 7 machine. It works fine locally, but when I connect to the machine via Remote Desktop it will not start.

  • Syncing pictures to iPad

    Ever since I upgraded to iOS 7.1 the pictures on my iPhone have not been syncing to my iPad.  Previously, they always did.  Any ideas why?