Quit the Application in real time

Is it possible to leave a real-time application of in the software (the exit() function reboots the system according to the documentation) without the system rebooting?

Thank you


The only safe way to complete a CVI RT application is to return from the function RTMain. If you are very deeply nested under RTMain when you want to complete the application, and it is not practical to place battery completely upward, then an option you have is to use setjmp/longjmp functions to jump up to RTMain.

If you do not skip a bunch of code of long jump, you must always be very careful in making sure you release/close all handles or other memory resources that your application may have acquired, before leaving. Unlike Windows, the RT process unique operating system and the process will continue to run after your application exits, so whatever you do in an invocation will persist.


Tags: NI Software

Similar Questions

  • Deploy an application in real time

    Hello, I want to create an application to deploy the application in real time (previously compiled) in a Compact RIO goal. My goal: a standard user could deploy the new application without LabVIEW Real-time... Will he something exists? Thank you

    Hello again,

    Even if you don't have a USB port, I posted the link because there are screws that could possibly be used.

    I also found that you can use the example of "Browser FTP" VI in order to copy files to your cRIO. The next step is to create an executable from this example.

    Kind regards

  • monitor thread on the system in real time

    I have a SMU-8101 controller in my PXI system. I have it running with a system of operating in real time. I inherited some software WHICH has been used on a program of LabWindows used on a PC with a Windows 7 operating system. The SOFTWARE seems to work OK. My problem is when I leave the program I get an ERROR of EXECUTION NOT DEADLY


    Source position thread ID unknown 0x000000EC

    Your CVI program ended on the target in real time. However, there still on the target in real time, the threads that are running or have already run the CVI code.

    Please check that your application cleans all its threads. Son left running after that your application can crash the target in real time when your application is unloaded.


    As I said I got the code and there is a lot of it. I am looking for a smart way to track down these threads. I was wondering if there are tools available that could help with this? Or any other suggestions on how to run these lines down?

    Hi DPearce,

    This article knowledge base has some information on why CmtDiscardThreadPool causes your program hang and gives some recommendations for fixing it.

  • Control of data using multiple thermocouples via indicators and the waveform in real-time

    I apologize in advance for this question is probably a bit simple but I'm all new to labview and the forum and could use some advice. I have a CompaqDAQ with two 9213 16 modules of track and I'm trying to read in 30 thermocouples in a waveform, but also display 30 indicators so I can mark each indicator with the thermocouple for real-time tracking. Each thermocouple corresponds to a specific location and it is essential that the interface has an accurate indication or a label for each of them. I wonder if there is an easy way to do this in addition to split the signal and have 30 thermometers on my diagram? Perhaps a table any? If I use a table to create 30 thermometers, the DAQ assistant automatically sorts the thermocouples according to ascending numerical order. For example, would be the indicators of first and second on my interface automatically assigned to channels a0 and a1 of the first module, or should I do it manually? Even for the waveform?  Thank you very much!

    PS - Do not know if this message had need of more details, but let me know if more information is needed, and I'll give you!

    I see that you use the DAQ Assistant to create your task.  Now I understand why you may have about labelling.  It is easy of the seller NOR spiel booting...  But in any case, you already have a task to the MAX instead of use the DAQ Assistant?  The interface is similar and there may be a step or two, but your end application will be more effective and you will have more options with your data and properties.  For example, I tried to update the names of physical channel in the DAQ Assistant installation program, that it let you do, but it propagates that change forward to waveform chart legend.  Also, I don't know any property for this dynamic data type node, although I never use it either.  I suggest the setting up of your task and channels, Max if you'd give it a go.

    Since I thought I didn't really takes you all the way with you help, I wrote another one.  It uses a cluster, even if it's a bit barbaric.  I thought that there was a more eloquent way to do by changing labels, but I could not it works as I had expected.

  • where the daqmx on real-time target files are stored?


    I'm working on an application that is embedded in a desktop RT target.  To make the system easier to maintain in the future, I would like to be able to generate a DAQmx task programmatically to the *.ini file exported from MAX.  In this way, users don't know what my code does to recalibrate the sensors or manage new material; they only know how to use MAX and where to store the files in config on the target.

    Where are the task daqmx, channel, and scale information stored on an RT target?  I have been through the files on the target you are looking for something that contains my task data but have found nothing, while dropping a node of system property in a VI running on the target will give a correct list of the tasks that I set up.  (The project that contains the aforementioned VI has no tasks in it IE: I do not import into the project.)

    Is there a utility that runs on the RT target that can generate a task at the time of the *.ini files exported?

    Thank you

    Exahustive keyword search led me to an answer on the forums.  I'll post here a brief summary in case someone else uses the same key words I.

    1 export the MAX configuration file

    2. write a VI that uses tools in the system palette to load the configuration on the target in real time.

    3 profit.

    In my case, the VI I wrote to download the config DAQmx also generates the configuration files for the screw on the side host and target, so everyone knows what is called tasks.

  • Browse the contents of the hard disk of the target in real time


    Is there an easy way to browse the content of the hard drive on a real-time target by using the file path control (or another type of control)?

    What I have in my application is a PC real-time desktop (running on PharLap) who has a Main.vi running on it. There are a few configuration files (for this VI) I want to be able to read and record to that would be stored on the hard drive of the target in real time. However, when the application runs and I hit the Browse button, it displays the contents of the Windows machine and not the machine in real time. Is there something I'm missing?

    Please note that I can send via FTP on the Windows computer to the target in real time and can interact with the drive of the target in real time without any problem.

    Thank you.


    If you LV 2013 actually use WebDAV screws thus:



  • The new Records real-time display

    I developed a CRM that is based on this post to a database of prospects.  The CRM index page performs a select query and displays a filtered recordset based on the SQL code.  This index page is updated every 30 seconds by an update of the Meta tag.  But I think there must be a more robust and efficient method.  Ideally, I would like to have a popup is displayed each time that the new record messages when clicked would reveal the details of the record.  And if such a robust method exists, which could better the overall updating of the data other than a Meta Refresh?  Any direction you can advise would be appreciated.

    Some of which can easily be done with JavaScript and a function that makes calls to ColdFusion AJAX to check new records, on a timer (30 seconds).  You can use WebSockets which offers the display in real time, but according to the rate of data change, which might be overkill.

    For example, look at how this site or Google followed new messages using AJAX. If you are connected to these forums, your avatar at the top of the screen may have a white number in an orange circle to the left of the avatar - stating that you have new messages or updates waiting for your attention.  If you have no messages or elements, the circle disappears.  While new messages or items arrive in your Inbox, reappears in the circle and the number will change.  This is done via AJAX requests that ask the service Inbox on a given time interval. In your application, you will need to decide what is the appropriate interval (or make a user setting which gives them options such as 30 seconds, 1 minute, 5 minutes, etc.).

    All this is done without refreshing the entire page (what does refresh Meta Tag).

  • Cannot use the calendar network unavailable or slow app. The application takes more time to load than expected.

    When you use iCloud on my iMac I get the message "network unavailable or slow. The application takes more time to load than expected. "This has been the case for several hours, but other applications I use (Mail, Contacts, Notes, reminders), all seem to work well.  The

    I have the same message when I try to load the reminders in iCloud. All other applications work correctly. This issue has been ongoing for about a month now.

    Have this problem on my work computer running Windows 7 SP1 Pro and Macbook Air late 2009 w / OS X 10.11

  • Able user to zoom in/out the image in real time the performance of façade?

    Well I have searched this and have developed empty. What I would do, is to have a picture of a diagram on the front panel and during execution of the VI user can somehow zoom in/out the image in real time.

    I know there is something that is called Zoomfactor that you instantiate a way in the block diagram, but that seems to zoom in on a picture of race prior to the program. The zoom is not in real time. There is no possibility of real user to zoom in/out with free will, using the Zoomfactor I see. (Sorry I forgot display name of the service). And I saw messages by a man named George Zou that seems to come with a VI which is closest to what I want, but I pulled the VI site seems not compatible with my computer (my rig is under XP with Labview 2013 currently). So, I was wondering if someone else had found other answers appropriate to my specifications?

    Use a structure of the event to change magnification during execution.

    You can even program your own shortcuts to the structure of the event, for example if the user clicks on a particular point on the picture and you read this coordinate on, and you zoom way at this point remains in the Center... There are many options to play with...

  • Taking the average of the data in real time

    Hi all experts!
    I am a new Member in labview. I have a "stupid" question that takes a lot of my time. Please help me.: mansad:
    The problem is that the way to take the average of the data in real time. For examples, firstly take averages of 100 samples and then then wait 100 samples and averaging them and so on...
    In any case, thank you very much! : manhappy:


    Maybe this will help you...

    Kind regards...

  • Can I download a background on the system in real time and run it?

    Hi, I would like to take advantage of some tools in the system in real time.

    I thought that I could download it by file transfer,

    and then did something like this in the system in real time.

    Probably it is not...

    However, there is other ways to achieve my thought in the system in real time?

    Do you mean the exe was built for windows, so that it is not allowed to run in time real system?


    I have to communicate between CompactRIO and servers through an ethernet cable...

    so... you write a program runs on the cRIO and bring it to your servers over TCP.

  • Install OR Vision on the system in real time


    I am trying to install NI Vision RT and NOR-IMAQ RT on my controller PXI-8108. However, I still get an error, there are unresolved dependencies and that some version of NIVISSVC is necessary.

    Does anyone know a solution to my problem?

    Is this problem related to the problem described in the knowledge base (Document ID: 46PK6PP6)?

    Some data from my host system:

    -LabVIEW 8.6.1

    -Measurement & Automation Explorer 4.6.1

    -NI Vision 8.6 (treatment of Image and Machine Vision, and Services)

    NOR-IMAQ 4.1

    OR-IMAQ I/O 2.2

    NOR-IMAQdx 3.2

    The PXI controller:

    PXI system (OR PXI-8108)


    -Chassis 1 (PXI-1042 (q)


    OR PXI-8432/4


    Thanks in advance for your help


    After installing Vision 9.0 and NOR-IMAQ 4.4 on my host, I had no more problems with the installation on the system in real time.

  • can't see changes to the photo in real time during editing


    When I edit photo it won't let me see the changes in real time, unless I turn down hardware acceleration. I tried the update of windows and even downloaded the drivers two charts, but no solution. I read may be due to software mcafee, but I do not use mcafee...

    Thank you.


    When I edit photo it won't let me see the changes in real time, unless I turn down hardware acceleration. I tried the update of windows and even downloaded the drivers two charts, but no solution. I read may be due to software mcafee, but I do not use mcafee...

    Thank you.

    If reducing the graphics hardware acceleration
    improves the issue... it's a strong indication that
    you have a problem with your video driver.

    Might be interesting to try to find the support Web site
    Mfg. of your video card for a Win update
    XP compatible video driver. Or... If your computer
    is a laptop... look for the support site for your computer
    Reference of the manufacturer.

    If you do not know the make and model of your
    Video adapter, see the documentation that
    supplied with the computer.

    Also you can find info on your video by driver
    go to Device Manager: you can launch
    By clicking Device Manager on... Start/run and
    type or copy / paste:
    And then press ENTER.

    Expand "Graphics cards" and right click
    the name of your graphics... then
    choose... Properties / tab pilot... FYI.

    You should find the make and model of your
    adapter display as well as the version of the driver.

    If the driver on the Web site is no longer
    current than you run...
    Download and install it. In addition, installation
    instructions that should be followed closely
    should be available on the support site.

    Once installed the new video driver... you
    can restore your full acceleration.

    Aslde the... If your editing functions have been
    working properly and suddenly changed... I am
    wondering if one of your Windows updates...
    updated your video driver.  Sometimes the new
    driver is not as functional as the one you have already

    System restore would have been an easy way
    to correct this, but maybe you could go to the device
    Manager and rolling toward the video driver earlier.

    (FWIW... it would be a good idea to create a system)
    Restore point before making the change)

    You can launch the Device Manager by going
    TO... Start/run and type or copy / paste
    And then press ENTER.

    * Proceed at your own risk *.

    Expand: Graphics cards
    Right-click on the name of the video card and
    in the menu choose... Properties / driver tab.
    Roll the button return to the version...

    (306546) HOW to: use the driver to restore roll back feature
    a previous Version of a device in Windows XP driver

    Windows XP - Vista - 7 - restore video drivers.
    Removal instructions

    How to roll back a faulty device driver
    for a Version prior to Windows XP, Vista and 7

    Good luck...

  • I want to hang the Tower up to my big screen and instead of using a keyboard, I bind a tablet that I can use as a keyboard and to manipulate objects on the screen in real time

    I am in the middle of do a remodeling and think about a furture upgrade my PC at home, I want to hang the Tower up to my big screen and instead of using a keyboard, I want to connect a tablet that I can use as a keyboard and to manipulate objects on the screen in real time. Is there a way to do this?

    (1) before the PC upgrade, please read the complete technical documents for all devices

    you want to go to upgrade

    (2) it is the first thing to do to make complete lists of materials you want to change.

    Compare specifications detaily, note important diference between many of the same features

    (3) for more information on some devices and materials, see link below


  • 5 Lightroom Develop module does not display the changes in real time - locks on original image

    After almost a year of using Lightroom 5 (Version 5.7.1) with no problem there now will not show changes/changes I do them in the main view of the magnifying glass.  The image on the film down changes.  The Navigator view darkens, once a change is made.  If I I have the active secondary monitor it will show the changes in real time (because of the quality of the secondary monior I do not use it for changes).  If I go back to the magnifying glass library display changes to develop module are shown.  I can also make do and discover tiem real changes in the Librrary module in the quick develop Panel. IF I come back to the develop Module updated (edited) image but more it is stuck on this image in the Loupe view.   I suspect strongly I accidentally made some key race in the error that created this situation, but I can't really pinpoint exactly when this problem occurred are contiguous 5 days ago.

    The problem persists with any image.  I tried several images - old and new.  The only software or any other change that I have introduced in the last 30 days was Piccure + 30 days ago.  I later have it removed as a precaution.  No change has resulted.  I took additional measures include 1) Reseting preferences (twice), 2) reinstall the software twice, the second time I deleted all the files of supported / presets except the current catalog and 3) I have used backup catalogs as well dating back to the period of time, well before the problem appeared.  I am running Windows 7 Professional with Service Pack 1, 64-bit OS

    Any suggestions greatly appreciated.  I feel like I'm under low on things to try.  Thanks - Jeff

    This could be caused by a defective monitor profile.

    As a diagnostic tool and possibly a temporary solution, try to set the monitor to sRGB profile.

    Go to control panel > color management and define the sRGB as the default profile.

    If this solves the problem, you should ideally calibrate your monitor with a standard material.

Maybe you are looking for