Download LabVIEW Real-Time Module User Manual

Transcript
Chapter 6
Debugging Deterministic Applications
Using the Profile Window
The Profile window is a powerful tool for statistically analyzing how an
application uses execution time and memory. The Profile window displays
information that can identify the specific VIs or parts of VIs you need to
optimize. For example, if you notice that a particular subVI takes a long
time to execute, you can improve the performance of that VI. The Profile
window displays the performance information for all VIs in memory in an
interactive tabular format. From the Profile window, you can select the
type of information to gather and sort the information by category.
You also can monitor subVI performance within different VIs. Select
Tools»Advanced»Profile VIs to display the Profile window.
Note You must connect LabVIEW to an RT target while running the Profile window.
You must place a checkmark in the Profile Memory Usage checkbox
before starting a profiling session. Collecting information about VI
memory use adds a significant amount of overhead to VI execution, which
affects the accuracy of any timing statistics gathered during the profiling
session. Therefore, perform memory profiling separate from time profiling
to return an accurate profile.
Many of the options in the Profile window become available only after you
begin a profiling session. During a profiling session, you can take a
snapshot of the available data and save it to an ASCII spreadsheet file.
The timing measurements accumulate each time you run a VI. Refer to the
LabVIEW Performance and Memory Management Application Note for
information about using the Profile window.
Using the Real-Time System Manager (ETS Only)
The Real-Time System Manager displays details about VIs running on an
RT target and provides a dynamic display of the performance of the target.
You also can stop VIs and start idle VIs using the Real-Time System
Manager. Select Tools»Real-Time System Manager to open the
Real-Time System Manager. Refer to the LabVIEW Help, available by
selecting Help»VI, Function, & How-To Help, for information about
using the Real-Time System Manager.
Real-Time Module User Manual
6-2
ni.com