LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

plotting data

Dear All,

 

To plot my data I have tried two different methods: 1) one point at a time using PlotStripChartPoint(..) on a StripChart; 2) 10 points at a time by creating first a waveform and then plotting it using PlotStripChart(..) on a StripChart. I tried to plot my data inside a while_loop that must last 1 msec. Both plotting methods created problems because they delayed the while_loop.

 

I wonder whether anybody can suggest me a better (faster) way for plotting my data.

 

Thank you very much for your help.

 

proman

0 Kudos
Message 1 of 2
(2,854 Views)

Hi Proman,

 

I am afraid that you are way too optimistic: a refresh rate of 1000 plots per second seems too fast for me, whatever method you choose. Do you really need to refresh your graph every one millisecond? Or do you need to capture a data point every millisecond? Even the latter may not be guaranteed on regular Windows systems (no real time OS). One possibility to improve things might be to consider two threads, one responsible for data capture, and one for display. There is (at least) one example in the CVI distribution that might be of interest, BuffNodataLoss.

 

Wolfgang

0 Kudos
Message 2 of 2
(2,847 Views)