How do I determine if a VI is running in the runtime engine or LabView Development Environment?

Is there a function or VI that I can call that will tell me if the program is running in the LabVIEW Runtime Engine or if it is running in the LabVIEW developement Environment?  I am using LabView 8.5.
I have a menu item, File/Exit,  and I would like to call the Exit LabVIEW vi if running in the runtime engine when that item is selected.  However, in development, I don't want to shut down LabVIEW when I select that menu item.
Maybe there is a more appropriate way to exit the program.  However, I am looking for something elegant.  I'm sure I could find some other way to accomplish the same thing, but I'm looking for a clean way to do it.
Thanks

Here is a small VI with this exact function.
Attachments:
Is EXE.vi ‏9 KB

Similar Messages

  • How do you determine which programs or processes run following a reboot?

    How do you determine which programs or processes run following a reboot?  Also when you reboot Mac tries to reopen anything running before the reboot.  Is there any way to turn off that functionality?

    10.7 Lion
    dadpope wrote:
    How do you determine which programs or processes run following a reboot?
    Login items
    Follow the  instructions in this article.
    http://support.apple.com/kb/PH4333
    Also when you reboot Mac tries to reopen anything running before the reboot.  Is there any way to turn off that functionality?
    System Preferences > General
    Section: Number of recent items
    Uncheck the box for "Restore windows when quitting and re-opening apps".

  • Unable to shut down imac. dialogue - The Finder can't quit because some operations are still in progress. How do I determine what operations are still running?

    I have an iMac (Mid 2007) Intel with Mac OS Lion 10.7.4  For some reason I am unable to shut down my computer.  The dialogue box says The Finder can’t quit because some operations are still in progress. How do I determine what operations are still running?  I have no clue?  Obviously not a sophisticated user.

    Thank You!  Solved my problem.  Have a great week.

  • How do I find out what applications are running in the background

    I have a 2008 iMac with 2GB memory.  How do I find out what programs are running in the background?  I am going to buy a new iMac before the end of the year to replace this one.  When I looked at Activity Monitor it shows 1.8Gb used but doesn't tell all the programs running.

    open activity monitor [if it doesnt launch click winders>Activity Monitor]. then it'll show all proceses

  • How to use PXI-8532 in LabVIEW Development Environment?

    Hi,
    I want to know how to use PXI-8532 in LabVIEW Development Environment.
    I'm using
    1. Windows7 32bit
    2. LabVIEW Pro 2012 SP1 32bit
    3. NI-Industrial Communications for DeviceNet 2.3
    4. PXIe-1062Q
    5. PXIe-8135
    6. PXI-8532 *2 (Names are "dnet0" and "dnet1".)
    * Both PXI-8532 are installed in the same chassis (PXIe-1062Q).
    I want to construct the system that "dnet0" sends data, and "dnet1" receives it. The data type I want to use is an array of bools.
    I made VI (test.vi), but it does not work.
    Could you tell me the reason why my VI doesn't work correctly.
    Thank you so much for your help and time.
    Best Regards,
    volcanon2
    Attachments:
    test.vi ‏28 KB

    activeX

  • My macpro runs slow with or without internet on..... How can I find out if something is running in the background?

    my macpro runs slow with or without internet on..... How can I find out if something is running in the background?

    Please boot in safe mode and test. Still slow? If you connect to a wireless network, you may have to connect with Ethernet in safe mode.
    After testing, reboot as usual (not in safe mode.)
    Mac OS X: Starting up in Safe Mode

  • How do I build an executable w/o installing the runtime engine in the OS?

    Hello everyone
    I have developped an application with LabView 8.01 and build an executable for a customer, this works great, if I have administrator rights. But my customer don't have full administrator rights and they are not able to install the software (Runtime Engine). In LabView 6.0.1, to solve this problem we added the lvrt.dll and some support files directly to the application builder as support files and it worked without to install the runtime engine in the operating system.
    How can this be done in LabView 8.0.1 and which files are needed?
    I am thankfull for any advice.

    hi,
    you always need admin rights to install software.
    I think it's not possible in labVIEW 8.01 to install the runtime without admin rights.
    The costumer only has to  the runtime one time, so he should try to contact his system administrator.
    I've found no workaround for it.
    Best regards.
    Christoph Strasser
    AE/NIG

  • How does RAC determine which instance number to run on which node

    Good afternoon
    I am trying to script a process and I need to identify how RAC decides which node runs which instance. Is it the first one of the pair added to the cluster that runs node 1 or is there some other piece of information that I need to work this out
    This is on Redhat Linux with 10.2.0.3 for CRS, ASM and databases
    Cheers
    Peter

    Before "you" start an instance you set env variable ORACLE_SID. This identifies an instance. When you go into sqlplus and issue STARTUP, Oracle starts the instance named by the sid. Thus the instance running on the server is controlled by you. This changes as noted below.
    If you were using a non-Oracle tool to start instances, such as Veritas, then you would see it start the instance you coded into the tool. It would not randomly pick an instance. It looks in the Veritas config file and sees that you always want instance 1 on this node and instance 2 on that node.
    That said, you can make Oracle more random or "grid" like. 10g RAC done Oracle's way likes to bounce around between primary and secondary nodes. To see which instances are running on a node you can "ps -ef | grep pmon". Alternatively, use sqlplus to look in the database: view gv$instance gives you each instance name paired with the name of the host it is currently running on. There is one line of output per instance currently running.
    -Mark

  • How can you find out if another VI running on the same computer and how can you find out the name of that VI?

    Suppose that several VIs running simultaneously on the same computer. How can I find out the names of the running VIs, from another VI?
    If the already running VIs are clones of the same basic VI, open and run with the option "Prepare to call and forget", how can I find out the names and index of each clone? 

    I had an application where I spawned (= ran with Start Asynchronous Call) multiple (reentrant) copies of VIs, and would occasionally "lose control" of them.  I needed a way to find all VIs that were running "Top Level" and stop them (so I didn't have to log off from Windows).
    I used the Application Property "All VIs in Memory" to get an array of (wait for it ...) All VIs in Memory.  I took each name, opened a VI reference to it (simply wire the name string in, as the VI is, by definition, "in memory"), looked at its VI Execution State, and if it was Run Top Level, Invoked the FP.Close and Abort VI Methods.  [To prevent the VI that did all this from "committing Suicide", I compared the name string with the current Call Chain, and did nothing if there was a match].
    I think you could adopt this idea to do what you need.
    BS

  • Code to determine which jobs are being run in the database

    Hello
    I'm using Oracle 9
    If it is possible I would like to write an SQL statement that determines what DBMS_JOB's are stored and being run in the database.
    Thanks
    Doug

    you can try this code:
    SELECT r.sid,
           r.job,
           r.this_date,
           r.this_sec,
           SUBSTR(what,1,40) what
      FROM dba_jobs_running r,
                   dba_jobs j
    WHERE r.job = j.job;hope this helps.

  • How to detect any key pressed for program running in the background?

    Hi All,
    is it possible to detect when any key is pressed if a java program is not in the focus? For example, when I have a console based program I can write something like:
    System.in.read();
    and wait until any key is pressed. However, if I move the mouse away from the console and make any other window active, the console program "doesn't hear" anything. Ok, it's clear, of course, but how is it possible to make the program detect any keys pressed even if it's running in the background?
    Thanks a lot for any hints!

    qnx wrote:
    1) Stop trying to make spyware. -> I don't do anything like this!
    2) Stop re-posting the same questions. -> didn't know they are the same, sorry.
    3) Stop taking us for fools. -> what? Honestly, I don't think that I realy deserved this :)With a limited posting history and the type of questions you are asking they are unusual.
    There are very few legitimate problem domains that would require what you are asking about. There are illegitimate ones though. And the legitimate ones would generally require someone with quite a bit of programming experience and would also be required (the fact that java can't do it would not get rid of the requirement.)
    Thus one might make assumptions about your intentions.

  • How to prohibit the restart of the j2ee engine by a developer?

    Hello SDN,
    how could I prohibit a restart of the j2ee from the SAP NetWeaver Developer Studio by a developer?
    Thanks.
    Best Regards,
    Olaf Reiss

    Hi Olaf,
    If you have your Netweaver Server installed on a remote machine, then I think its not much of a problem; or if the case is that whoever developer you are talking about, accesses the portal and other Netweaver tools from a machine which is different than the server machine.
    If such is the case, then all you need to do is that your developer does not have rights to login into the server machine. He can restart the server only if he is allowed to login into that system.
    In an ideal scenario, the server should be installed on a dedicated machine.
    Bye
    Ankur
    Reward points if it helps!!

  • How to debug an application crash that only occurs within the executable and not in development?

    LabVIEW 2011
    Looking for ideas on how to debug an application that crashes only from within the executable.
    Is there anything useful that this error report can be used for, thanks in advance.
    #Date: Tue, Aug 23, 2011 3:10:18 PM
    #OSName: Windows 7 Enterprise
    #OSVers: 6.1
    #OSBuild: 7600
    #AppName: LabDAQ
    #Version: 11.0 32-bit
    #AppKind: AppLib
    #AppModDate: 08/23/2011 18:59 GMT
    #LabVIEW Base Address: 0x30000000
    8/23/2011 3:10:48.331 PM
    Crash 0x0: Crash caught by NIER
    File Unknown(0) : Crash: Crash caught by NIER
    minidump id: a1c0be18-ad05-4b09-b914-afe4a3073daf
    ExceptionCode: 0xC0000005± N
    0x3072C874 - lvrt <unknown> + 0
    0x3072CC28 - lvrt <unknown> + 0
    0x7C37FDB4 - MSVCR71 <unknown> + 0
    0x77330DF7 - ntdll <unknown> + 0
    0x772F9ED5 - ntdll <unknown> + 0
    0x00000000 - <unknown> <unknown> + 0
    Solved!
    Go to Solution.

    I've been playing that game all morning
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • How can I permanently stop Backup Asisstant from running in the background?

    Backup Asisstant plus is constantly running in the background of my phone. It is annoying and I can not even open it up under the "manage accounts" section of my phone. When I do this it just has the blue circle spinning forever and ever never openning up at all. Is there a way to fix this or am I just stuck battling this stupid app day after day. It came with the Verizon phone, but I had this before and customer service was able to stop it from running all the time. Now I get told there is nothing Verizon can do. So how can I stop this app permanently and why is there so much comflicting information coming from Verizon agents and its website? I cant seem to get a solid answer.

    I have a galaxy s3. The backup assistant just freezes my phone. It is always running in the background draining memory from my phone slowing it down. It is beyond annoying since even after a hard reset I can not even access the Backup Assistant + to manually change settings, so I would just like it to stay off. It has not helped me recover much in the way it was advertised.

  • How do you determine what version of PHP is on the cold fusion server

    I am trying to find out what version of PHP is on my cold
    fusion server, how do I do this? Does coldfusion come with
    PHP?

    In the C:\Windows folder, locate the file called php.ini and
    open it in Notepad.
    <?php phpinfo() ?>
    I answered it myself. Maybe it can help someone else.

Maybe you are looking for

  • Payroll issue regarding the Claims - /561 and /563

    Hi Payroll Experts, I have a payroll issue regarding the Claims - /561 and /563 (October PY Run) When i m runnning the Current month Payroll(October PY Run), Total Earning - total deductions are not matching with Net Pay. later i came to know that th

  • In Icloud how do I save a doc in both Word and Pages format?

    When I create a document with Pages ... how do I save it in Icloud in both the Pages format and Word format?

  • Creating a Directory Record

    I need to setup my cluster nodes I have the head node configured all looks good. I need to use server assistant - offline mode to create the directory record that will be discovered through dhcp. Every thing works fine until I get to the Directory Us

  • Can i recover some sms messages i just deleted by accident?

    today i deleted some messages between me and a friend and those messages ive had for years and had information i dearly need back now. i plug my iphone into the computer every night and usually close itunes right away so idk if it syncs or not. since

  • Need Help, Connect iPod To iTunes,

    Cannot connect my 8G iPod Nano to iTunes to download songs need help please. Any help please, Thanks.