Closing the VI after execution under conditions

Hello.
In my program i have a button that opens new window to show graph from saved file.
In the new window there is i dialog. If user chooses file to open, then the graph is presented in the VI.
I want to make, that if the user cancel the dialog box of choosing file, the new window will close.
What is the solution?
Thanks 

Hi Tacchi,
usually a subVI's FP is closed when the subVI exits (when the VI properties are set properly, OpenOnCall and CloseAfterwards).
The other option would be a property node of the VI to close the FP programmatically.
When you use the standard FileDialog function you should also check the error output for an "User Cancel" error to recognize  a cancel operation of the user...
Message Edited by GerdW on 03-10-2010 03:37 PM
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • Is it okay to closed the lid after using Macbook Pro even the it is hot?

    Hi. I'm using MBP early 2011 I5 and I noticed the temperature getting high and palm rest is getting hot/warm when I'm playing games. Is this normal? temperature around 80 degree celsius accoringding to istat.
    Also, after using the MBP, ofcourse the palm rest is hot/warm. Is it okay to close the lid after using it?
    Thanks.

    My practice has been to let the MBP cool a few minutes before closing the lid, so it's trapping less heat. I doubt this has much saving effect on the logic board components, but my MBP is old enough to have a glossyplastic display cover. It would look ugly if it started to warp.

  • Closing the browser after logout

    Version 1.6
    We're using Internet Explorer and I need to close the browser after/when the user clicks on the Logout link. How can I accomplish this?
    Thanks,
    Joe

    The online help for the onClick Javascript field says
    "In the link generated for this icon include the following onClick javascript.  Use of the onclick javascript could popup a help page in a new window (see example 1).
    Example 1:
      window.open('US/asfhhome.htm','Help','scrollbars=yes,resizable=yes,width=625,height=350,left=25,top=150');return false
    Set the Icon Target attribute to # if you are using OnClick JavaScript. Set the Image Alt Text attribute to the text the user will see to click on."So, try putting "#" in the Target and window.close() in the onClick Javascript box.
    Message was edited by:
    Vikas

  • How to populate the field after execution of the application

    Hello gurus,
    I am creating one application and need your help. on my webdynpro screen I have few fields, out of these user will enter some and one field I want to populate when user hit enters. My application is to create a sales order, user will enter the details and hit create button that will create the sales order. Now what I want is when the sales order is created on the same screen the sales order number should also be displayed in the field : VBELN. Can you please tell me how can I get this.
    Thank
    Rajeev

    Hi Rajeev, if I understand you want show in a field that was created the VBELN after execute BAPI, well I assume that this field is binding with context document->Att_VBELN. You can use the code below.
        DATA lo_nd_document TYPE REF TO if_wd_context_node.
        DATA lo_el_document TYPE REF TO if_wd_context_element.
        DATA ls_document TYPE wd_this->element_document.
        DATA lv_att_vbeln TYPE wd_this->element_document-att_vbeln.
        lo_nd_document = wd_context->get_child_node( name = wd_this->wdctx_document ).
        lo_el_document = lo_nd_document->get_element( ).
        IF lo_el_document IS INITIAL.
        ENDIF.
       lv_att_vbeln = <<RETURNED VBELN FROM BAPI>>.
        lo_el_document->set_attribute(
          name =  `ATT_VBELN`
          value = lv_att_vbeln ).
    Regards,
    Edson Thomaz

  • Submitting values to the same popup window and closing the window after upd

    hi,
    i have a jsp page called index.jsp.
    in that jsp page i have an hyperlink..if i click on this it opens a popup window.in this popup window we have some values allowed to user to modify.after entering the values in popup window he clicks update then the values are updated and the window is closed and the index.jsp page is refreshed.
    how can do this.
    i want tried in this way but i failed..
    first time when i open the window i kept a flag as hidden field false..
    once the user clicks the update button after entering the value then i make the flag as true and submitt to the same page..now iam updating after immediate update i want to close the window..its not closing.
    if(!flag)
    display fields with update option
    }else
    rtreieve the values
    update in database.
    <script>
    window.opener.refresh;
    window.close();
    </script>
    }

    I had a similar problem. I resolved it by making use of IFrames.

  • How do I stop Photoshop CS6 from asking to save changes to a file when closing the file, after "savi

    I save a lot of files to "save for web". After saving PS asks if I want to save changes to the original file. I never want to save the changes to the original. Since the default is to change the file I am afraid I will accidentally OK the change without wanting to. I would like it to stop asking and just not save it. Is there a way?

    Stephen Douge wrote:
    I never want to mess with originals. I am asking because I want to make sure I stated the question properly in the first place. Thanks.
    Then don't work on the original open the file using Photoshop menu file>open once its in Photoshop as a document dupe the document and close the original document. Photoshop will just close the original and not ask it you want to save the original document for no changes were made to it.  You could easily record an action to automate this process. The first step in the action would be an inserted menu item menu File>Open.  The second step Duplicate Document, third step select previous document the fourth and final step close. The action would look like this recorded Work in the dupe and save it under the name you want to where you want it saved. The First step is an interactive you will be able to open any file Photoshop has support for that you have access to.

  • "clicky" noise on the "N" after cleaning under t510 laptop.

    Hi all, I decided to pop off a few keys on the t510 model thinkpad to clean under the keyboard. I carefully removed the keys and i made sure the hinge mechanisms are intact and the metal are all intact. but i noticed after placing the keys back, the N key is "clicky" as in if i click it lets say in the upper left hand side of the key, the key depressing makes a "clicky" noise, while the other keys on the laptop all make the sort of dull sound when you depress the keys. the weird thing is that if i press the N key in a different region of the key, the sound does not come up...does that mean that the mechanism under the "N" key was damaged when i cleaned it? i sure hope not considering how thinkpad T series are durable and reliable in almost every possible way and it would be a shame that a user can not even remove a key to clean under a laptop for maintenance..
    Thanks in advance for any responses!

    When I said "playing with", I didn't mean that what you were doing was wrong or unnecessary.  I don't know. I would need to see it. The key clips on at 4 corners, so I thought one corner might not be attached or that one of the 4 corners had the clip damaged when the key was taken off. I have certainly seen them damaged in that way. The reason I guess that they are not considered removable is that a Lenovo Repair place would probably replace the keyboard, rather than taking it apart. I may be wrong. As I said, I fix them all the time.

  • Closing the program after printing

    Hello. I receive faxes via email, and it uses Reader to print them. I just right click and print directly from the email. However, Reader stay open and I have to go close it separately.
    Does anyone know of a way to set it to NOT stay open after printing? It's a pain to have to keep re-closing it!
    Thanks.

    Bernd, I just downloaded an update again this morning. I currently have Version 8.1.2
    Jill

  • Closing the window after the video is complete.

    I'm obviously new to this, so please excuse the simple
    questions.... I need for the SWF files to actually close the window
    when they are complete, however, I get the following message when
    the video is finished.
    The webpage you are viewing is trying to close the tab.
    Do you want to close this tab?
    Is there anyway that I can have it bypass this step? If so,
    it would make things a lot easier for me.
    Thanks in advance!!!!

    Hi FacilityDude
    This happens normally in IE, when you have simply opened the
    movie inside its own browser instance. There is a way that may work
    to prevent it from occurring by tricking the browser into thinking
    the movie trying to close the instance was actually what opened it
    in the first place. Essentially you would insert a piece of
    JavaScript and use that to close the browser. Keep in mind it's a
    bit involved. You have to be using .SWF output (won't work if you
    produce .EXE output) And you have to futz with JavaScript.
    Before we do that, I have a question for you. How are you
    planning to deploy? I ask because I think that if you set things up
    properly with the way you link to your movies for your users, you
    won't encounter the prompt. So it would be silly to go futzing
    about looking for other ways to overcome an apparent browser
    limitation if it could be prevented altogether by simply being a
    bit picky with how you create the links to your movies.
    Cheers... Rick

  • Difference between closing the connection before and after committing user transaction?

              I was wondering what's the difference between closing the connection before committing
              the transaction versus closing the connection after committing the transaction?...
              for e.g....
              Scenario 1.........
              UserTransaction useretran;
              usertran.begin();
              Connection con = datasource.getCOnnection();
              // do bunch of stuff...
              conn.close();
              usertran.commit()
              Scenario 2...
              UserTransaction useretran;
              usertran.begin();
              Connection con = datasource.getCOnnection();
              // do bunch of stuff...
              usertran.commit()
              conn.close();
              thanks....
              Srini
              

    Hi. As long as you're sure there's a transaction going on, and the connection
    is a transaction-aware object (from a TxDataSource), either will be fine.
    In the first scenario the actual semantics of the close() call are less than
    normal, because we really don't close the connection or return it to the
    pool until the actual transaction commits, and in the second case, we have
    already taken the connection out of your service as of the commit().
    The second scenario is the usual coding style. If there's ever a chance your
    code will get non-transaction-aware connections, it is crucial to close
    connections, and I always recommend putting the close() in a finally block
    so it's guaranteed to happen.
    Joe
    srinivas wrote:
    I was wondering what's the difference between closing the connection before committing
    the transaction versus closing the connection after committing the transaction?...
    for e.g....
    Scenario 1......... UserTransaction useretran; usertran.begin(); Connection con =
    datasource.getCOnnection(); // do bunch of stuff... conn.close(); usertran.commit()
    Scenario 2... UserTransaction useretran; usertran.begin(); Connection con = datasource.getCOnnection();
    // do bunch of stuff... usertran.commit() conn.close();
    thanks....
    Srini

  • HT204267 My Macbook Pro 13 refuses to turn on after i place it in sleep mode by closing the lid.

    My Macbook Pro 13 refuses to turn on after i place it in sleep mode by closing the lid, after opening the lid the led sleep indicator is still on and the screen hasn't revived but once i press any button to revive it, it goes off and refuses to turn on. Is there a way to fix this?

    Hello Carlens J,
    Thanks for visiting Apple Support Communities.
    It sounds like your MacBook Pro does not wake from sleep, and shuts down when you try to wake it.
    Try these troubleshooting steps to remedy the situation, or if your Mac is currently not powering on:
    OS X: When your Mac doesn't sleep or wake - Apple Support
    Reset SMC
    The System Management Controller (SMC) is involved in managing power on your computer. Reset the SMC on your Mac if you are having difficulty sleeping or waking your computer.
    Reset NVRAM/PRAM
    Nonvolatile RAM (NVRAM)/Parameter RAM (PRAM) stores some power-related settings.Try resetting NVRAM/PRAM if you are having difficulty sleeping or waking your computer.
    Test with external devices disconnected
    Some external devices can prevent your computer from sleeping. Try disconnecting items other than your Apple keyboard or mouse from the built-in USB, Thunderbolt and Firewire ports on your Mac. If this resolves the issue, try reconnecting your external devices one at a time until you find the device preventing sleep or wake. Check the documentation that came with the device, or contact the device manufacturer for more information.
    Try Safe Mode
    Check to see if the issue still occurs when the computer is started in Safe Mode. If this resolves the issue, it could be related to a third party software item such as:
    a login item
    a startup item
    a third party kernel extension
    Best Regards,
    Jeremy

  • SAPgui.exe is running even after closing the GUI components

    Hello All,
    Even after closing the SAP GUI components like Bex, WAD or RSA1 etc... i am able to see these processes are running under the Task Manager--> Processes....
    even if i try to restart the system, error messages are occuring...saying that SAP is still opend...
    Why it is happening, any ideas?
    Thanks,
    Ravi

    Hi Dirk,
    Thanks for your infomation. Infact, apart from this problem, i have the problem with saving the webtemplate. As it is taking much time to save a template after modifications, i had to terminate the wad process. It seems above 2 problems are related....any ideas?
    Thanks
    ravi
    Message was edited by: Ravi Pasumarty

  • I don't think my MBP slept after closing the lid - it was hot when I woke up

    I just came back from an overseas trip and hooked my late 2013 13" MBP retina back up to the LG external monitor. When I went to bed I closed the lid. What I expected to happen was for it to stay awake for a certain number of minutes. Then the external monitor display would go black indicating it was asleep. But because an external monitor is connected it would wake up as needed for Carbon Copy Cloner at 3:30 am. But then go back to sleep.
    However my MBP seemed too warm when I just came downstairs. The body and lit were noticeably warm.
    Shouldn't it eventually sleep and not be fully awake in clamshell mode in this situation?
    Thanks,
    Doug

    And another Apple Care chat session. But I still can't figure out exactly what's going on, and we seem to be going in circles.
    Hello, Doug! How are you doing today?
    OK. And you?
    I’m doing really well, thanks for asking! How can I help you today?
    Well, I tried talking about this via chat support earlier, but was getting wrong information, so I thought I would try again and take a different approach to how I ask .
    I’m currently reading through the chat transcript to get a strong understanding of what you were going through.
    If you read over the chat you can see we digressed into a separate question about whether the "turn hard drive when possible" mattered to the internal SSD and he said it did and pointed me to a support page which said it did NOT and then he said, "there you have it! have all your questions been answered" but none were so I gave up.
    Anyway...
    Basically it's just this. My MBP is connected to an external display. In the energy settings I have my MBP set to not sleep when the display sleeps so I don't lose some Terminal SSH connections when I'm working.
    But when I'm going to sleep I thought I would let it power nap and cool down.
    But I've noticed the MBP is warm in the morning. Also I noticed that open SSH sessions were not broken. So I think my MBP is not going to sleep.
    Perhaps the computer thinks it’s going into Clamshell mode since it’s connected to an external display via HDMI, correct?
    I did read in help that if you hold the power button down 1.5 seconds an option dialog will appear and from there I can select sleep. I did that, but this morning it is still warm and the connections were not broken.
    Let me look into this, I want to do everything I can to make sure you’re getting your questions answered this time.
    Yes, I believe you are correct. That it is just going into clamshell mode, and even though I manually selected sleep from the power button option it is ignoring that.
    It seems to immediately sleep though. Instead of timing out, the external display goes black, reports a loss of signal and then goes into its own power save mode. So it appears to go to sleep.Yet it is warm in the morning, and the open Terminal sessions, which I would normally expect to break, are not broken.
    Okay, so there’s still network communication going on, and you’re used to that terminating.
    It shouldn’t be possible, but that could be what’s going on here. This is an interesting one, and I can see how you’d expect your Mac to be a little cooler to the touch if it’s supposed to be sleeping.
    Okay, so there’s still network communication going on, and you’re used to that terminating.
    Let me check our resources on this. It may be a great opportunity to speak to a senior advisor as well.
    I just came back from a trip and during the trip there was no external monitor and I didn't experience this, even though the energy settings are the same.
    The network is my home wifi. On my trip, it was my friend's home wifi.
    So the external display is really the big variable here I think.
    Probably so.
    I could just power off the external display before I close the lid as my next test before I go to sleep next time. But I sort of wanted to know what was happening. Especially since I intentionally manually selected sleep.
    I’d like to check with a senior advisor if that’s okay with you.
    Yes, please do check.
    Also - another thing.
    I notice my keypad and hand rest - the whole top surface - has become noticeably COOLER since we began our chat. So I'm wondering if there is stuff in the display/lid itself which might be causing the warm temperature, rather than the body (which is what I would have expected with the display off). Or it is just able to "cool better" with the lid open?
    That’s another interesting observation. I think either way, the concern still remains whether or not the computer is actually going to sleep. The display of all things should not be producing excessive warmth.
    Do you hear any fan noise when you wake your Mac?
    Or right beforehand?
    Yes, you are correct about the main concern. I thought maybe there was something in the logs I might be able to check to see if it actually was asleep or not.
    I have never heard any fan noice from the MBP.
    Okay. I just wanted to make sure. My hands-on experience with a new Retina display is limited, I’m not sure what the fan actually sounds like compared to my traditional MacBook Pro. I’ll go ahead and consult with my senior advisor since our troubleshooting steps would indefinitely cause us to get disconnected.
    Thanks for your patience as check on this!
    I just found this terminal command to check on the last sleep time:
    pmset -g log | grep sleep | tail -n 1
    It does report that it went to sleep at 2:42 am which sounds right:
    8/2/14, 2:42:25 AM GMT+9 com.apple.sleepservices.sessionTerminatedSleepService: window has terminated.
    Unless that means sleep ENDED at that time.
    Interesting. I’m glad you found that. It’s a little beyond the level at which I know OS X, But I’ll have some answers soon enough.
    OK. Take your time.
    Thanks, Doug.
    I believe I found more information, though it still doesn't explain why the SSH connection didn't break.
    This command:
    pmset -g log|grep -e " Sleep " -e " Wake "
    will report all the sleep/awake occurrences.
    For the last few days it reports:
    7/30/14, 11:16:09 AM GMT Wake Wake from Standby [CDNVA] due to EC.LidOpen/Lid Open: Using BATT (Charge:99%)66 secs 7/30/14, 11:17:15 AM GMT Sleep Clamshell Sleep: Using BATT (Charge:99%) 10830 secs 7/30/14, 2:17:45 PM GMT+ Sleep Maintenance Sleep: Using BATT (Charge:97%) 11542 secs 7/30/14, 5:30:07 PM GMT+ Wake Wake from Standby [CDNVA] due to RTC/Alarm: Using BATT (Charge:96%) 41 secs 7/30/14, 5:30:48 PM GMT+ Sleep Clamshell Sleep: Using BATT (Charge:96%) 10823 secs 7/30/14, 8:31:11 PM GMT+ Sleep Maintenance Sleep: Using BATT (Charge:94%) 7/30/14, 9:29:02 PM GMT+ Wake Wake from Standby [CDNVA] due to EC.ACAttach/Lid Open: Using AC (Charge:94%) 8/2/14, 2:06:18 AM GMT+9 Sleep Software Sleep pid=78: Using AC (Charge:100%
    So (if you can look at that neatly, one line at a time, it shows it was in fact going into clamshell sleep until I manually put it into sleep.
    Then at 2:06 am it went into "software sleep".
    Then at 2:42 a it went into something called "maintenance sleep"
    at 3:30 am it was awakened by CCC (Carbon Copy Cloner) and did not go to sleep again after that.
    So maybe:
    1. The sleep is quietly keeping the SSH connections alive and,
    2. CCC is not properly putting the MBP back to sleep after doing its 3:30 am backup?
    Doug, I’m going to go ahead and transfer you over to a Senior Advisor now. They will discuss this with you further. Does that sound good?
    Yes, thank you.
    You are now being connected to another Advisor. Please standby.
    Okay, so your external display is not sleeping?
    It is sleeping.
    It times out in 15 minutes normally.
    After I close the MBP lid.
    Just like the energy settings say it should.
    And when I did the forced sleep via the power button the external display immediately went black and reported loss of signal and then went into power save mode.
    So I assumed it was asleep.
    Okay, so, the Mac is not sleeping or the Display?
    What I'm trying to find out is if the Mac is sleeping or not. The reason I was prompted to ask was because in the morning after I wake up I notice the MBP feels warm to the touch. I would expect it to feel cold if it was sleeping. Also, a terminal session with an SSH going did not get broken.
    Okay, I think I understand now. You are looking for answers about the sleep status of your Mac. I understand your expectation of a cold Mac, and I am here to help.
    Thanks. Did you notice my pmset command outputs near the end of my chat with the previous person?
    So, In Energy Saver, there is a setting to wake for network Activity.
    Yes. It is checked.
    However, when not connected to the monitor (like on my previous trip) that was not enough to keep an SSH session going.
    Okay, so this would explain to me why the Mac would be warm to the touch. If there is a SSH session active.
    Typically those shells would break when the lid was closed.
    Okay, with a Display attached, the system expects to operate in Clamshell mode when the lid is closed.
    This is all expected
    Which prompts two questions:
    (1) Even if I force it to sleep with the power button followed by selecting "sleep" from the options and
    (2) Even though the pmset output indicated it went to sleep and not into clamshell mode?
    I am not familiar with the pmset
    http://en.wikipedia.org/wiki/Pmset
    In computing, pmset is a command line utility to manipulate power management settings under the Darwin and Mac OS X operating systems. It can assign sleep settings, schedule sleep and wake times, and display power information.
    pmset indicated it went to sleep at 2:06 am. Anyway, as I reported above with the previous tech person.
    Okay, pmset is not supported by AppleCare, yes it is a Terminal command, but it is there for Developer use
    So... where are we left? That you think it was in clamshell mode even though I manually forced it into sleep mode and the logs indicate it went to sleep? I'm just still left not quite understanding what is happening.
    I guess I'll just try a test next time with the display powered off and see what happens. I need to go now. Thank you. I will end the chat for now.
    End Chat

  • T.Code for  issues return by the user after month closing

    Dear SAPient's,
    Give us the transaction facility available in SAP to account the issues
    return by the user after month closing.
    regards,
    Bijay Jha

    Dear SAPient's,
    Actually I want to know that when the Goods Issued and from that some goods are returned back due to any reason.
    I want to know Is there any T.Code from which i can get full details of Goods which is returned after Issuing in one month.
    Warm Regards,
    Bijay Kumar Jha

  • 'You can post in new year only after closing the previous year

    Hello Experts,
    I am also getting same error while executing depreciation run AFAB ''You can post in new year only after closing the previous year''.
    I found one OSS Note 18800 and it is saying solution as below ...
    At the first depreciation posting in the new fiscal year after a shortened fiscal year, the fiscal year variants must, in all cases, still be entered in asset customizing and in FI customizing for the affected company code. If necessary, all periods for the following fiscal year must be maintained with the variant of the shortened fiscal year.
    Up to 2.2D the following correction must also be installed:
    Please carry out the syntax check only in main program SAPLAFAR.
    But in my case there is no shortended fiscal year.
    Can I apply this OSS note correction instructions ?
    Please suggest me.

    Hi
    I don't think so. Moreover that is applicable till 2.2D.
    Moreover depreciation is to be run for all periods you have not run earlier. Please check upto which period dep run has happened. Thereafter close the fiscal years in order thro AJAB.
    S Jayaram

Maybe you are looking for

  • Reverting from UTF-8 to ISO-8859-1

    Hi, i have a database installed in UTF-8, it´s a new instalation and the guides i had didnt mention any restrictions on characterset for the teams that were migrating. Well the problem is some teams are moving some of their projects to the new server

  • [SOLVED] Once screen goes blank there's no turning back

    Hello. If I let the screensaver to blank my screen, I can't wake it up. The screen doesn't turn off, it just stays blank. I tried pressing Ctrl + Alt + Backspace, changing to a console with Ctrl + Alt + F1, F2, etc but nothing. I have to power off th

  • Convert from latin iso-1 charset to varchar2

    Hi, how can i convert from latin iso-1 charset to varchar2? for example the & sign that is & amp; Cheers. Message was edited by: edfimasa Message was edited by: edfimasa

  • Multiple selection for Payment Methods.

    TABLES: V_T042E.    DATA: s_zwels_con(3). SELECT-OPTIONS: s_zwels FOR V_T042E-ZLSCH NO INTERVALS,"payment methods ********************   I N I T I A L I Z A T I O N   ******************* INITIALIZATION. ***************   A T   S E L E C T I O N   S C

  • How do I view my screen full size

    I'm wondering how I can get my application windows (such as safari) to display full-screen without having to manually re-size by dragging the bottom corner?