Real-time execution trace toolkit to optimize the Labwindows/CVI code


I am trying to optimize a code in real-time in LabWindows/CVI by minimizing the time of each section of the code is taking and find bottlenecks in the code. I check this time using the real-time execution trace toolkit.

However, I just found it seems to be a constant error when you use the tool of real-time execution trace.

When I put the traceviewer 'start' and 'stop' right after the other, I get around shift schedule 9us. It seems that the CPU will in some "idle" after the start of the trace mode, or maybe it's the time of communication or something.

I'd appreciate it if someone could give me an idea of why this is happening. The time of real-time application window is very limited and I'm trying to minimize the time as much as possible. Even the United States 9 error is difficult to resell.

I used the following code:

TraceConfigure (1, 1, 0, 25000, NULL);
TraceStart ();
TraceStopAndSend (HOST_ADDRESS);

and there is a photo in the toolkit of real-time execution trace.

Thank you.

Generally, you might be better off picking off the clock at the beginning and end of what you want to track. RTETT my introduce overhead that becomes difficult to quantify... Which is what you probably already see. The debug mode will also implement a ton of overhead. Then... Destemming of the clock in release mode will probably give you you the best estimate.

Tags: NI Software

Similar Questions

  • Toolkit of Real Time Execution Trace functional limitation on targets NI Linux real time taken in charge

    We want to start by using the Toolbox in real-time to backtrace of memory allocation profile on a target of cRIO 9035 & 9039.

    The product information ( page has a note indicating that the Toolbox has limited functionality on real-time OR-Linux supported targets.

    However, I couldn't find any specific details about what are these limitations.

    If anyone can clarify which restrictions apply?

    Are there alternatives (party packages) that offer a feature more complete?

    Hello Jörn,

    Did some more research, the following limitationrs occur on targets LInux RTOS,

    -The Manager of memory when used on targets of Linux, saves only data for LabVIEW processes and threads, not the global memory of the systems.
    -Wait object are not recorded events
    -Trace buffer size cannot be changed
    -Timed loop pre-emption and reactivation of SRI events are not marked

    Hope that this information helps out you in addition,

    Kind regards


    Technical sales engineer

  • Execution trace toolkit Office accident 2009 windows 7?

    All successfully run 2009 desktop Execution Trace Toolkit in Windows 7 64 bit?

    I had labview 8.6 installed, upgraded to LV2009 (64-bit) and installed the trace resource kit.  I run, but completely lock up.

    Since then, I tried to install the client LV2009 (32 bit) and the Toolbox even trace.  Now the trace toolkit will crash before anything happen on the screen.  It is not even appear in the Explorer of MAX.

    Any guidance would be apprecieated. Thank you.

    For the follow-up of this...

    I had been running a DETT trial license since our License Manager has been out of country.  As soon as I was able to get a license of real it stopped crashing.  I'm under LV 32-bit on Windows 7 with DETT now with or without problem.  OR support was outstanding.

  • LV15 desktop Execution Trace Toolkit does not install it

    I've just updated / installed LabVIEW Developer Suite 2015, but the execution Trace Toolkit (DETT) erroneous office on and impossible to install.

    I tried to install the DETT later invited by OR updated, but suffered the same error.

    Any ideas?

    By the suggestion of OR and not knowing what was the underlying problem...

    Installation of the Toolkit download worked for me.

    Good luck.


  • Why the labwindows/cvi Installer runs whenever I try to start labview 7.1, after I installed N!-series?

    Why the labwindows/cvi Installer runs whenever I try to start labview 7.1, after I installed N!-series?  The installation program runs 3 times now and asks me to restart every time.  Then I reboot and it happens all over again when I try to start labview 7.1, unless I select Cancel 3 times in a row then labview starts.

    Thank you once again.  I am running.


  • Latest version of the LabVIEW Desktop Execution Trace Toolkit to support LV 8.6.1

    What is the new version of the Toolkit LabVIEW Desktop Execution Trace that supports LV 8.6.1.

    For some reason, I can't find any documentation that lists what version of the tool supports what version of LabVIEW.

    Thank you

    Issue of M.,.

    Looking through the documents Readme, it seems in fact that you can use anywhere from 1.0 for 2011 (included).

  • I have an installed with real-time PXI-8109 module. Displays the indicator USER1?

    Hi all

    I have an installed with real-time PXI-8109 module.

    USER1 indicator LED displays on the Panel?

    Thank you

    The LEDs of the user are the indicators that you can control programmatically if needed be.


  • in real time, take notes during classes with the stylus


    There was this other thread to pdf-annotation, but I need to know if the unit is really able to take handwritten notes without too much latency. I don't want to use any OCR because my main goal is to write mathematical stuff for classes which is a nice OCRable. He may also be involved, that then maybe a scetching software would be better suited as 'MyScript Notes mobile' design. And this must be done in good time before the teacher clean the Blackboard. So do you think this is possible with theThinkPad tablet?

    ThinkPad Tablet 32gig... and love it!

  • Error 0x800705b4 - microsoft security essentials - brochure-not able to activate real-time protection

    When I try to enable real-time protection in microsoft security databases the following error code appears 0x800705b4. If anyone can help? What am I, I guess what to do? My system is XP. Thank you.

    In these forums, you will find some support for Microsoft Security Essentials (MSE):


    Additional references may include:

    Checklist for installation of Microsoft Security Essentials

    Can I install Microsoft Security Essentials [or any other anti-virus/anti-spyware application] to clean my already infected computer?

  • Do we need the intermediate database if a single execution in real-time duplicate controls with the connector for Siebel Disqualification?

    Still confused:

    Do we need a staging database? We want only to perform real-time duplicate checks.

    Documentation (Guide to integration of Siebel, Oracle® Enterprise Data quality customer Data Service Pack, Version 9.0, April 2013) is not quite clear about this:

    "The staging database is used by the Siebel connector as a staging area for the transfer of data between Siebel and Disqualification when running batch through Data Quality Manager of Siebel." (p. 19)

    "The interface in real time of the Disqualification is also used for the batch cleaning tasks (normalization): Siebel sends each record selected for treatment to the Disqualification by batch cleaning web services." (p. 6)

    «Double the lot identification and quality of data health check jobs (either full or incremental batch) use interface batch Disqualification.» In this case, the candidate registers for correspondence or health checkups are written to the database shared staging, Disqualification executes a batch on these records and - if pairing - rewritten matches, Siebel picks up and uses to link together the records. "(p. 6)

    However, for a design it is necessary to plan in advance, if a database is required or not.

    Any suggestions?


    The staging database is used only for temporary storage where the interface between Siebel and Disqualification batch is used. It is not necessary at all if only using the interface in real time. Note that some of the 'batch' in Siebel tasks actually use the interface in real time - this applies to all data in batch cleaning jobs in Siebel and also for the workflow "UCM lot" which is in fact orchestrated by calling web services Disqualification.

    In general, the batch interface is only used where Disqualification is attached to Siebel CRM (instead of UCM). Because DQ Siebel lots do not call survival (so that you can only link to potential duplicates together).

    Note that the tables key used for the selection of the candidates belong to the Siebel database in the form of standard tables (S_DQ_CON_KEY and S_DQ_ACC_KEY). They are not in the database shared staging. The staging database is used ONLY for the data transfer for treatment in batches. It seems that you are not intending to use this interface.

    Also note that Disqualification still needs its own repository database, but if you use only a Disqualification in real-time (and not, for example, by using a Disqualification to batch migrate data in Siebel using the interface of the EIM), it should probably not push the database this hard.

    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.

  • Algorithm of PID in 'PID and Fuzzy Logic Toolkit' and 'real time Module ".

    Hi all

    I am recently using LabVIEW 2011 and 2011 real time Module. My application requires the PID control.

    Now, I have a problem. In the manual for "And Fuzzy Logic Toolkit PID", Chapter 2 "algorithm PID" it indicates non-interactive algorithm (also called the ideal algorithm, Standard or ISA) be used in all the screws of PID in the Toolbox. It seems that Yes from source code. However, in Chapter 3, "Using the PID software" arrays of calculation of PID parameters based on method of Ziegler-Nichols, which was developed for the interactive algorithm (also called the series, the real classic algorithm). D action has been included in the scheme of control, the settings may be different for the two algorithms. In fact, Cohen Coons and adjustment PID Lambda rules can be used for the algorithm used by the box tool with no conversion.

    In addition, there is a PID function block comes with the real time Module, and I know not what PID algorithm it uses. Can someone help me?

    Thank you in advance.


    In the "and Fuzzy Logic PID Toolkit, we use the University structure to implement all algorithms. Tuning techniques we show on the manual to express the original work and we try to keep the same as you would look at the literature. However, in our implementation of autotuning internally converted to the structure used by our algorithms to keep compatibility with our own implementation.

    If you use an external source, you can use the of Structure PID to change University, parallel or series of parameters in one used by our algorithm.

    The PID included with the real time module is a 'copy' of our algorithm, and they have the same settings and behavior. The only advantage to use this function block, you have access to the parameters through variables.

    Hope this helps...

  • iPhone download videos in real time with the company data?

    How to set up my iPhone 5 to download videos in real time on my iCloud account using the data of the company (and WiFi, too)?

    Alexander.Carpenter wrote:

    How to set up my iPhone 5 to download videos in real time on my iCloud account using the data of the company (and WiFi, too)?

    iCloud photo library - Apple Support only works when the two is connected to wifi, no cellular data.

    Read here's how it works.

  • 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.

  • cRIO and 9234 modules do not work or communicate via fpga with accelerometers, fpga, connected to the real-time application is also related to shared variables related to modbus slave


    I have a compact rio, which has a 4 way frame this chassis is the three modules of ni9234, they are related using FPGAs for application in real time, then using shared variables in the low-speed loop associated with a slave modbus to communicate with the domain controllers, the nor 9234 accelerometers linked to them with option ac coupled iepe on c modules , my problem is the real-time application seems to work well even when power loss occurs it restarts without problem and the fpga written hard disk portable bin files very well, but without an accelerometer connected I get readings of low noise as soon as I connect an accelerometer to one of the outputs 10 it just goes to a fixed number (0.03125) as soon as you unplug it again He returned to readout noise, I ran a scan on the modules and get only a spike when I connect or disconnect the accelerometer, I tested voltage at the pins on the module and I get 22 volts CC which makes it more likely that the material is not the problem, but software is perhaps the cause to hang up, I join the project and files for your perusal. I also realized a new project which, in mode directly linked scan has the module entry in the shared variable and the scenerio even once again. Help would be appretiated.

    Thank you very much


    Whren using waveform with the 9234 acquisition, we recommend the following FPGA and RT model.

    It can be extended as a datalogger with:

    or using shared variables combined with the analytical engine

    The FPGA in all this, as well as the framework of RT have used successfully by 1000s of users.  I recommend giving these a try.

Maybe you are looking for

  • iTunes does not recognize iPod Nano

    After updating iTunes to version, it can't find my iPod. It simply does not detect it. I tried solving the problems, and the iPod service is running. The iPod is old, but is ideal for listening to audio books. I've tried different USB ports

  • How can I fix Windows Installer?

    I am trying to challenge Itunes and uninstall Google SketchUp 8 and install Microsoft Word 2003 but each time Windows Installer disappears but Somtimes It Me give me a Report.Tell error how to fix

  • Driver for HP scanjet c7716a

    Hello looking for HP scanjet C7716A,. That seems difficult to find on the net can you help me to find it, I look everywhere

  • Driver audio IDT and Application + camera

    Hello I recently bought a HP Elitebook 840 G1 Product number: H5g26ea #abb Serial number: [redacted] OS: Windows 7 Professional 64-bit. It worked perfectly until I installed a dual boot (Ubuntu and Windows 7). I redefined the partitions, Win7 install

  • Find Smartphones don't blackBerry sent to 8330 sms messages

    I need to recover some messages, but when I go to view the folder, it only shows the oldest message and I can't find anyway to display the most recent. Any help would be greatly appreciated. Thank you