Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How Can I Optimize the Performance of my Measurement Studio ActiveX Graphs?

Primary Software: Measurement Studio>>.NET Support
Primary Software Version: 8.1.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I'd like to make sure that my Measurement Studio ActiveX graphs are optimized for performance.  What steps can I take in order to ensure this?

Solution:
When it comes to the Measurement Studio ActiveX graph control, there are several tips and tricks that will help optimize performance:
  • Run user interface code, analysis code, and data acquisition code in separate threads.

  • Configure the graph to not immediately execute all pending paint requests to improve drawing performance. To configure this setting with the property pages, set Control refresh to Invalidation in the Graph property page (graph control) or set ImmediateUpdates to false in the All property page.

  • Configure the graph to exclude axes to improve drawing performance. To configure this setting with the property pages, deselect Visible for each of the axes defined in the Axes.

  • Adjust the Chart Style and Chart Length properties as well as the plotting and charting methods.  If you are using a ChartXY or ChartXvsY method, minimize the size of the chart history that each graph maintains. If you never need to scroll back through the data, you should reduce the chart history length to only what you want to display. If you are using ChartY, set the Chart history to automatic (Properties»Graph»Chart History).

  • Configure the graph control to use a 2D frame rather than a 3D frame to improve drawing performance. To configure this setting with the property pages, deselect 3D Frame in the Style property page.

  • Access graph plots via the Plot object instead of the Graph object.


Related Links:

Attachments:





Report Date: 11/09/2007
Last Updated: 11/15/2007
Document ID: 4F8EIB6X

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit