Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I change (MFC-CNiGraph) the speed of pixel repainting?

How can I change (MFC-CNiGraph chart) the speed of pixel repainting(redraw) safely? I need to change the speed of pixel repainting. Do somebody any idea? Thank You very much. See ya. emta
0 Kudos
Message 1 of 2
(3,116 Views)
Emta -

If you are looking for how often the control is updated, it can be controlled using 'graph.immediate = false;' and 'graph.refresh;'.

If you are looking to control the actual speed of the drawing, the best way to handle this would be through the 'animate' property (Note: Animation applies to all Measurement Studio user interface Visual C++ controls except the numeric edit control and the 3D graph control).  In order to set the animation speed, you can do the following:
  1. Left-click the control, go to View»Property Pages, and click the Images tab.
  2. In the Images list box, select the portion of the control you want to animate.
  3. Select a File or URL for the bitmap image you want to animate on the control. Not all items in the Images section are available for animation.
  4. Enter the number of Rows and Columns that you want the control to divide the bitmap into. For example, enter 10 in Columns and 1 in Rows to divide the bitmap into 10 columns that the control cycles through at run time.
  5. If necessary, select Reverse to change the direction of the animation.
  6. In Animate, select the speed at which you want to animate the image.
Additionally, the Measurement Studio help page entitled 'Animating the Measurement Studio Visual C++ Controls' has a code snippet available to help you get started with setting the property programmatically.

I hope this helps in your development!

Andrew W.  || Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,097 Views)