Close the labview function in the discussion of the nugget

I was looking around some of the Darren chips that go the way of the return over the years, and I wanted to ask a question about one.

As the nuggets are so old, I thought that a new thread would be the best way to do it.

The nugget is about adding that some relatives of code to make sure that all of the VI stop correctly.

http://forums.NI.com/T5/LabVIEW/Darren-s-weekly-nugget-06-22-2009/TD-p/931158

I get the ideas behind it, and as it happens I'm already doing the same thing myself, but without using the LabView "Quit" function.

I make sure that I have closed all my sub VI before finishing with the 'closed group' invoke node.

I can see the value in following the narrow Panel with labview Quit, but more thought, I became more ill at ease.

My concern was that if there were two or more completely separate running on the same computer at the same time of labview applications

the function exit Labview stopped everyone, not just the one that the user wants to stop.

If close labview indeed close all running applications, so it is extremely dangerous to use it!

I have no way to test it, so I was wondering if anyone has had this experience, or can give an answer.

Bob wrote:

I can see the value in following the narrow Panel with labview Quit, but more thought, I became more ill at ease.

My concern was that if there were two or more completely separate running on the same computer at the same time of labview applications

the function exit Labview stopped everyone, not just the one that the user wants to stop.

Quit LabVIEW ends the current instance of LabVIEW.

If it is called from an executable LabVIEW only that one instance of the executable is closed. (Yes, you CAN open more than 1 instance of an exe if you know how) other instances of the same exe or any what other exe will not conduct.

Tags: NI Software

