Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Measurement studio dll use too much memories

Hi, all.
I have a program that is plotting  over 600,000 points for a plot.
The performance is fine when points are under 100,000(about).
 
But input many points into one plot, it shows something problom like this.
- Process use too much memories. ( When invalidate, increace memory about 10MB)
- Process use too much CPU.
- When move the cursor and the CPU maxes out immediately. Then after 1 second the cursor moves.
 
The program shows wavefile dataChunk2 points. If the wave file size about 2.5MB, it has over 640,000 points.
I use below code when binding the points.
 
1. Use AnalogWaveForm
byte[] soundData; // it contains the sound data points.
AnalogWaveform<double> analogWaveForm = new AnalogWaveform<double>.FromArray1D( soundData );   waveformGraph.PlotWaveForm(analogWaveForm);
 
2. Use SingleToneInformation
SingleToneInformation sti = new SingleToneInformation( soundData ); // soundData type: byte[]
waveformGraph.PlotY(sti.GetInputSignal(),0,1);
I am using laptop
-Windows XP
-Visual Studio 2005
-Measurement studio 8.1.0.256
-Core2Duo 2.0Ghz / 2G ram / ATI radeon x1300
 
Is something problom in my code? or is it known ploblem?
please give me a advise..
 
ps. I can't speak English very well, so it has many stupid description. ^^;;
0 Kudos
Message 1 of 2
(3,308 Views)
Hello,

Your process is most likely slowing down simply due to the great number of data points.  600,000 can be a lot to handle.  I would recommend breaking your data up into smaller arrays, rather than storing all 600,000 data points in a single array.  You may also need to increase your stack size in Visual Studio in order to handle this many points.

To increase the rate at which your user interface updates, you may want to plot a smaller subset or condensed version of your data points.  600,000 is more than you can see anyways, so this might provide visual clarification as well.  I hope that helps.
Regards,


Marty H.
National Instruments
0 Kudos
Message 2 of 2
(3,278 Views)