Close window Subvi

Hello!

I built a Subvi to a VI Oscilloscope that performs the analysis of the signals.

Users should be able to open and close the Subvi window, but I can't make it work like I want.

He needs to do is:

-Open the Subvi when an on-off control is clicked and start calculations

-close window calculations and stop the Subvi

-Repeat passages that every time that the user needs

I built what:

-Open the Subvi with the key and start the calculations correctly

-When I close the window Subvi it opens again stopped whith calculations

-After a new closure, if I open the Subvi with the key it doesn't calcuates not

-After clicking the button it finally starts working again

I have attached the Subvi and an example VI reproducing the loop containing the Subvi.

You know a better (and more correct) way to make it work?

Thank you!

Mike

I just noticed a race condition mean you have as well.  If you switch the button after the terminal has been read, but before that the local variable is written to, your rocking button could be ignored accidental due to the locale of your user name.

What I would do with this Setup would be to launch the Subvi as a parallel process.  The VI can maintain its own State and what not.  You can then use the user events and/or queues to send data to the other process.

Tags: NI Software

Similar Questions

  • VI of hand stops fucntioning after as I open and close a Subvi to a structrue event.

    Hello

    I try to open a pop up vi of an event. I've been struggling with this for a while now. When I open a pop up vi and close it, the main vi stops correctly.

    I narrowed down it to the fact that the event that reminds the Subvi is never ending when the Subvi is closed.

    The attached picture is an example of what I'm doing. When I run the present, I never see the dialog box indicating "here.

    may be useful as an allusion to the problem...

    This does not work correctly if I run the vi, click to open the Subvi, close the Subvi (here the main vi is not working properly, do not click on anything whatsoever) then stop the main vi, run the main vi has even once, open and close the Subvi and then I see the dialog 'here '. , and my main vi works correctly.

    Thank you

    J

    What actually happens, is press you the Ok button and your panel closes and you set the stop 2 true.  OK, it's fine except that the stop Terminal 2 has already been read during this iteration of the loop.  So the loop will go again.  This time, it is read stop 2 to a REAL, but the structure of event needs an event before the loop can fill.  But the façade was already closed and you're stuck.

    As Dennis said, get rid of the 2 stop and just wire the TRUE constant straight out of the case of the event.  Wire a FALSE for all other cases of event.

  • His game even after you close windows media player

    my friend needs help with her computer, whenever it closes windows media player, again there is a sound, any ideas?

    Hi Alex,

    We'll find if there are other applications running in the background on the computer that use Windows Media Player.

    Check out the links and follow the suggestions that are marked as an answer:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-pictures/Windows-Media-Player-just-keeps-playing/3e994012-18e6-48e3-9f1f-f3f864b12d99

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-pictures/Windows-Media-Player-keeps-opening-by-itself-every/184cfc98-36e3-4025-b3fe-77aa68e1ab20

    Alternatively, you can fix the problem by disabling the process using the media player:
    1. press Ctrl + Shift + Esc, this will bring up the Task Manager, right-click Windows media player in the Applications tab and select go to process. This will bring you to the processes tab with the process highlighted for you. Right-click on the process and select tree to complete the process . This will close the Windows Media Player.

    2. open another music file by double clicking it. Close Windows Media Player by clicking on the close (X) button for the player.

    This will fix the problem.

  • Since I set up Windows Vista, I can not close Windows Navigator. How do you turn it off?

    Since I set up Windows Vista, I can not close Windows Navigator. How do you turn it off?

    Hi, BillMarrale,

    Are you referring to the Windows Narrator?

    Go to control panel > accessibility > Ease of Access Center > explore all settings > use the computer without a display > untick the checkbox on Narrator byTurn > click Save...

  • Norton Internet Security 2010 automatically close Windows Defender? __

    My set up:

    Windows Vista 32 bit Home Premium, Vista SP2

    HP Desktop

    Modem DSL Connection

    Norton Internet Security 2010

    I just installed Norton Internet Security 2010. I get a pop up notice of Windows indicating that Windows Defender is disabled. When I had Norton Antivirus/spyware 2008 (that I used until the installation of Norton Internet Security 2010) Windows defender was on, but not in real time.  Then, when I'd go to

    The Task Manager > click on the Services tab > click on the Services button in the lower right

    This will display a list of Services. I scroll down and find the Windows Defender Service

    It shows NOT on and manual start

    Before the instalation of Norton Internet Security 2010, it has shown as Started and startup type automatic

    Is this the right setting with Norton Internet Security installed? I do not use Windows Defender, but I read that the Windows Defender Service is responsible for other things in addition to anti-spyware scanning.

    So should I change the startup type?

    and start the service?

    Or, as I said if I don't use it. leave it alone?

    Q. "Norton Internet Security 2010 automatically closes Windows Defender?"

    A. Yes.  It uses its own antispyware software.  Having two different types will result in conflicts and compatibility issues.

    Carey Frisch

  • After the launch and the release of Cisco close Windows loses the functionality of micro.

    If I run the Cisco close Windows application, I lose the microphone feature. I understand from the client accesses the pair with the SX camera microphone.

    But if I left out the functionality of client micro does not. I need to restart my computer for the features come back.

    No reason as to why this is happening?

    This looks like a driver problem. First of all, try to see if you can find a newer audio driver, may also update drivers for related equipment such as the dock and the chipset.

    If this does not help, you can try to see if disabling exclusive mode. If off exclusive mode help the issue, but makes it impossible for you to connect to the codec, check all the settings recording. You may have to disable all effects microphone such as the cancellation of the echo for your card to work without exclusive mode.

    Comments on how you price and information about what hardware you use, would be great if we can help others in your situation as well as possible.

  • I'm LR4 running on a pc. Control-Q does not close the program. (Sometimes it changes the selected color to b & w image.) I was closing the window by right-clicking on the LR icon in the taskbar and selecting "close window." Is - it really close the

    I'm LR4 running on a pc. Control-Q does not close the program. (Sometimes it changes the selected color to b & w image.) I was closing the window by right-clicking on the LR icon in the taskbar and selecting "close window." Is this really close the program? (It also changes an image n & b).

    -> Output file, or by clicking on the red X in the upper right, should work.

    CTRL-Q should work unless there is a Windows keyboard command that replaces it.

  • Can not stop annoying "you're about to close tabs _, confirm close" window to appear

    When you try to close multiple tabs, closing confirm window always appears after I unchecked it in the settings. Really get on my nerves. Would appreciate any advice

    You can check these prefs on the topic: config page:

    • browser.tabs.warnOnCloseOtherTabs
    • browser.tabs.warnOnClose

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

  • Apple Mail unable to answer or close windows

    Whenever I try to reply (or reply to all) of any email through the mail app, a new empty message window opens that I can type in but all the buttons (send, attach etc.) are grayed out and I can't close the window without restarting the mail app has made the full app unusable except for reading emails. Any ideas how to solve this problem?

    Please remove "Report", also known as the 'Trusteer Endpoint Protection', following the instructions on this page.

    Back up all data before making any changes.

  • Close window (X'ing) and Firefox crashes any ideas?

    I can open and use firefox until I close a window and then it crashes. never had this happens any ideas

    Hello tequilashotsinaz,

    Thanks for posting about Mozilla Support. We value and appreciate you as a user.

    Please open Firefox and type in about: crashes in the browser and we provide the latest crash IDS. Thank you!

    Did you know that Mozilla Support is aided by volunteers? Be part of SUMO! http://MZL.la/OJtpch

    Make a donation of more than $30 and get a T-Shirt! https://donate.Mozilla.org/page/contribute/joinmozilla

  • to close window asks if I want to cancel the download

    At the close of my MacBook Pro, a window now appears asking if I want to cancel the download. I didn't download anything.

    Please help me get rid of this.

    Have you checked your browser for downloads?

    Ciao.

  • Firefox on Mac closes windows for printing or attachments

    not sure why this is happening now. When I try to print, firefox automatically closes the "pop-up". not exactly a window pop up, but printing system window. the same thing happens when I try to add attachments to an email. Firefox automatically closes the window system that would allow me to choose the files to download.

    I don't have this problem when using safari. but the problem has persisted on firefox, even if I had restarted the app and the macbook. and could not understand what went wrong (as I got this macbook for 5 years with no problems)?

    I'm using OS 10.5.8 (which is the last version available for this macbook). and firefox 12.0.

    found an answer by adding 'arch i386' before ordering. has managed to create a new profile. and seems that it solved the problem. Thank you very much for your help!

  • CTRL-w is not close window

    It seems that, in recent weeks, Firefox is no longer closes a window when you press ctrl-w even if there is only one tab in the window.

    What I mean is that, if I open a new window (ctrl-n), it does not close if I press on ctrl-w (or ctrl + F4) immediately after. If it is a window with a tab, the application does not close.

    CTRL-SHIFT-w doesn't close all the windows as it is. I tried to find a preference about who might have been disabled by mistake, but could not find anything.

    More research, this appears to be it:

    http://discussion.EverNote.com/topic/21519-Firefox-Web-Clipper-500201551-not-working/

    I don't have a problem with the close button, but disable the extension got the keyboard shortcut to work again.

  • Cannot close windows while on the internet

    original title: help

    I can't close all windows when I'm online, I need to update a driver?

    Hello
    • What windows you're not able to close?
    • Are you able to close the windows if you're not online?
    • If it works much earlier?
    • What changes has been made recently to the computer?

    I recommend you perform the clean boot.
     
    Put your boot system helps determine if third-party applications or startup items are causing the problem. If so, you need to maybe contact the manufacturer of the program for updates or uninstall and reinstall the program.
     
    See the following article in the Microsoft KB for more information on how to solve a problem by performing a clean boot in Windows Vista or Windows 7:
     
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135 
     
    Note: After troubleshooting, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

     
  • When I close Windows Media Player he doesn't stop playback of the MP3 playing.

    My Windows Media Player in windows vista family premium is not working properly. When I open an mp3 file, it starts in the background & also if I close the media player, it is not down. He's playing the media. Even when I find it in the Task Manager to close, I think.  Help please.?

    original title: WINDOWS MEDIA PLAYER DOES NOT WORK PROPERLY

    Hello

    1. have you made changes on the computer before this problem?

    2. do you get any error code or error message?

    I would suggest trying the following methods and check if it helps.

    Method 1:

    Run the fixit in the following Microsoft Fixit article and check if the problem persists.

    Solve the problems of Windows Media Player video and other media or library:

    http://support.Microsoft.com/mats/windows_media_player_diagnostic/

    Method 2:

    Try to re-register the following DLL (Dynamic Link Library) files and check if it helps.

    a. click on start, all programs, and then click Accessories. Click with the right button on command prompt and select run as administrator.

    b. type the following commands one by one and press ENTER.
    regsvr32 jscript.dll
    regsvr32 vbscript.dll
    regsvr32 wmp.dll

    c. close the command prompt and check to see if the problem persists

    Method 3:

    Run the scan tool (SFC) System File Checker and check if it helps.

    How to use the tool File Checker system to troubleshoot missing or corrupted on Windows Vista system files: http://support.microsoft.com/kb/929833

    Hope the information is useful.

Maybe you are looking for

  • Removal of the HDR Photos?

    I shot photos on my iPhone 6 and HDR. They transferred to my iCloud account and the regular and HDR copy the two see the place. I deleted the photo HDR version on my Mac (iCloud library is on), but the HDR versions has not deleted from my iPhone. Why

  • LaserJet m1132 mfp: what is the best fully functional LASER JET MFP with YOSEMITE

    Hello I have a hp laserjet m1132 MFP print and copy works fine but scanning produce a white sheet looked all over the web, but it seems that this function is not supported by the mac os x 10.10.3 yosemite so I need to buy a new printer (all-in-one) c

  • How can I reinstall Solitaire in Windows Vista?

    I deleted my computer solitaire awhile back. Now, I want to come back. How can I download or reinstall of Vista Home Premium 32 - bit OS Solitaire? I just tried the following method: Control Panel, programs, turn Windows features on / off (disabled S

  • I am constantly getting Error 8007000 b what is the 'Fix '.

    Update security for Windows;    Vista SP1 and so on

  • 5 XW6200 beeps even if mboard replaced!

    I have a HP XW6200 that gives me 5 beeps to the power upward. Also 5 red flashes. The beeps and lights repeating to infinity. The boot doesn't get far enough to display anything on the screen. I am an experienced hardware engineer, but this problem i