tag:blogger.com,1999:blog-88080902180422812892024-02-20T03:22:24.937-08:00Experience Sharing and TutorialThe blog share everything useful about electrical engineering and other useful contents.Dhidik Prastiyantohttp://www.blogger.com/profile/12220025241685184141noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-8808090218042281289.post-78223196212637522912009-05-26T03:48:00.000-07:002009-05-26T04:00:56.377-07:00How to solve out of memory<div id="content" class="group"><div id="content" class="group"> <div class="main"> <div class="snap_preview"><p><span style="font-weight: bold;"><span style="font-weight: bold;"></span></span>How to solve out of memory error article is copied from my other <a href="http://dhidik.wordpress.com/2009/03/02/how-to-solve-out-of-memory-error/">website</a> with some additional information in clossing paragraph. "Out of Memory” massage is very inconvenient problem. The error message “out of memory” often occurs when we open many applications in windows. The problem is often caused by insufficient desktop heap memory. Even your RAM is still enough, the problem “out of memory” still occurs because windows only allocate 3 MB. To increase the desktop heap memory please<br />1. Click Start, click run, type “regedit” enter<br />2. Go to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\SubSystems\Windows<br />We will see in “windows” contains long string</p> <p>%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,<strong>3072,512</strong> Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=winsrv:ConServerDllInitialization,2 ProfileControl=Off MaxRequestThreads=16</p> <p>On 32 bit, recommend to replace with these value<br />SharedSection=1024,<strong>4096,2048</strong> </p> <p>On 64 bit, recommend to replace with these value<br />SharedSection=1024,<strong>20480,2048</strong> </p> <p>We can also change with the greater value but i never try, i only try to change to this value on my XP SP2:<br />SharedSection=1024,<strong>4096,2048</strong> </p> <p>For Windows XP, To check the version whether 32 or 64 bit is:<br /> 1. Click Start, click Run, type winmsd.exe, and then enter<br /> 2. In system summary, see the processor<br />* If the value that corresponds to Processor starts with x86, the computer is running a 32-bit version of the Windows operating system.<br />* If the value that corresponds to Processor starts with ia64 or AMD64, the computer is running a 64-bit version of the Windows operating system.</p> <p>“Insufficient memory or could not read from specific memory” can be also caused by the VGA card especially when you work with 3D or video application (It often occurs in computer which has onboard VGA Card). The memory in this error message refers to VGA card memory. Windows could not define which memory cause the problem. How to solve this problem? We could check the new driver of our VGA Card in case there is any problem with the driver. If it does not solve the problem, the easy way is replace with better VGA Card.</p><p>We could also check whether the current application needs more RAM size. Before installation usualy we have the requirement to run the application properly. Perhaps our RAM is sufficient enough for the current opened application, but we should also check other application which is running together with this current application.<br /></p> <p>references:</p><p>http://dhidik.wordpress.com/<br />http://www.techarp.com/<br />http://www.tothepc.com/<br />www.cst.com</p></div></div></div></div>Dhidik Prastiyantohttp://www.blogger.com/profile/12220025241685184141noreply@blogger.com0tag:blogger.com,1999:blog-8808090218042281289.post-49656053002853212412009-05-25T22:39:00.000-07:002009-05-26T02:16:02.190-07:00Filter Design using Scilab<span style=";font-family:arial;font-size:100%;" ></span><span style=";font-family:arial;font-size:100%;" >Scilab is an open source software for numerical computation. The software could be download freely from </span><span style=";font-family:times new roman;font-size:100%;" ><a href="http://www.scilab.org/">scilab website</a></span><span style=";font-family:arial;font-size:100%;" >. AS open source software, we could participate to develop the library of this software.</span><span style=";font-family:times new roman;font-size:100%;" > </span><span style=";font-family:arial;font-size:100%;" >In this article i would like to explain how to design filter using signal processing tool in Scilab. As we know that base on frequency respon filter could be classified into:</span><p style="font-family:times new roman;"><span style="font-size:100%;">- Low Pass Filter (LPF): allow signal which as lower frequency than the cut off frequency.<br />- Band Pass FIlter (BPF): pass signal from cut off frequency fc1 to cut of frequency fc2<br />- High Pass Filter (HPF): admit the signal over the cut of frequency<br />- Band Rejection: reject signal starting from cut off frequency 1 to cut of frequency 2.<br /></span></p><p style="font-family:times new roman;"><span style="font-size:100%;">Filter coud be used to get the desired signal for example when EKG signal is disturbed by noise wich has lower frequensi signal.</span></p> <p style="font-family:times new roman;"><span style="font-size:100%;">The following will be simulated noise cancellation using generated signal. Original signal is sinusoidal signal 5 Hz for 4 seconds. The noise is sinusoidal signal 50 Hz which also has 4 seconds time.<br /></span></p><p style="font-family:times new roman;"><span style="font-size:100%;">t = 0:0.001:4<br />signal = sin(2*%pi*5*t);<br />noise = sin(2*%pi*50*t);<br />compound = signal + noise<br /></span></p> <p style="font-family:times new roman;"><span style="font-size:100%;">To seperate the signal from noise, we could use low pass filter. The important note is how to decide the cutt off frequency of the system. Using Scilab, we can use available technique to design the filter such as Butterworth, Chebisev and elliptic.</span></p><p style="font-family:times new roman;"><span style="font-size:100%;">Deciding the cut of frequency is very easy by looking at freuency of signal and noise. In this case we select the frequency beetween signal and noise. The normalization of 5Hz is 0.005 and 50 Hz is 0.05.</span></p> <p style="font-family:times new roman;"><span style="font-size:100%;">myfilter = iir(15,’lp’,'butt’,[0.025 0],[0 0]);</span></p> <p style="font-family:times new roman;"><span style="font-size:100%;">- The first parameter is filter order. We could use higher order filter but please remberber taht higher order filter increase the number of calculation iterations.<br />- Second parameter is filter type which lp= lowpass, hp=highpass, bp=bandpass.<br />- Third parameter is technique which is used to design. This example use Butterworth. It is also availabe other methods such as cheb1, chep2 dan ellip.<br />- Fourth parameter is cut of frequency in normalization form<br />- Fifth parameter is error vector whic is used only in chebisev and elliptic technique<br /></span></p> <p style="font-family:times new roman;"><span style="font-size:100%;">To apply filltering to the signal, we could write the following code:</span></p> <p style="font-family:times new roman;"><span style="font-size:100%;">output = flts(compound,myfilter);</span></p> <p style="font-family:times new roman;"><span style="font-size:100%;">Let we plot the input and output of this filter.<br /></span></p> <p style="font-family:times new roman;"><span style="font-size:100%;">xsetech([0,0,1,1/2])<br />plot2d(t,compound)<br />xtitle(’input signal’)<br />xsetech([0,1/2,1,1/2])<br />plot2d(t,output)<br />xtitle(’output signal’)</span></p> <p style="font-family:times new roman;"><span style="font-size:100%;">The script will show input signal and output signal of LPF which just been implemented.</span></p><span style=";font-family:arial;font-size:100%;" >written by:</span><span style=";font-family:times new roman;font-size:100%;" > </span><span style=";font-family:arial;font-size:100%;" >Dhidik Prastiyanto</span> <span style=";font-family:arial;font-size:100%;" ><br />reference:</span><span style=";font-family:times new roman;font-size:100%;" ><br /></span><span style=";font-family:arial;font-size:100%;" >1. Lecture Note by Dhidik Prastiyanto</span> <span style=";font-family:times new roman;font-size:100%;" > </span><span style=";font-family:arial;font-size:100%;" ><br />2. Introduction to signal Processing (Roman Kuc)</span><span style=";font-family:times new roman;font-size:100%;" ><br /></span><span style=";font-family:times new roman;font-size:100%;" ></span><span style=";font-family:arial;font-size:100%;" >3. http://dhidik.wordpress.com/2009/05/18/filter-design-dengan-scilab/</span><span style=";font-family:times new roman;font-size:100%;" ><br /></span><span style=";font-family:arial;font-size:100%;" >4. www.scilab.org</span><span style=";font-family:times new roman;font-size:100%;" > </span>Dhidik Prastiyantohttp://www.blogger.com/profile/12220025241685184141noreply@blogger.com4