Double Instance of one Button

Hi guys I have an event structure which handles two cases, one of them is to write some external hardware and the other is to read from it.
There are 2 methods of reading and writing to this part through its Volatile and Non Volatile Memory.
To decide between these two functions I have placed a control toggle switch outside of the event structure, each event "read" and "write" need instant access to this control.
When I place the switch outside the event struc its is of course not read immediately in the event but delayed a bit because of the connector at the border of the struc.
When I place the button inside in the event struc it is read everytime instantly and the appropriate Volatile or Non Volatile write/ read takes place instead of having to execute the event twice to update the value.
I would like both cases to have instant access to this toggle switch as if it would be placed inside in each event .
Is it possible to create 2 instances of a front panel control on the block diagram ?
Solved!
Go to Solution.
Attachments:
screb.GIF ‏12 KB

eoin87 wrote:
Is it possible to create 2 instances of a front panel control on the block diagram ?
Yes. Use a local variable of the front panel control in the other event case. Right-click on the control and select Create -> Local Variable.
One of the few times that a local variable has merit. 

Similar Messages

  • Dynamically adding multiple instances of a movie clip to the stage with one button

    hello,
    I was wondering if there was a way to add several instances
    of the same movie clip to the stage dynamically utilizing one
    button.
    I can do one with the following code placed on the button...
    on (release) {
    attachMovie ("filledCircle", "filled1", 5);
    filled1._x = 370;
    filled1._y = 225;
    But I want the user to be able to hit the button again and
    get yet another instance of "filledCircle" on the stage.
    I also want the user to be able to drag these instances
    around...
    Any help would be appreciated...
    Thanks,
    Muhl

    Muhl,
    > I was wondering if there was a way to add several
    > instances of the same movie clip to the stage
    > dynamically utilizing one button.
    Sure thing.
    > I can do one with the following code placed on the
    > button...
    >
    > on (release) {
    > attachMovie ("filledCircle", "filled1", 5);
    > filled1._x = 370;
    > filled1._y = 225;
    > }
    Gotcha.
    > But I want the user to be able to hit the button again
    > and get yet another instance of "filledCircle" on the
    > stage.
    You're in luck, because this isn't very hard to do. The main
    thing to
    keep in mind is that each instance must have A) its own
    unique instance name
    and B) its own unique depth. In your example, the instance
    name is filled1
    and the depth is 5. The next clip's instance name should be
    filled2 at a
    depth of 6. Then filled3, depth 7, and so on. You can use a
    single
    variable to handle the incrementation.
    // code in a frame
    var counter:Number = 1;
    // code on your button
    on (release) {
    attachMovie ("filledCircle", "filled" + counter, counter +
    4);
    With me so far? The variable counter contains the numeric
    value 1. The
    second parameter of attachMovie() is provided with a
    concatenation of
    "filled" + 1, which makes "filled1". The third parameter is
    provided with
    the sum of counter plus 4, which makes 5. Obviously, we need
    a bit more.
    The button must, in addition, increment the value of counter.
    The ++
    operator handles this perfectly.
    on (release) {
    attachMovie ("filledCircle", "filled" + counter, counter +
    4);
    counter++;
    Now, it seems you also want to position the attached movie
    clip to (370,
    225). Are they call supposed to go to the same place? If so,
    you may use a
    second variable to hold a reference to the newly attached
    clip. Look up
    MovieClip.attachMovie(), and you'll see that the method
    returns the exact
    reference you need.
    // code in a frame
    var counter:Number = 1;
    var mc:MovieClip;
    // code on your button
    on (release) {
    mc = attachMovie ("filledCircle", "filled" + counter,
    counter + 4);
    counter++;
    mc._x = 370;
    mc._y = 225;
    Make sense?
    > I also want the user to be able to drag these instances
    > around...
    Then you need to handle a few events. You're dealing with
    movie clips
    here, so your best bet is to study up on the MovieClip class,
    which defines
    all movie clips. (Note, also, that the TextField class
    defines all input
    and dynamic text fields; the Sound class defines all sounds,
    etc. This is a
    very handy arrangement of the ActionScript 2.0 Language
    Reference.)
    // code in a frame
    var counter:Number = 1;
    var mc:MovieClip;
    // code on your button
    on (release) {
    mc = attachMovie ("filledCircle", "filled" + counter,
    counter + 4);
    counter++;
    mc._x = 370;
    mc._y = 225;
    mc.onPress = function() {
    this.startDrag();
    mc.onRelease = function() {
    this.stopDrag();
    Easy as that. You're simply assigning a function literal to
    the event
    of each new MovieClip instance as you create it. Take a look
    and you'll see
    each of these class members available to you -- that is, to
    all movie clips.
    MovieClip.onPress, MovieClip.startDrag(), MovieClip._x, etc.
    Wherever it shows the term MovieClip in the Language
    Reference, just
    replace that with the instance name of your clip -- or a
    reference to that
    clip (which even includes the global "this" property).
    David
    stiller (at) quip (dot) net
    Dev essays:
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Just noticed that when I close my mail app by double clicking the home button and swiping up it dies something weird. After doing this when I open my mail, instead of showing all my mailboxes it automatically opens one of them instead. Anyone know why?

    Just noticed that when I close my mail app by double clicking the home button and swiping up it dies something weird. After doing this when I open my mail, instead of showing all my mailboxes it automatically opens one of them instead. Anyone know why?

    Just to recap, this is a collection of ports I have collected over time for people who needed this information when setting up the HP ePrint app so that they could view their email from within the app.  I am certain other applications also need this information.  Although lengthy, I could not find a more comprehensive place to retrieve this information.  Feel free to post additional information, faulty information, or other related topics below as this is simply a collection of data and it would be practically impossible to test all of them. Thank you!
    Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
    When a solution is found please mark the post that solves your issue.
    Every problem has a solution!

  • After the update I don't know how to close running apps? I recall double clicking the main button then hold one app until they begin a jiggling motion. But that no longer works.

    How do close running apps?

    You still double tap the home button and the apps are lined up across the screen. Swipe up on the app preview thumbnail - drag it up off of the screen - and that will close the app.

  • HT201365 before up dating my i phone 4s, i used to be ablr to double press the bottom button to bring up all the ones i wante to get rid of.which when left on all the time wastes my battery. now since i upgraded it i cant do that, how do i turn off all th

    before updating my i phone 4s , i used to be able to double press the bottom button to delete the unused icons on my phone to stop wasting the battery. since up dating double pressing the bottom doesnt work , so i dont know how to get rid of the unused i cons , can anyone help me.

    Double tap the home button and swipe upwards on the preview of the App (not the App Icon).
    http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf

  • Robo v9 Show/Hide without Twisties - One button no longer working

    Hey there, as stated I am using Robo v9 with Show/Hide without Twisties (One button) with javascipts.  We have most of our images using DHTML drop-downs and when folks click on "Show All Images" on the page, the GIF changes to "Hide All Images" and all drop-downs (our images) and expanding text are diaplayed.
    It had been working all the time, but now it only works when I right click the topic in the TOC and choose "Edit Topic", then while in the Edit Window (Display view), when I do a View (Ctrl-W) and it displays the page within RoboHelp..I can click the "Show All Images" and it works like it always had.  BUT, if that page is not in the Edit Window, and I right click "Preview Topic", the click "Show All Images" (or on the DHTML dropdown itself) it will NOT show the images, *but the GIF image does properly toggle to "Hide All Images" (and if I do again, then it properly toggles to the "Show All Images" GIF, if I do it again), but now NO images are getting displayed for some reason.  It also NEVER works properly when I publish to our website (even when clicking the DHTML dropdown itself), but the GIF images toggle properly.
    If I right click and choose "Preview Topic" and click "View With" and use Internet Explorer 8 it still never works anymore, unless the topic is in the Edit Window (Display View), so I know the issue is not on the server.  It stops working after I do a generate and run on my pc.  Also when I view it IE8 within Robo (and Allow the Blocked Content to run the scripts), many instances of the same error is shown as:
    Message: Access is denied. 
    Line: 2646
    Char: 3
    Code: 0
    URI: file:///D:/Users/_RBH9_TPO-Generate/v9-testing/ehlpdhtm.js
    ...but I *do* have access to the folder system, but in checking the coding of the ehlpdhtm.js, that area show, where I believe line 2646, character 3 starts at the "values = getAttribute(element, prop );" line below...but maybe something does not exist:
    ==
      //End HTML code invoked function
    function InitEffect( element, prop )
    var values = null;
    if( getAttribute(element,prop)) 
      values = getAttribute(element, prop );
    else if( getAttribute( element, "currentStyle" )  && element.currentStyle.getAttribute)
      values = element.currentStyle.getAttribute( prop );
    else  if (element.style.getAttribute)
      values = element.style.getAttribute( prop );
    if( !values )
      return;
    var functions = new Array();
    ==
    I have a much older backup when restored, it all works properly again in all cases, but I have done so much work since then that I think would need to be manually redone.  I have played with keeping those some javascipts alone (in case I changed something) and updated the rest of the data files I had added, deleted the .CPD file, but it somehow stops working again, probably with some updated file.  I am not sure what specific files could be causing the negative impact that is preventing it from working.  Maybe if I knew what files could impact, I couldrestore those from my old backup.  The newer backups when restored do not work properly, so there was a point in time where something changed and is causing this.
    All prior versions of RoboHelp (v7 and v8) have always worked and still do.  I am using v9.0.1.262, as the latest version has not yet been allowed on our pcs (per security), but since my earlier backup works, I thought it may not be the issue, but wanted to tell you anyway.  ;->
    Any ideas on how I should proceed?  What files may have impact to cause it not to work anymore?  The showhide.js is the only .js to show up as a baggage file.  Also, the DHTML line does exits in each html page's code, as we are still using Robo v7 as the production software and the Show/Hide always works, and I copy them into the respective Robo v9 folders (and if new, then I copy them, then import them), otherwise the newer v7 updated pages are copied over the older v9 html files while RoboHelp is closed.
    Thanks in advance for any info you can provide!

    I may have figured out what to fix to get v9 back to working on the Show/Hide button, but not the "why?" .
    It looks to all be dealing with the Robo automatic html coding of where to locate the .js file(s)...here is a quick overview of this issue and what I did.  When I view the non-working pages within Internet Explorer 8 within Robo (and Allow the Blocked Content to run the scripts), I saw many instances of the same error is shown as this in the log, which implied since I *do* have access rights, maybe the file was just not being found.
    Message: Access is denied.
    Line: 2646
    Char: 3
    Code: 0
    URI: file:///D:/Users/_RBH9_TPO-Generate/v9-testing/ehlpdhtm.js
    OK, here are my findings.  EXAMPLE #1 and EXAMPLE #2 below are excerpts of the same file.  EXAMPLE #1 is from Robo v7 and is copied to the v9 folder after it was updated so our soon to be "production" webhelp will be from Robo v9 (instead of making the same manual updates in Robo v9 as in Robo v7, I copy the updated the .html file to the Robo v9 file system).  Note the direction of the directory slashes of the java scripts listed below, as they are all DOS type slashes (back slashes), EXCEPT for ehlpdhtm.js as it is the ONLY one using UNIX (forward) slashes.
    EXAMPLE #1 (from Robo v7)
    ==
    <link rel="StyleSheet" href="..\..\sty-std-topic.css">
    <script type="text/javascript" language=JavaScript x-save-method=compute-relative
    src="..\..\showhide.js"></script>
    </head>
    <body>
    <robohelp><script type="text/javascript" language=JavaScript1.2 src="../../ehlpdhtm.js"
    x-save-method=compute-relative></script>
    <script type="text/javascript" language=JavaScript1.2>
    <!--
    if( typeof( InitEffects ) != 'function' ) InitEffects = new Function();if( typeof( InitTrigger ) != 'function' ) InitTrigger = new Function();if( typeof( FilePopupInit ) != 'function' ) FilePopupInit = new Function();if( typeof( TextPopupInit ) != 'function' ) TextPopupInit = new Function();
    //-->
    </script>
    ==
    EXAMPLE #2(from Robo v9)
    This is from the restored backup of the Robo v9 files that always work when I restore them, and note they are ALL UNIX (forward) slashes.  These backup files were generated from Importing/Upgrading a copy of the Robo v7 files into Robo v9.
    ++
    <title>[Endpoint Protection] Symantec Overview</title>
    <link rel="StyleSheet" href="../../sty-std-topic.css" type="text/css" />
    <script type="text/javascript" language="JavaScript" src="../../showhide.js">
    </script>
    </head>
    <body>
    <?rh-script_start ?><script src="../../ehlpdhtm.js" type="text/javascript" language="JavaScript1.2">
    </script><?rh-script_end ?>
    ++
    Additional info: The following is from another file from the Robo v9 backup files that always WORK and once again they are ALL UNIX (forward) slashes. 
    ~~
    <link rel="StyleSheet" href="../../sty-std-topic.css" type="text/css" />
    <script type="text/javascript" language="JavaScript" src="../../showhide.js">
    </script>
    </head>
    <body>
    <?rh-script_start ?><script src="../../ehlpdhtm.js" type="text/javascript" language="JavaScript1.2">
    </script><?rh-script_end ?>
    ~~
    BUT since all .js files are referenced in EXAMPLE #1 have DOS slashes (back slashes), EXCEPT for the ehlpdhtm.js, I decided to change the line in ehlpdhtm.js FROM src="../../ehlpdhtm.js" TO src="..\..\ehlpdhtm.js" and IT (this one page) BEGAN WORKING AGAIN after I published.  So having all DOS back slashes DOES work in Robo v9!!!!  BUT it appears that Robo v9 only generates new pages using UNIX (forward) slashes in ALL coding.  I've read about issues like this occurring with the FireFox browser, but we only use IE8, and have not read anything like this related to IE8 issues. 
    So if all UNIX forward slashes and all DOS back slashes can work in Robo v9 in finding and using ehlpdhtm.js, (the Show/Hide buttons function properly) why is this problem existing in Robo v9 when there are mixed "slashes" (using forward and backward)?  ...and the mixed slashes ALWAYS works in Robo v7!  They do not have to all be in the same direction in Robo v7 as it appears to have to be in the newer/more advanced Robo v9.  Why does it matter that all slashes need to be all the same direction, if Robo v9 CAN actually read and figure out the DOS back slashes (formatted by Robo v7 creation) and actually generates UNIX forward slashes for the .js files in new Robo v9 output within the .html?
    More importantly will I have to always do a Global search and replace in Robo v9 to change the direction of the "back slashes" when I copy updated Robo v7 .html files into the Robo v9 folders (instead of manually reworking each change), while in transition from v7 to v9?
    Thanks in advance any information, recommendations, and feedback as your time is greatly appreciated!

  • How does this happen: The picture of recent apps you get when double clicking the home button showed in Settings-Wifi that I had been connected to a network I have not been near for two months. Its not a recent "image" of Settings-Wifi. Can anyone explain

    How does this happen: The picture of recent apps you get when double clicking the home button showed in Settings-Wifi that I had been connected to a network I have not been near for two months. Its not a recent "image" of Settings-Wifi. Can anyone explain?

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • Double tap on home button

    Hi
    thought to access this is was settings, general and home but apparently not. Checked google and they say teh same.
    Can some one tell me where it's moved to?
    thanks
    Ian

    Not quite true. On a 3G with iOS4, because multitasking doesn't work the double tap on home button still does what it used to do. You can choose WHAT it does in settings>general>home button

  • Why is the battery life dropping so fast on my iphone 4s. Just started all of a sudden today, never did it before. I already double-clicked the bottom button to see what was running and nothing was running. I checked multiple times and turned apps. off.

    All of a sudden today my battery life just started dropping off on my iphone 4s. I charge it every night. I double clicked the circle button on the bottom to see what was running and there was minimal running but i turned them off anyway. I checked back in a little bit, the same, turned the couple things off again which were like phone and messages... nothing major running. Battery percentage still plummeted til it just turned off.

    Are there apps on your phone right now? 
    I think one of your apps is causing this.
    The only way to find out is to delete them all and then add them one by one to see what app maybe causing this.
    Especially if you've gone thru 3 iphones already.
    When you restored as new - did you sync back your stuff - apps/music or did you restore from backup?

  • Need To Add One Button in The Output

    Hi Freinds,
    can any one tell how to add one button in the application
    tool bar, that is at the final ALV out put screen

    Hi,
    you just create a pf status and add buttons to it.
    then you include that pfstatus in your function module in the
    export parameter 'i_callback_pf_status_set'
    i found this sample code somewhere you just see how this is done:
    create one pfstatus. for example znewstatus is the created
    pfstatus. double click on the pfstatus that was created then add the buttons that you require in the appilication tool bar.
    pass the form names to the I_CALLBACK_PF_STATUS_SET and I_CALLBACK_USER_COMMAND in grid as shown below.
    example for reference:
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = SY-REPID
    I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
    I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
    FORM SET_PF_STATUS USING RT_EXTAB TYPE SLIS_T_EXTAB.
    SET PF-STATUS 'ZNEWSTATUS'.
    ENDFORM.
    FORM USER_COMMAND USING R_UCOM TYPE SY-UCOMM R_SELFIELD TYPE SLIS_SELFIELD.
    case R_UCOM
    when 'PRINT'. (print is the function code name given to the icon created)
    leave to list-processing.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = pass the form name
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FMNAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION FMNAME.
    reward if useful.
    Nishant Rana

  • Play two MCs with one button

    Hi,
    I'm trying to make the main timeline go to frame 2, and a separate MC go to frame 2 by clicking one button.
    Here's what I'm trying ...
    on (release) {
        _root.gotoAndPlay(2);
        snap1.gotoandplay(2);
    When the button is clicked, the main timeline goes to frame 2, but the MC (instance name) snap1, doesn't play. I'm using AS2.

    actionscript is case-sensitive.  use:
    on (release) {
        _root.gotoAndPlay(2);
        snap1.gotoAndplay(2);

  • LabVIEW one button dialog fails in filter event

    Hello,
    I'm using the one button dialog to provide feedback to the user in an event structure. Inside of a notify event, it works fine. I have another instance inside a filter event (Edit Cell? for a listbox). When it gets called, the dialog box appears to hang. I've noticed that if I select a window from another application (like Windows Task Manager), then come back it appears that the one button resets to the FALSE state and operates correctly. If I don't switch applications, the one button dialog is completely unresponsive.
    The VI that I am running is top level, and set to Modal. I am setting the Discard? output to be TRUE in the cases where I provide the dialog. The dialog box works the first time, but fails on subsequent iterations. Perhaps the Discard? setting is affecting operation?
    Thanks for your thoughts.
    Derek
    Attachments:
    Code Snippet1.JPG ‏51 KB

    Hi Derek,
    i tried it with this vi and can´t see your behavior.
    Mike
    Attachments:
    Unbenannt 2_LV80.vi ‏17 KB

  • After the latest update to FF13, I double click the bookmark button and the window won't open so I can edit.

    When I double click the bookmark button (star) a window always drops down so I can edit the bookmark or place it into the folder I want. Now after the latest update to FF13 (june 2012) I can click once and the page is bookmarked to the "unsorted" folder, but when I double click nothing happens. 1) I restarted FF, didn't help 2) I rebooted computer, didn't help.

    Thank you very much for pointing me in the right direction. I had 5 extensions installed. I disabled all of them then restarted FF. My bookmark window started working again. Then I enabled each extension one at a time to find the culprit. It was "Compact Menu 2 version 4.3.1". It's a handy extension for me, but I can live without it till they have a version that will work for me. Thanks again.

  • Why can't I sleep my Ipod by double clicking the home button?

    My sleep/wake button doesn;t work anymore, and I want to be able to sleep my Ipod by double clicking the home button. That would be much more useful than the 3 stupid choices I have now: "Home, Search, and iPod."
    The home button already takes you home. So choice 1 is stupid. To search all you have to do is press home and swipe to the right; so choice 2 is also stupid. Choice 3 is ******** because I can just click "music."
    Why can't double clicking home do something useful? Like making up for a poorly designed, chinese-made button that only lasts until just after your warrenty expires?

    "Why can't double clicking home do something useful?"
    "Useful" s subjective.  The options are helpful to many.
    " Like making up for a poorly designed, chinese-made button that only lasts until just after your warrenty expires?"
    My button has lasted for three years.  I know no one personally who has a broken powerbutton.
    Perhaps it is simply that your ipod has an issue.  Maybe you are blowing this out of all proportion.

  • Double-tapping the home button locks the phone

    iPhone 4s, still running ios 7.1.2 because I don't want my phone bogged down even though I'd love to see some of ios 8's features.
    This has happened a few times in the last few months.  I'll have an app up.  I'll double-tap the home button so that I can swipe/close that app.  The screen does not change.  All keys/screen tapping becomes locked -- nothing I do does anything.
    I'll press the top power button and the screen goes black and then stays black - nothing I do will bring it back.
    I end up having to hold the home and power buttons and reset my phone.
    This happens from various apps -- not the same one every time.
    Anyone else?

    It's called Reachabilty.
    Read this.
    http://www.tekrevue.com/tip/reachability-iphone-6/
    Hope that helps.

Maybe you are looking for

  • "no data found" run-time error masking SQL/report mismatch

    Hi all, At last, figured out a vexing problem and wondering if anyone else either: a) has also hit the problem, and hopefully b) has figured out a clever way around it. Namely, in our AppEx apps, we rely on SQL query generation from PL/SQL packaged f

  • Trying to get my Lexmark 7300 printer to work on my iMac - how?

    I have downloaded my Lexmark 7300 disk to my iMac and it recognizes the Lexmark printer, copier, fax. When I try to print an document or photo, or e-mail received from my iMac ISP connection (Cox.net), there is no response from the printer. Do I have

  • Propagation case sensitive?

    I am getting NodeExistsExceptions when using the propagation tools to import names of nodes that are only differentiated by case. For example: (same directory) -helloWorld (node) -HelloWorld (folder) Other than changing naming conventions, anyone kno

  • Waited hours for download to complete and then it didn't work

    I purchased the app for Mountian Lion to update from OS X 10.6.8.  Tried to download today.  Waited hours for the download to finish and then got a message that it couldn't download and to try again.  Trying again but taking forever again.

  • Flash CC 2014 Library Icons Are Hard To See

    Hello, The Flash CC 2014 Library has icons that are all gray in color.  Older version showed colored icons (folders are yellow, MCs are blue, etc). The all-gray icons in the Flash CC 2014 Library are extremely hard to organize visually.  When folders