LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

PlotText

I'm using a Graph object on a panel and have broken the graph into "boxes" of 25 rows by 80 colums each of some pixel size - screen is 3/4 full using resolution of 1024x768.

Everything works fine, its just that plotting text to each of these "boxes" takes quite a while. I have found that if I hide the panel, then plot to the panel then display the panel again, it takes ~1/20 of the time. The side effect is that the panel blinks.

Is there a way to plot to a panel graph quickly, without hiding the panel 1st?

I even tried to duplicate the panel, hide the original, plot to the original, kill the new panel once done and unhide the original panel. Blinking went away but still took the original amount to time before any updates were seen.


Thanks for any help in advance.

rjmiller
0 Kudos
Message 1 of 3
(3,124 Views)
Have you tried SetCtrlAttribute(panel, graph, ATTR_REFRESH, 0) ; ?
Remeber to call RefreshGraph(panel, graph); when you are done drawing this uses a double buffering scheme that I think will solve your problem.
0 Kudos
Message 2 of 3
(3,117 Views)
RJ,

The Graph control has a number of preformance-related trade-offs that you should be aware of, in order to fine tune it to your application's needs. These tradeoffs affect speed, memory usage and UI responsiveness (such as flashing behavior). To find out more about this, I'd recommend reading the "Programming with Graph Controls" topic of the CVI online help, specifically the Performance section. A quick way to get to this info is to right-click on a graph in the UI editor, select "Control Help", and then click on the "Programming with..." link.

Luis
NI
0 Kudos
Message 3 of 3
(3,106 Views)