How to Change The Priority of Main Application’s Thread

Changing the main application’s thread priority in Delphi and C++ Builder is easy. You can change the priority of the main application thread by the following codes:

(more…)

Written by admin on January 19th, 2008 with comments disabled.
Read more articles on Software.

Writing an Automatic Update Application

Providing automatic update feature is the most efficient way to provide software update for large user. You can still ask to the user to regularly check the new version of your software at your site, but providing automatic update is the easiest way in this internet era. Many automatic update methods are available, and here I present my simple but effective way to provide automatic update feature. (more…)

Written by admin on December 16th, 2007 with comments disabled.
Read more articles on Software.

Avoid “Socket send aborted” Error in Downloading Large File: Delphi and C++ Builder Trick Using NMHTTP (TNMHTTP), NMFTP (TNMFTP), and Indy Component

Writing download application using NMHTTP (TNMHTTP) or NMFTP (TNMFTP)  is very easy, but have you ever had an error message “socket send aborted” or the file transfer just terminated and you got a corrupted file? Here is the simple trick to solve it:

(more…)

Written by admin on December 16th, 2007 with comments disabled.
Read more articles on Software.

High Current Heavy Duty Inverter Design Idea

When you need a really high-current-heavy-duty inverter, which may take 1000 A current flowing through your primary transformer coil, what will you do for your design? I’m not experienced in high power design, and I don’t know what experts have done or what they will do in such design case, but I have an idea to use many parallel primary coils, and each coils is driven by a power MOSFET. Using many coils (in parallel) with many independent MOSFET drivers has some advantages: (more…)

Written by admin on October 25th, 2007 with no comments.
Read more articles on Hardware.

Modelling Simple Peak Follower Circuit In Digital Signal Processing

In electronic analog signal processing, detecting audio signal envelope can be done using very simple circuit shown in Figure 1. Modeling this circuit in digital audio processing is also very simple.

(more…)

Written by admin on October 24th, 2007 with no comments.
Read more articles on Hardware and Software.

Designing 4-20mA Current Loop Interface for Data Acquisition System

Introduction

In industrial environment, 4-20mA current loop standard is used to interface between equipments. The advantages of a current loop system is it’s inherent noise immunity, it’s ability to detect wiring fault, and it’s ability to provide power supply to the remote unit. This article present a basic design principles in designing current loop interface for data acquisition system. Figure 1 shows a typical configuration in current loop system.

(more…)

Written by admin on October 24th, 2007 with comments disabled.
Read more articles on Hardware.

Fast integer multiplication for substituting floating point operation in RGB to grayscale conversion

In writing real-time application, especially when working on large data, the execution speed can be improved by substituting floating point multiplication by integer operation.

(more…)

Written by admin on October 9th, 2007 with comments disabled.
Read more articles on Software.

Simple Trick for Making A Tuned Fast Delay Routine

In writing a PC (Personal Computer) software that directly access the hardware, sometimes we need a short delay routine for signal timing. If the duration is long enough, at least as long as the system’s real-time clock resolution, we usually use the following well-known algorithm (in C++):

(more…)

Written by admin on October 9th, 2007 with comments disabled.
Read more articles on Software.