Resetting Switches and Buttons

Hello,
I have a vi which uses three initial switches to select an input. The switches activate once pressed and then stay pressed even when the vi is stopped. Also, I have a stop button wired into local variables so I cannot set as a latch as I would want to. If I set the initial three switches as latches then it is difficult for the user to see that a button has been pressed.
So the problem I have is that when I stop the vi with the stop button, this button stays pressed. I cannot set the stop button as a latch because it is not allowed in Labview with local variables. The next person who comes along will not see that the stop button is pressed and start the program only to find that the stop button is pressed and some sort of loop will happen.
Is there a way of when starting the vi that teh select buttons and stop button will default to the initial positions.
Nevica
Message Edited by nevica on 08-17-2009 04:06 AM
Message Edited by nevica on 08-17-2009 04:10 AM
Attachments:
BARA3.vi ‏699 KB

Jorn, You shouldn't initialize the stop button AFTER the program ends since you have not accounted for the case when the VI stops abruptly. Always initialize your variables at the start of your application.
nevica wrote:
I have decided to stop the vi with the vi stop button on the top bar instead of creating my own stop button.
DON'T DO THIS. Using the Abort Execution button when stopping a VI is like using a tree to stop your car. You need to stop the VI gracefully in the application itself.
Have a look at the attached application for an example of how to initialize your boolean buttons at the start of the application. I have implemented it using a State Machine. Since I am in a hurry, I did not account for error checks.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Attachments:
Test.vi ‏11 KB

