How to make stop and start in one button

Hello All
My Question is how to make button that when I prees it first time work as stop button and when I press it second time work as start button, I hope if I found my answer soon.
thank u all
Best Regards

It's probably not worth to add all these sequences, local variables, and parallel loops. Here's a somewhat simpler version, showing two possibilities: 0:using events, 1: not using events. Pick one!
There are many other possibilities. It really depends what else there is.
Message Edited by altenbach on 10-15-2007 06:59 AM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
StartStopMOD.vi ‏19 KB

Similar Messages

  • How to Link Text and Image as One Button?

    I can easily convert an image or text to a button, but how do I link them both as one button so when you mouseover either one, they both turn a color and when you click on one, they both turn a color before jumping to the scene?

    Include the image and the Text in the Button's Layer Set. Design the Sub-picture Highlight to affect both.
    Just remember that a Button is defined by a rectangle, that encompasses all elements in the Button, and that Buttons (no part) may overlap any other Button.
    Good luck,
    Hunt

  • How do I stop and start a Swing Timer?

    I have created a Swing timer;
            new Timer(250, Task).start();but can't figure out how to use the .stop() and .restart() methods?
    How do I code this?
    TIA

    I found the answer;
      SimKitsControlTimer = new Timer(250, SimKitsControlTask);
      SimKitsControlTimer.start();Not as prevously written.
    I was trying to create an object with the .start() method at the end of the line. Doh!

  • How to make Visible and Invisible using a Button?

    hi!... I've a Text3D using Oriented3D object and I would like to know how to make it visible and invisible by clicking a button.
    I know there is a function, setVisible() in RenderingAttributes, which can be set by the object's Appearance.
    Since I want to use a button to change the object's appearance, I need to change it in the button's actionPerformed function, but it has thrown an exception:
    "Shape3D: no capability to set appearance".
    I'd tried using those setCapability flags... but still nothing...
    Could someone help me please?...
    Thanks

    When you create Shape3D, setAppearance to it and
    setCapability(ALLOW_APPEARANCE_READ).
    For the Appearance, you should setCapability(
    ALLOW_RENDERING_ATTRIBUTES_READ).
    For the RenderingAttributes, you should setCapability(
    ALLOW_VISIBLE_WRITE).
    So in the button event handler,
    shape.getAppearance().getRenderingAttributes().setVisible(true/false).
    Now you can control the visiblity of Text3D

  • Listener ( lsnrctl ) - stop and start just one instance

    Hey all. I hava a Oracle 9.2 installed over a Linux Red Hat 4.0 64 bits server.
    Some Virtual Machines will connect in some databases installed in my Oracle server. My listener has one instance for each database like this:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = VM01)
    (ORACLE_HOME = /opt/oracle/product/9.2.0)
    (SID_NAME = VM01)
    (SID_DESC =
    (GLOBAL_DBNAME = VM02)
    (ORACLE_HOME = /opt/oracle/product/9.2.0)
    (SID_NAME = VM02)
    (SID_DESC =
    (GLOBAL_DBNAME = VM03)
    (ORACLE_HOME = /opt/oracle/product/9.2.0)
    (SID_NAME = VM03)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = VM01))
    (ADDRESS = (PROTOCOL = IPC)(KEY = VM02))
    (ADDRESS = (PROTOCOL = IPC)(KEY = VM03))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = lab2)(PORT = 1521))
    And my tnsnames:
    VM03 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = lab2)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = VM03)
    VM02 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = lab2)(PORT = 1521))
    (CONNECT_DATA =
    (SID = VM02)
    VM01 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = lab2)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = VM01)
    I need to start and stop just one instance (VM01 or VM02 or VM03). I really can't stop all instances when I need to stop just one. And more if i have to create another instance i will have to stop the listener... and i can't because other people are using your instance...
    Do you know how to help me?
    Thanksssssss

    You still use listener.ora, just create 3 listeners, one for each instance:
    listener.ora:
    LISTENER_VM01 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(HOST = lab2)(KEY = VM01))
    (ADDRESS = (PROTOCOL = TCP)(HOST = lab2)(PORT = 1521))
    SID_LIST_LISTENER_VM01 =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = VM01)
    (ORACLE_HOME = /opt/oracle/product/9.2.0)
    (SID_NAME = VM01)
    LISTENER_VM02 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(HOST = lab2)(KEY = VM02))
    (ADDRESS = (PROTOCOL = TCP)(HOST = lab2)(PORT = 1522))
    SID_LIST_LISTENER_VM02 =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = VM02)
    (ORACLE_HOME = /opt/oracle/product/9.2.0)
    (SID_NAME = VM02)
    LISTENER_VM03 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(HOST = lab2)(KEY = VM03))
    (ADDRESS = (PROTOCOL = TCP)(HOST = lab2)(PORT = 1523))
    SID_LIST_LISTENER_VM03 =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = VM03)
    (ORACLE_HOME = /opt/oracle/product/9.2.0)
    (SID_NAME = VM03)
    Then, when you need to stop the connections to only one instance, you stop the corresponding listener:
    lsnrctl stop listener_vm02
    lsnrctl start listener_vm02
    For each instance you need to configure the parameter local_listener:
    sys@VM01> alter system set local_listener=listener_vm01;
    sys@VM02> alter system set local_listener=listener_vm02;
    sys@VM03> alter system set local_listener=listener_vm03;
    And register in tnsnames.ora:
    listener_vm01=
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=lab2)(PORT=1521)))
    listener_vm02=
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=lab2)(PORT=1522)))
    listener_vm03=
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=lab2)(PORT=1523)))
    It's a recommended configuration for the flexibility it provides,it requires a different port for each listener, but you don't need to edit the listener.ora file each time you need to stop the connectivity to only one instance.

  • Newbie: Apex & EM how to after stop and start?

    Hi I got an Amazon AMI and once I start and stop the instance or rebundle my AMI
    The IP changes and Apex and EM does not work.
    Is there a documentation on hnow to reconfigure them?

    It's probably not worth to add all these sequences, local variables, and parallel loops. Here's a somewhat simpler version, showing two possibilities: 0:using events, 1: not using events. Pick one!
    There are many other possibilities. It really depends what else there is.
    Message Edited by altenbach on 10-15-2007 06:59 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    StartStopMOD.vi ‏19 KB

  • How do I stop and start J2EE engine manually on WEB AS

    I have installed WEB AS ABAP + JAVA. For some reason J2EE engine is not up after the Java stack installation. How to I start and stop J2EE engine. The visual Admin is not connecting either saying connection lost.
    I am running on Linux
    thanks

    Hi Dhandu,
    Please have a look in the <a href="http://help.sap.com/saphelp_nw04/helpdata/en/6e/dd0041aafdf123e10000000a155106/frameset.htm">documentation</a>.
    Hope that helps!
    Vladimir

  • How may I automatically stop and start Mail services at a set time please

    Hi folks. I was wondering if anyone could tell me how to automatically stop and start Mail services (or any other services) at a set time please in Leopard Server? Is there a script someone has created which might help?
    Cheers, David ( a realy newbie when it comes to administering OS X server)

    launchd works through a series of XML documents that define tasks to run, either at launch, on a time schedule, in response to network events, etc.
    So you'll need to create two .plists - one to start the mail server and one to stop it. They should be saved in /Library/LaunchDaemons. I'd suggest something like:
    /Library/LaunchDaemons/local.postfix.stop.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple
    .com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
      <key>Label</key>
      <string>local.postfix.stop</string>
      <key>ProgramArguments</key>
      <array>
        <string>/usr/sbin/serveradmin</string>
        <string>stop</string>
        <string>mail</string>
      </array>
      <key>StartCalendarInterval</key>
      <dict>
        <key>Hour</key>
        <integer>1</integer>
        <key>Minute</key>
        <integer>00</integer>
      </dict>
    </dict>
    </plist>
    and /Library/LaunchDaemons/local.postfix.start.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple
    .com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
      <key>Label</key>
      <string>local.postfix.start</string>
      <key>ProgramArguments</key>
      <array>
        <string>/usr/sbin/serveradmin</string>
        <string>start</string>
        <string>mail</string>
      </array>
      <key>StartCalendarInterval</key>
      <dict>
        <key>Hour</key>
        <integer>4</integer>
        <key>Minute</key>
        <integer>00</integer>
      </dict>
    </dict>
    </plist>
    You'll need to either use launchctl load /Library/LaunchDaemons/local.postfix.stop (or start) to load the tasks, or reboot your server.
    I'm curious, though, as to why you want to do this. Mail is typically one of the services that people want to run 24/7 so they don't miss out on any emails (even though SMTP can tolerate this). Why do you want to shut yours down?

  • Stop and start at same point?

    I want to be able to stop and start at one point in a song.
    As it is, when I press "play" from, for example, bar 3, then I hit stop at bar 6. I want to start again at bar 3, NOT bar 6. But for some reason Logic continues - like "scrolling" in ProTools.
    I do not want to use my mouse to click back bar 3.
    How do I stop / start at the same measure ?

    glankrudolph wrote:
    Here is what I need:
    Say I'm starting at measure 20. I place the playhead at measure 20. I press play and it plays for a few measures. I press stop, maybe at measure 24. Now, when I press play again, I want it to start at measure 20, like in ProTools.
    hi glank .. you need to get into the use of Markers. This will easily solve your issue:
    1 - Look up the Key Command for Create Marker at Playhead ( ie without Rounding)
    2 - Look up KC for "Go to Next Marker" & "Go to Previous Marker".
    3 - Place Playhead at measure 20. Press KC for "Create Marker without Rounding"
    4 - Play for a few measures and stop whenever you want to.
    5 - Now press the KC for "Go to previous marker" - with one stroke you are back at measure 20
    6 - Press Play
    If this is not quick and easy enough for you, I will eat my hat
    best
    m s

  • IGS Stop and Start

    Hi Experts,
    How can i stop and start  IGS on RedHAT Linux servers.
    -cheers
    Venkat

    Hi my friend
    IGS variant is defined in start profile, so its processes is started or stopped along with the whole instance.
    Checklist:
    1. make sure IGS executable files exist in your kernel directory;
    2. make sure directory igs exists underneath /usr/sap/<SID>/DVEBMGSxx (or JCxx)
    3. make sure start parameter exists in start profile correctly
    Note 514841 - Troubleshooting when a problem occurs with the IGS
    Note 824281 - igswd does not start due to an incorrect start profile entry
    Regards,

  • How to stop and start RAC Database

    Hi,
    Can anybody tell me How to stop and start RAC Database.
    Pls give me the exact procedure for OS - IBM Aix 5.3.
    Rajkumar

    Burleson,
    It so appears, as from the numerous times you have been published incorrect, untested information, and non-working scripts, you are not an Oracle guru,
    but only a self-proclaimed one.
    It also appears nothing on your 'CV' can be easily verified.
    You state you are an 'adjunct professor emeritus', however anyone who was kicked out after a few months can call himself a 'professor emeritus'.
    Looking at the enormous amount insults and slander you have posted directed to me and others on this forum, showing a highly unprofessional attitude toward your peers,violating this forums rules of conduct, don't you think you deserved to be banned completely?
    After all, you are always promoting your own publications here, which is also in violation of the rules for this forum.
    What makes you think that "Sybrand" is a man's name? How many male Sybrand's do you know? I don't know any, not one.
    That's your problem. I'm as much as male, as you are a fat, ugly, self-proclaimed Oracle-guru, which you are clearly not, you are only a fraud, and this glares from all of your publications.,
    Sybrand Bakker
    Senior Oracle DBA

  • How to stop and Start ASM in 11gR2

    Hi,
    Any one please let me know the complete process of how to stop and start the ASM instance in
    11.2.0.1 oracle.
    Thanks.
    Ali

    Hi;
    If you need to close ASM than you need to also close database
    You need to close db:
    srvctl stop database -d instance_name
    or
    set ORACLE_HOME and ORACLE_SID
    sqlplus "/as sysdba"
    shutdown immediate;
    srvctl stop LISTENER
    srvctl stop ASM -f
    or see:
    Stop asm instance in standalone database
    Re: Stop asm instance in standalone database
    Regard
    Helios

  • How to stop and start MDBs to listen for JMS messages

    Hello! This might be more of an architecture question rather than a technical questing, but I post it here, in the lack of a better place...
    For several years I have been using Webster and Webster MQ to send messages back and forth to clients. The architecture for the middleware platform has been designed around the functionality of ListenerPorts. Listenerports is a Webster functionality that let you "stop" and start to listen to JMS messages for a given MDB either by admin console, or by JMX.
    The arhitecture we used was something like this :
    1.Client sends a persistent message to a queue. (order)
    2. An MDB pics up the order message, calls a SessionBean that "fronts" the IIOP back end system.
    This is quite "out of the box" architecture, but we used the Listenerports to solve a stability problem for our back end system.
    The backEnd system was quite unstable, so the EJB threw an exception (typically because of timeout or connection refused) back to the MDB.
    The Listenerport was "defined" to handle 3 errors before stopping, so the MDB resent the message twice before the listenerport automatically stopped. The nice thing about this feature was that the client could continue to send orders, and was not bothered when the back end system was down.
    When the backEnd system was up and running, we could start the listenerport and it was all back to normal state. We even had a start script that checked the state of the listenerport every 30 minute, and started it automatically if it was stopped, making the admin task of starting the MDB unnecessary..
    Now.. Why am I telling this story..
    I would like to know how this could be done using "clean" J2EE technologies..That is..Not using any technology that is not portable..
    I`m playing with glassfish at home, and it struck me that there is nothing in the J2EE spec that defines the functionality described above ? Am i missing something ?
    I Do not want to stop My application because the back end system is down? That is the only way (i know of) that i can "stop" to listen for messages..
    I can put all the messages on an error queue when the backbend system is down, but that would lead to more code just to handle the error messages. Maybe the easiest way to solve this is to "move" (programmatically) all messages from the error queue over to the "standard" queue every XX minute, but somehow that sounds "wrong"
    Can anyone give me some advice to how this problem situation should be solved ? I`m interested in the solution both from an architectural perspective and from a more technical perspective..
    Best regards
    Hans-Jacob Melby

    Breakpoints, whether normal or conditional, are just meant for debugging of your code.  I had the sense from your question that the pausing you want to do is a part of normal operation of your code.  I would NOT recommend using a breakpoint for that situation.  It would bring up the block diagram showing the breakpoint when it occurs.  A user besides the programmer would not know what to do in that case.
     Yes, both the inner and outer loops would have shift registers.
    Putting a case structure with a small while loop inside the "Pausing Case" is doable.  It just depends on what you are doing or waiting for while the program operation is "paused".

  • How to stop and start process SAPOSCOL

    Hi, i have a problem with write access for saposcol program. I see that the file saposcol is read the file but its unable to wirte the same.
    Collector           : running
    Start time coll.    : Mon May 21 17:49:49 2007
    Current Time        : Mon Jun 11 13:27:51 2007
    Last write access   : Tue May 29 06:23:46 2007
    Last Read  Access   : Mon Jun 11 13:26:24 2007
    When i try to stop the saposcol i get the following error:
    igzadm> saposcol -k
    Setting Stop Flag :
    13:24:44 11.06.2007   LOG: ==== Stop Flag was set by saposcol (kill_collector()).
    13:24:44 11.06.2007   LOG: ====  The collection process will stop as soon as possible
    can't kill process 409656.
    kill: No such process
    ERROR:No reaction from collecting process 409656.
          Please kill collecting process.exes.
    Am doing this command through SID<ADM> from change directory /run.
    Please help me how to check the permission of the SIDADM to stop the services.
    I also try the same from root user but now use..
    Please guide me how to stop and start the SAPOSCOL in AIX 5.3.
    Advance Thanks.
    Suri Tyson

    Hi, i have the following permission for saposcol
    imserv:/ # ps -ef | grep saposcol | more
        root  118842  528422   0 14:02:17  pts/2  0:00 grep saposcol
    I have changed the ownership as you mentioned....
    imserv:/usr/sap/IGZ/SYS/exe/run # ./saproot.sh igz
    Preparing /usr/sap/IGZ/SYS/exe/run/brbackup ...
    Preparing /usr/sap/IGZ/SYS/exe/run/brarchive ...
    Preparing /usr/sap/IGZ/SYS/exe/run/brconnect ...
    Preparing /usr/sap/IGZ/SYS/exe/run/brtools ...
    Preparing saposcol ...
    Preparing icmbnd ...
    done
    However, i still get the error as:
    igzadm> saposcol -k
    Setting Stop Flag :
    14:12:13 11.06.2007   LOG: ==== Stop Flag was set by saposcol (kill_collector()).
    14:12:13 11.06.2007   LOG: ====  The collection process will stop as soon as possible
    can't kill process 409656.
    kill: No such process
    ERROR:No reaction from collecting process 409656.
          Please kill collecting process.
    Now the permission are set in my system as:
    igzadm> ps -ef |grep saposcol|more
      igzadm  729196  983058   0 14:13:25  pts/2  0:00 grep saposcol

  • How to stop and start only the process of Oracle Application Express?

    I'd like to know how to stop the process of Oracle Application Express on my server installed oracle express package.
    After installed Oracle Express edition, not only oracle database server processes but also Oracle Application Express, such as http server, is started automatically...
    I hope to stop and start Application Express on demand but is this feature enabled?

    Oracle Apex is an API, if that helps you understand / visualize. You do not start Apex process nor stop it.
    When an Apex session starts it starts calling the API.
    You can however start / stop the listener. It may be OHS, ApexListener and the J2EE container running it, OC4J or any other "server" that you are using.
    The built-in EPG is something like an API again, you cannot start / stop it but you can disable/enable it with DBMS_XDB.SETHTTPPORT API.
    Regards,

Maybe you are looking for

  • Need help with a calculated column - is there any way to reference a value in the current row?

    Hey guys, I'm a bit of a DAX newbie, and I'm running into a block. I'm creating a Power View report about IT tickets. We are going to be creating a cube to automate the data soon, I'm currently working with a flat Excel Data Table of data to demonstr

  • How do I change my itunes account from one computer to my new one?

    how do I change my itunes account from one computer to my new one?

  • Silly HTML wordwrapping question...

    Sorry if the question seems dumb, but is there a way to insert a space in a block of text that won't break up a word during wordwrapping? Example : « This is a test » I like the spaces between the quotation marks and the quoted text. But I don't want

  • Color in Vim

    I've been writing some PHP files on my arch box using vim and I realized there was no color syntax highlighting. After googling, searching the forum, and fiddling with some configuration files, I still haven't seen any color in my vim. When I enable

  • Horizontal Menu Widget Bug - Font Defaults

    I am having a maddening problem with the fonts in the Horizontal Menu Widget. It is getting to the point that I am thinking of just creating buttons in Photoshop and be done with it. The main issue is font defaults - especially in the active state. I