Similar Questions

  • Cannot close the dump imaq link to imaq in labview

    Hi there and thanks for opening up this post

    I'm still new in machine vision. I'm working on a project in Labview, but I am not able to connect to the session of vi IMAQ grab to close the session in the IMAQ vi... LabVIEW tells me that the two sons are of different data types: the first type is IMAQdx.ctl, the second is a class IMAQ.

    Can you help me?

    Thank you

    Hello

    It seems that you use close IMAQ but have IMAQdx screw everything else. NOR-IMAQdx and NOR-IMAQ separated driver API, it should be consistent with what set of screw you are using. Since you use IMAQdx, you just use the palette IMAQdx closing.

  • Close the HyperTerminal Application using LabVIEW

    I have a client who wants to LabVIEW to close the HyperTerminal Application automatically is the serial port open.

    It is easy to detect that the serial port is already in use.  I already have a popup that tells the operator to close any application communication because the port is already in use; However, they want to do it automatically.

    HyperTerminal is not taken support ActiveX, and they will not go to the version more professional who does.

    For a long time, I had read a thread where it was possible to close (or open)? and demand having no ActiveX support.  I expect to use similar approach...  Opening the app is simple, but closure is another story.  You need some sort of reference to this request to tell Windows that are to close.  The Win - XP operating system.

    Suggestions are welcome.

    R

    http://www.howtogeek.com/HOWTO/Windows/kill-processes-from-the-Windows-command-line/

    OR

    Taskkill (command line as well) http://technet.microsoft.com/en-us/library/bb491009.aspx

    Taskkill /IM hyperterm.exe

    kill hyperterm all windows open, BUT it will ask you if you want to close the sessions open, which I think that you do not want.

    Taskkill /F /IM hyperterm.exe

    voila (without chewing the com port, I just tried)

  • Do I have to close the 'context of the sequence' in Labview?

    Hello

    I pass the Teststand SequenceContext for Labview to access step.

    Now my question is: do I have to close the past SequenceContext-reference mentioning 'close' in Labview?

    Or this reference is automatically closed?

    Is it possible that the closure is NOT the reference takes memory?

    Thx for the help

    Hi OnlyOne,

    Any reference TestStand that you pass to your code as an input module will be automatically closed/released/managed by TestStand so you don't have to worry about the reference to the context of the sequence of your VI of closing.

  • can I move all functions to another monitor and still close the laptop without turning off the second monitor on a laptop

    can I move all functions to another monitor and still close the laptop without turning off the second monitor on a laptop

    You define 'Action close lid' to the 'status quo' instead of sleep or Shut down:
    Go to-> double click "Power Options" Control Panel-> 'Select a power plan' under your selected plan, click "Change plan settings"-> "Change plan", click on the blue link 'Change advanced power'-> in 'Advanced settings' tab expand "power buttons and lid"-> extend the action of the 'close' lid, set "on battery" and "Plugged in" to "Do nothing"-> click apply-> OK button

    Multiple monitors: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-Vista/multiple-monitors-frequently-asked-questions

    Set up multiple monitors
    http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-multiple-monitors

    Move windows between multiple monitors
    http://Windows.Microsoft.com/en-us/Windows-Vista/move-Windows-between-multiple-monitors

    Understanding multiple monitors
    http://Windows.Microsoft.com/en-us/Windows-Vista/understanding-multiple-monitors

  • JavaScript function to close the application

    Hi all, I did a very basic HTML5 form using WebWorks that allows users to fill out a load of options click on send (mailto, to send data to a database). This works well. However, after I sent the e-mail, the application is still open. Is it possible to close the application using javascript?

    you need this plugin:
    WebWorks plugin adds com.blackberry.app

    then, this function closed the application:
    BlackBerry.app.Exit)

    more info:

    https://developer.BlackBerry.com/HTML5/APIs/v2_2/BlackBerry.app.html#jbo1385148761859

  • How do I close the last tab when restore last session setting is turned on?

    There are times, when I have several tabs open at the same time, when I want to turn off the computer and would like to see these tabs next time when I run Firefox.
    However sometimes also would like to be able to close the last tab and with that 1) closing of Firefox 2) ' close the session' as when I restart Firefox, the default home page greets me, while restoring session last still in activity.

    This future change is good knowledge and bitter to acknowledge, but it was not what I was looking for. (In practice, I need something, that automaticaally a click that, when they are available and makes unavailable, when for example, I press Ctrl + W on the last tab.)
    I just realized, on my cell plu I made Facebook an app - tab, so I could close the last non-app-tab and exit firefox, and next time, the start page was there with the Facebook tab as well. I remember also, that in the pre-Firefox 4 (maybe) it was the default behavior, right?

    Also I was using this: https://addons.mozilla.org/hu/firefox/addon/session-manager/ but a new computer should come with a blank page, and also I forgot about it.

    Probably what I really need, is when I run Firefox, the start page will be always the first tab seen.

    Thanks anyway, and I take the responses 'not possible '.

    Edit: Actually the function of what I was looking for was available in the plugin I mentioned.

  • Cannot close the first with other (LH one end) tab open are closed.

    Cannot close the first tab (end of LH we) but others are closing. Indicator download on tab keeps indefinitely - running windows under all the tabs are functioning normally.
    Open another copy of Firefox allows all tabs to work normally in this copy

    If this does not work in mode without failure, then disable all extensions and then try to find out who is the cause by allowing both the problem reappears.

    • Choose "Disable all add-ons" on issues to troubleshoot Firefox in Safe Mode to set window to disable all extensions.
    • Close and restart Firefox after each change through "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')

    See Troubleshooting extensions and themes and problems of hardware acceleration to resolve common Firefox problems

  • Open and close the Panel the Subvi front

    Hi all

    Run LabVIEW 2011 on Windows 7 x 64.  I am trying to get a Subvi front to open from my main PC with the touch of a button, then close with a button press in the Subvi.  Here's the piece of my main FP who calls the VI and opens the FP

    Locations is defined in another loop and all loops are in a flat order.  I made this way because I want to start with the first press and not stop my main loop to run.  So I don't know if I can run in the same line as the event or not, I've moved the element to the left loop around a lot.  Anyway the VI of openness seems to work very well.

    The problem arises when you try to close the Subvi for the SECOND time.  The code is here:

    As I said, the first time I open and close the VI everything works as it should, hopefully.  Then, I am able to reopen but now 'empty' button does not work and I can't close the window or even to open the block diagram to probe anything.  I tried to understand this point for a while, any insite would be greatly appreciated!

    Thank you

    Found my problem, I had the wrong boolean on one of my other events.  If this seems to be a good way to open/close a Subvi if anyone is interested!

  • Close the reference (for a more specific class)

    I'm feeding a control reference to the node "to a more specific class.  When I finished, I understand that I have to close the order, but what I also close the reference that is the output of the node "to a more specific class?

    This is the same reference... There is no need to close the two.  And if you approve the automatic cleanup of references LabVIEW, you really do not need to close, as the references control must never be matched and will be automatically cleaned when your VI is inactive.

    For more information, here is a blog that just now, I wrote that talks about closing reference.

  • How to close the open window by Exec VI system automatically?

    Hello

    I use the Exec VI system to launch an exe that is built from a LabVIEW program. Operational system Exec VI, the window out of file exe and stays there even after all the tasks are completed. I have to close it manually each time. Anyone here know how to close the window of the exe file automatically when it's done?

    Thank you

    Jean

    If I understand the question you add a node to call at the end of your application to exit. As it runs as a stand-alone application or in LabVIEW there will be out or stop the execution. I have attached the VI that I use in my applications.

  • Close the Bluetooth Serial Port

    If anyone can offer advice regarding some serial Bluetooth using VISA ports near the fence.

    I establish a session series Bluetooth using the Bluetooth Radio software, then move to LabVIEW to control my device via Bluetooth - no problem.

    When I want to stop the connection, I use the command close the visa. When you use the WIDCOMM drivers, the Bluetooth connection is cut using this application.

    However, when I use a device that works the Bluesoleil drivers, the port is left open after the execution of the order closing the visa (and the command does not return an error).

    Everyone knows this?

    Thank you

    SSK

    Hi Ssk,

    I have looked into this for you and have been unable to find a prior occurrence of this behavior, many people have used this driver with LabVIEW without this problem.

    If all goes well a little more information can narrow down the cause.

    Can I ask:

    You use what version of LabVIEW.

    Have you tried several devices that use the Bluesoleil driver?  The behavior is repeatable with each of them?

    Have which devices you tested?

    What driver version are you using?  Have you tried to improve this?

    Thank you

    John

  • Should I close the reference?

    Hello

    I would ask... should I close the reference of the workbook in the following code?

    In fact, I have little idea whether to close a reference or not, because I thought that LabVIEW will automatically close all references after the execution.

    I also found that someone says that the activeX references must be closed on mine.

    Could someone correct my understanding of the closure of reference?

    In this case I'm fairly certain that cleaning screws will close these references, so I don't think that you should close your self.  One way, usually, I test this is I put the code in a while loop, or use the continuous run button.  It's basically the only time wherever I never use only and I have on small subVIs like that.  Then, I run my code over and over again and look at the Task Manager to see how much memory is using LabVIEW.exe.  After a few seconds if there is a leak of memory then memory will continue to increase.  If the memory goes up and down a bit, but overall does not continue to grow, then all the references that should be closed are closed.

    There is a white book NOR on the reference Server VI of closing which is exactly what you are doing, but has relevant information.

    http://www.NI.com/white-paper/14393/en

    And an exchange of views on this subject.

    https://lavag.org/topic/16443-closing-references-in-LabVIEW-new-documentation-published/

  • Close reference vi does not close the VI?

    Hello

    I run an application that has several sons look loaded dynamically. When running in interpreted while developing mode, I noticed that the wires do not close when I stop the main VI. To try to combat this, I got a deal of event:

    This does not help either. That's when I read in the Help menu on "close to reference" the following text:

    "When you create a refnum to a VI, LabVIEW support VI in memory. The VI remains in memory until you close the refnum and until the VI meets the following conditions: there is no other reference open to the referenced VI. The front of the VI is not open. The VI isn't a Subvi VI another in memory. The VI is not a member of a library to open a project. »

    The last part is my problem since the VI is still a member of the library opened in interpreted mode. Is it possible to force the closure of these threads without having to relaunch the project?

    Hi kgolden,

    If you use a property node with "FP-> Open", you can close your vi (connect false) to close your vi. If you hide your vi with this property, then the window handle is no longer valid and it works.

    Mike

  • iTunes has stopped working. A problem caused the blocking of the program works correctly. Windows will close the program and notify you if a solution is available

    Original title: the iTunes does not work

    every time I want to launch the iTunes, my computer shows "iTunes has stopped working.  A problem caused the blocking of the program works correctly. Windows will close the program and notify you if a solution is available.

    Hi Winston,

    Were there any changes made on the computer before the show?

    I suggest you refer to the article to fix the problems with iTunes:

    iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits unexpectedly, freezes, or launch issues

    http://support.Apple.com/kb/TS1717

    I suggest also refer to the link to support Apple iTunes:

    https://discussions.Apple.com/community/iTunes/itunes_for_windows

Maybe you are looking for