Similar Messages

  • HT5012 I am having difficulty XMIT/REC text messages to family members using Android phones?  I have a 3GB data plan and all switches and buttons are set properly.  Any suggestions?

    I am having difficulty XMIT/REC text messages to family members using Android phones?  I have a 3GB data plan and all switches and buttons are set properly.  Any suggestions?

        Hello APVzW, we absolutely want the best path to resolution. My apologies for multiple attempts of replacing the device. We'd like to verify the order information and see if we can locate the tracking number. Please send a direct message with the order number so we can dive deeper. Here's steps to send a direct message: http://vz.to/1b8XnPy We look forward to hearing from you soon.
    WiltonA_VZW
    VZW Support
    Follow us on twitter @VZWSupport

  • Reset while loop with time and button?

    I am trying to get the while loop to stop and reset with a button or if time runs out. So when I switch the button it should stop the indicator; when I switch the button back on it should reset the time and start reading data again. Likewise, when time runs out it should stop the indicator and I want to flip the switch to start a new run and reset the time again. I have attached my vi for some clearification. If you have trouble understanding please let me know and Ill try and explain more. Thanks.
    Attachments:
    reseting_time_whlloop.vi ‏70 KB

    Relient wrote:
    I know my program is not efficient at all, Im inexperienced with labview and my company needs it soon so I'm trying to get it out quick. Attached is what I have so far. It is very messy!!  However it is nearly working how we want. The producer/ consumer design is needed because I am implementing this into my other program and each loop  has a different job than the other loops. This is just a mock version as I am trying to figure out the process.
    The stop buttons aren't needed but the button labeled boolean should reset the time and stop the run. When the run is stopped I want to re-enter a 'test time' and hit the button again for a new run. I just need to be able to reset the original time... Is the producer/consumer the best way to connect while loops because it seems messy?
    Again sorry if it is hard to follow and if its not the best way to go about it; I'm doing the best with what I know. Thanks for the help.
    I realize you may need this soon but you will regret it later (or the next person to touch this code) when you need to touch it again. It is overly comnplicated, messy and not very well designed. Doing a bad job quickly is never the right answer. A little extra time spent up front to do it right can save tons more time later on.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Sound has stopped. Have checked cover, Side Switch and volume buttons.  Anything else I can do?

    Sound has stopped.  Have checked cover, Side Switch and volume button.  Anything else I can do?

    Sounds for what? Music, apps, alerts? Or all?
    Make Sure iOS is updated to the latest version
    Reboot the device by pressing and holding down the home and sleep/wake buttons (power) at the same time until the apple logo appears on the screen, then let go.
    If that doesn't work then reset the device by going to settings/general/reset/reset all settings

  • I am having issues with MLBtv, when I switch on my ATV it no longer comes up as an option nor does vimeo or the iTunes store, i've tried resets etc and after those they appear. put the tav into sleep mode and mysteriously they don't re appear. Any ideas?

    I am having issues with MLBtv, when I switch on my ATV it no longer comes up as an option nor does vimeo or the iTunes store, i've tried resets etc and after those they appear. put the tav into sleep mode and mysteriously they don't re appear. Any ideas?

    I am having the same issue but mine is with Netflix.  And there are only 4 categories now on the main menue when there used to be 5.  Something went crazy with ATV software.

  • Home button stops registering clicks every once in a while (after about a week or two, until I reset it) and feels loose. If I take it into a retail store, will I be able to get a replacement?

    Every week or two, my home button stops registering clicks randomly. I double-click to activate the app switcher, and it only registers one click and sends me back to the home screen, or it misses them altogether. I've tried every method I could find on the internet, and nothing has stopped this problem.
    Will an Apple genius give me a replacement if I bring it into the Apple store, even if I can't replicate the issue to show them?

    Regardless of what anyone else reports, it's entirely up to Apple what they will do on an individual case basis.  If your phone is still under warranty or AppleCare, and they determine that the malfunctioning button us due to a defect rather than abuse, you would be entitled to a replacement with a refub phone.  If out of warranty or due to abuse, you could get an out of warranty replacement for $199 (US).

  • HT1430 Hang on apple logos even after pressing on/offf switch and home button. Restart hang again on logos

    anybody can help. despite numerous try by holding on/off switch and home button, after restart it still hang on the  "äpple logos'.

    Unable to Update or Restore
    http://support.apple.com/kb/HT1808

  • Deploying Custom Windows 7 Logon page and switch user button

    I am trying to use ZCM 11 Group Policy management to do two things. 1). Turn off the Windows 7 switch user feature that exists in the start menu and at the initial logon screen, and 2). Add a policy statement graphic to the initial logon screen in Windows 7.
    Feature 1 above is done by changing 'Hide entry points for 'Fast User Switching' in Computer Configuration=>Administrative Templates=>System=>Logon. But in order to get rid of the 'Switch User' button on the initial logon screen you also have to enable 'Interactive logon: Do not display last user name' in Computer Configuration=>Windows Settings=>Security Settings=>Local Policies=>Security Options and we only want this enabled for students. There are only two options for this setting - 'enabled' and 'disabled'.
    Feature 2, adding a graphic to the initial logon screen, is turned on by enabling 'Always use custom logon background' in Computer Configuration=>Administrative Templates=>System=>Logon and creating a custom bmp file placed in C:\Windows\System32\oobe\info\.
    Because the 'Interactive logon: Do not display last user name' setting only has enable/disable options (the default is disable) and because user associated settings overwrite workstation associations Im using two policies, one workstation and one user as inidcated below:
    User GPO :
    Enable 'Interactive logon: Do not display last user name' in Computer Configuration=>Windows Settings=>Security Settings=>Local Policies=>Security Options
    NOTE: This allows me to differentiate between student and staff users.
    Workstation GPO:
    Enable 'Hide entry points for 'Fast User Switching' in Computer Configuration=>Administrative Templates=>System=>Logon
    Enable 'Always use custom logon background' in Computer Configuration=>Administrative Templates=>System=>Logon
    Bundle:
    Deploys the bmp file to C:\Windows\System32\oobe\info\.
    Unfortunately, this setup only works as intended when the user is set up with a volatile DLU policy. When the user associated DLU is non-volatile it doesnt display the graphic and it does not remove the switch user button on the main logon screen. If I logon/logoff as a non-volatile user I get the generic Windows 7 logon page with the switch user button visible, when I logon/logoff as a volatile user I get the custom graphic logon page without the switch user button. Whats even stranger is that when I go into gpedit.msc and look at the settings after I log in, theyre correct for each type of user.
    Does anyone have any insight on why I might be seeing this problem?
    Ive tried to be complete as possible describing the problem but if didnt describe something correctly or someone needs additional info, please let me know.
    Thanks for any assistance.
    Dan

    Hi Dan,
    are you using Novell CLient?
    The Tiles on the Login Screen also depend on the Client configuration. If there is only Novell CLient active Windows cannot display other tiles or switch user.
    regards
    MArkus
    Originally Posted by dlietz
    I am trying to use ZCM 11 Group Policy management to do two things. 1). Turn off the Windows 7 switch user feature that exists in the start menu and at the initial logon screen, and 2). Add a policy statement graphic to the initial logon screen in Windows 7.
    Feature 1 above is done by changing 'Hide entry points for 'Fast User Switching' in Computer Configuration=>Administrative Templates=>System=>Logon. But in order to get rid of the 'Switch User' button on the initial logon screen you also have to enable 'Interactive logon: Do not display last user name' in Computer Configuration=>Windows Settings=>Security Settings=>Local Policies=>Security Options and we only want this enabled for students. There are only two options for this setting - 'enabled' and 'disabled'.
    Feature 2, adding a graphic to the initial logon screen, is turned on by enabling 'Always use custom logon background' in Computer Configuration=>Administrative Templates=>System=>Logon and creating a custom bmp file placed in C:\Windows\System32\oobe\info\.
    Because the 'Interactive logon: Do not display last user name' setting only has enable/disable options (the default is disable) and because user associated settings overwrite workstation associations Im using two policies, one workstation and one user as inidcated below:
    User GPO :
    Enable 'Interactive logon: Do not display last user name' in Computer Configuration=>Windows Settings=>Security Settings=>Local Policies=>Security Options
    NOTE: This allows me to differentiate between student and staff users.
    Workstation GPO:
    Enable 'Hide entry points for 'Fast User Switching' in Computer Configuration=>Administrative Templates=>System=>Logon
    Enable 'Always use custom logon background' in Computer Configuration=>Administrative Templates=>System=>Logon
    Bundle:
    Deploys the bmp file to C:\Windows\System32\oobe\info\.
    Unfortunately, this setup only works as intended when the user is set up with a volatile DLU policy. When the user associated DLU is non-volatile it doesnt display the graphic and it does not remove the switch user button on the main logon screen. If I logon/logoff as a non-volatile user I get the generic Windows 7 logon page with the switch user button visible, when I logon/logoff as a volatile user I get the custom graphic logon page without the switch user button. Whats even stranger is that when I go into gpedit.msc and look at the settings after I log in, theyre correct for each type of user.
    Does anyone have any insight on why I might be seeing this problem?
    Ive tried to be complete as possible describing the problem but if didnt describe something correctly or someone needs additional info, please let me know.
    Thanks for any assistance.
    Dan

  • The volume on my iPad 3 has gone. I've checked the mute button, tried restarting, resetting etc and nothing has changed. I can't hear the music, hear any sound from videos. Most times the video stops playing after a seconds. My iPad 3 is only 2 months ol.

    The volume on my iPad 3 has gone. I've checked the mute button, tried restarting, resetting etc and nothing has changed. I can't hear the music, hear any sound from videos. Most times the video stops playing after a seconds. My iPad 3 is only 2 months ol.

    If you have lost all sound and video is freezing on you, that ain't good. Your iPad is two months old so I would not hesitate to contact Apple at all. You are entitled to 90 days of phone support.
    http://www.apple.com/support/ipad/contact/.
    If you want to try a couple of things on your own, try quitting all apps and then reboot the iPad - not so much for the sound issue itself - but more as a general "start all over again" sort of approach. It might help with the video freezes.
    Go to the home screen first by tapping the home button. Double tap the home button and the task bar will appear with all of your recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar. Reboot the iPad.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    If you use headphones on occasion, you can try plugging and unplugging those as well and see if the sound comes back.
    You could even try restoring the iPad to factory settings and then restore from a backup, but unless there is something totally hosed on the iPad, that should not be necessary with a two month old device - of course assuming that you didn't drop the iPad or do something accidental that could be causing the problems.

  • My iPad 3 will not change the orientation to landscape mode. I have checked the orientation switch and turned it off for a reset neither of which fixes the problem.

    My iPad 3 will not change the orientation to landscape mode. I have checked the orientation switch and turned off for a reset. Neither fixes the problem. What can I do?

    Is it lock in the Control Center? (tap to enlarge)

  • My back/forward buttons don't work - have done 'reset toolbars and controls', but they still don't work

    When I downloaded the latest version I got a new screen with the orange Firefox tab at the top. That was fine, I could find what I wanted, but back/forward buttons didn't work. I checked the help section and went right through the suggestions down to 'reset toolbars and controls' - this did reset and I lost the orange box - that doesn't matter, but the back/forward buttons still don't work.

    Do you have more than one tab open? If you didn't go to another site in a single tab, then yes, the buttons will be greyed out. If you went somewhere in another tab, then those sites should be accessible by right clicking either button.

  • My Titan died!!! Does the GT80 Titan have a reset switch?

    Greetings,
    When I purchased my GT80 Titan notebook a few weeks ago, I knew that it didn't have a user-removable battery. But I was shocked that I couldn't find a reset switch when I needed one!
    After working late Friday night, I turned off my Titan. The next morning on Saturday I tried to turn it back on but nothing happened. Nothing lit up. The display was dark, the power button stayed dark, the keyboard was dark and the WiFi, Power and SSD/HD LEDs along the front were all dark.
    I had been using the AC adapter Friday and the battery was fully charged when I shut the Titan down that night. The AC adapter had been connected all night and was on and working now. The Titan had also been connected to my network via gigabit ethernet cable.
    Since it had rained Friday night, I wondered if there had been any electric surges or if static had built up inside the notebook. I doubted the AC adapter would be the source because it was plugged into a full sine-wave UPS and was well protected from any irregularities on the power lines. That left the ethernet cable which connected to a router in my cable modem as a possible source.
    There was just one other possibility (that I could think of): a defective lid switch. If the lid switch had failed, my Titan might "think" the lid is closed even when it is not. This could also prevent it from turning on. I hoped this wasn't the case because my Titan was not even 2 weeks old and had been handled like a baby. I expected more robust construction for a flagship product like this.
    Since it was Saturday, I couldn't get help from MSI. The problem was: I needed my Titan to finish a job that weekend. What to do?
    Normally, the first thing to do would be to unplug the notebook. Remove its battery. Press and hold the power button for 10-30 seconds to discharge any static present. Wait a few more minutes to allow any energized capacitors on the motherboard to "loose" their energy. Then re-install the battery, hook up the AC and try to start it again. This usually solves the static problem.
    But that's a non-starter with the Titan because you can't remove the battery. So I hunted for a reset switch. You know the kind: a tiny hole through which you insert an unbent paperclip to press a tiny button which temporarily disconnects the battery from the motherboard. But I couldn't find one. The only paperclip hole I could find was the one in the blu-ray drive (to mechanically eject the tray).
    I thought: "Maybe a key combination will do a reset." So I tried pressing and holding the Power, GPU and Fan buttons in various combinations but they didn't seem to do anything. Finally, out of ideas, I did what I didn't want to do and started to open the case of my Titan.
    I removed the bottom panel (12 screws) and top panel and carefully examined both sides of the motherboard as best I could, looking for a reset switch---but never found one.
    Next, I carefully examined the battery cables (left front corner when viewed from the bottom). Normally, you have to remove the left fan and GPU heat diffuser in order to access the battery cable connector on the motherboard. This would be a major job that I wasn't willing to undertake. And this is the only way to disconnect the battery as far as I can tell.
    But it looked like there was enough room to disconnect the battery cable without removing the fan or heat diffuser. Sure enough, with care and a thin flat-blade screwdriver, I was able to push the connecter away from the motherboard, removing it. Mission accomplished---battery disconnected!!!
    Next, I pressed and held the power button for 60 seconds (with all the trouble this took---I wanted to be sure I discharged the static). Then I let my Titan sit for over 40 minutes with the battery disconnected so there would be plenty of time for an residual energy to dissipate from the capacitors on the motherboard.
    At last, it was time for reassembly. It was trickier to reconnect the battery connecter than to disconnect it. You have to be very careful not to push on any wires---just push on the plastic part of the connector with the screwdriver. Once you get the connector aligned properly with its socket on the motherboard, it will slide in easily.
    Then I replaced the bottom and top covers and tried to turn on my Titan. It still wouldn't start. Next, I connected the AC adapter and, Voila!, the power button worked and it started. As soon as Windows had booted up, I checked the battery's power level. It was at 98%---almost a full charge just as I had expected.
    I was very glad to resurrect my Titan on Saturday when MSI tech support wasn't available. And, any time rain is in the forecast, I'll be careful to disconnect my ethernet cable after I've turned off my Titan. But I was very angry at not finding a reset switch of any kind. Surely this notebook has one and I just didn't see it. Who would build a computer device of any kind with a non-removable battery and fail to provide a reset switch. It's unthinkable to me.
    So I have to think that there must be some easier way to "reset" a GT80 Titan if it ever visits static twilight land again. If someone reading this topic can contribute some information, it would be greatly appreciated.
    WARNING: What I did to my Titan (taking it apart and disconnecting the battery) is NOT recommended for novice users. This requires great care because many of its components are highly susceptible to static damage. You need to ground yourself to the chassis while you work on it so that you have the same potential as it does. If this really is the only way to "reset" a GT80 Titan, then you'll need to take it to someone qualified to do it. Don't turn your expensive Titan into a brick!!!
    Kind regards, David

    Quote from: chc on 18-May-15, 12:07:19
    If you meant EC reset, you just need to press power button for about 12 seconds.
    Thanks chc,
    Every bit of new information is helpful toward documenting the "undocumented" features of the Titan. But the EC reset is not the same thing that I'm talking about.
    Most folks seem to be missing the subject. There are a variety of things that can happen to a notebook computer that make it impossible to turn off or restart (in the Windows "restart" sense). The most common problem is a software problem. When a turned-on notebook "hangs" or "freezes", pressing and holding the power button for several seconds will force a shut-down. Afterward, you can start the computer again and it should boot up normally---unless there is a hardware problem.
    But this is not what I'm talking about.
    There are two battery systems in most notebooks. There is a small non-rechargeable battery on the motherboard that provides enough power to maintain the clock and system BIOS settings. And there is a large rechargeable battery to power the rest of the computer.
    When the BIOS is replaced with a newer version, the new BIOS will often be out-of-sync with the embedded controller (EC). The embedded controller affects lots of things like the cooling fans, some keyboard functions, WiFi, bluetooth, GPUs, etc. In some extreme cases, a notebook computer with a new BIOS may not turn on until the EC is reset. MSI recommends that the EC be reset any time the BIOS is replaced---it should be done immediately afterward.
    How do you reset the EC? Remove the notebook's main battery. Obviously, this won't work for the Titan and other notebooks that have non-removable batteries. In this case, some notebook manufacturers provide an "EC reset" switch for some models---but I don't know if these switches disconnect the main battery completely---they may only remove power to the EC circuit. If the reset does truly disconnect the main battery from all circuits, then it is sometimes labelled a "battery reset" switch (this is the name Toshiba uses).
    Evidently the Titan takes a different approach---according to chc, holding down the Titan's power button for about 12 seconds will reset the EC (I'm assuming this only works while the Titan is turned off---otherwise it would simply trigger a forced-shutdown as described above).
    But this is not what I'm talking about, either. (Besides, I tried holding down the power button for over a minute and the computer still would not start up.)
    The problem I'm talking about is a build-up of static electricity inside the computer. This is the same static electricity that shocks you when you touch your finger to another object after sliding your shoes across a carpeted floor. You see, notebook computers operate without a connection to electrical ground---so they can pick up a static charge more easily than "grounded" computing and electronic devices. The static charge may not be large enough to permanently harm the notebook but it may be large enough to interfere with its operation.
    When can this happen? During a thunderstorm or any time the notebook is located in an environment where a lot of static electricity is present. It also happens in space because there is no "ground". As I understand it, it is a periodic source of trouble aboard the international space station.
    To correct the problem, you usually need to do two things: (1) Remove the main power sources from the notebook. This includes unplugging the AC adapter and removing the main battery. (2) Press and hold the power button for 10-30 seconds to give the static electricity a path to the power control circuit where it can (hopefully) be safely discharged.
    The problem with the Titan and other MSI computers with non-removable batteries, is there is no convenient way to remove the main battery. Therefore, if static electricity builds up, there is no convenient way to discharge it.
    Now I can't be certain that the reason my Titan wouldn't turn on two weeks ago was due to static electricity. It was a weekend and my troubleshooting tools were limited. Perhaps the EC decided on its own to go crazy. Perhaps something in the power supply is intermittent and failed for the first time---and I'll have to wait for it to fail again before it can be identified. But the conditions for a static electrical problem were present. There had been a rainstorm that night after the Titan has been shut off. The Titan was connected via ethernet cable to an incoming cable modem and line from Comcast. And the symptoms pointed to a static electrical problem.
    Until I disconnected the battery's power cable from the Titan's motherboard, my Titan was dead as a doorknob. It gave absolutely no sign of life when trying to turn it on. It was as if the power switch no longer worked.
    So, to my mind, what the Titan needs (as well as all MSI notebooks with non-removeable batteries) is an independent reset switch that will allow the user to temporarily disconnect the main battery for as long as the user presses the switch. If an "EC reset" switch will do this, fine. But I don't think it will work if the power switch serves double-duty as an EC reset because the user needs to disconnect the battery at the same time he/she is holding down the power button to dissipate static electricity. I believe the Titan's power switch cannot do both at the same time because I tried it multiple times and it never helped my Titan.
    Perhaps there is some other method to dissipate a static electrical build-up. If there is and it is easier to implement---then I hope it is provided in future products like the Titan.
    Kind regards, David

  • Menu and Buttons not showing up!?!

    OK. I was trying to burn a iDVD project on my dual G5 desktop w/iDVD5. I would get "there's an error while rendering". After fiddling with it for a day and getting no where, I switched to my laptop (G4/1.25ghz/10.4.8) with iDVD6.0.3. I started to re-assemble the project and the Themes button appears with the themes, the Media button appears with the media, but both the Menu and Buttons buttons show up with nothing but a empty white area! I need to reposition some buttons, but I can't.
    Please help.

    This frequently helps solve some problems. Quit iDVD. Search for the file named com.apple.iDVD.plist and trash it. (A new one will be created next launch of iDVD.) Or look in: User/Library/Preferences. This may solve project loading errors too. Restart and use Disk Utility to Repair Permissions.
    You'll need to reset some Preferences.

  • My iPod touch has no volume I can't hear anything on it. On pandora you can't hear anything. I've reset it and nothing happened. Do I have to upload it to iOS 6.1.5. Will it do better. Help ASAP

    My iPod touch has no volume I can't hear anything on it. On pandora you can't hear anything. I've reset it and nothing happened. Do I have to upload it to iOS 6.1.5. Will it do better. I dont know what happend to it help ASAP

    Is there no sound period? I mean nothing through the headphones or the speaker? If the sound works only through the speaker or just through the headphones the switch inside the headphone port maybe stuck open. Try plugging and unplugging 10 to 12 times to unstick it. If no sound at all, go into Settings>Music>Volume Limit. See if it is turned on, if so check that the limit is not turned down to zero. If still not the problem try a soft reset, press and hold the power and home buttons together until the Apple logo appears, about 15 seconds, then release. if still no joy go into Settings>General>Reset>Reset All Settings. If still no joy, connect to iTunes via the cable and Restore to backup. If that doesn't work Restore to new. Just remember to save all your stuff that can be wiped before you restore, pictures, music, contacts etc. If none of this works, then maybe a hardware issue contact Apple Genius Bar or store and have your iPod evaluated. Hope this helps, Good luck.

  • Iphone 5 (6.1.3 and 6.1.4) locked after talk screen and button

    Have you Iphone 5 ? if you have iphone 5 (6.1.3. or 6.1.4). you can try.first close the screen (locked) after open the camera, call to the iphone5 other phone. switch on after switch off. you'll see. Screen and button loced.not available in any way. you won't use screen and button. you can open iphone5 only with power button. you'll push the power button and select don't close phone. you'll see every thing normal again. I thing so, iphone5 should continue take photo. What do you think this problem.

    I tried that guide but unfortunatly it didn't work =\
    @JWPNJ
    I ended up going into my local apple store and they managed to reset it with their software - it'll save you mucking around for ages if you tried everything like I did. Good luck.

Maybe you are looking for