PID3633593
PID3633593
net/publication/308671984
LabVIEW modeling and simulation, of the low-pass and high-pass analog filters
CITATIONS READS
8 3,850
2 authors, including:
Bogdan Mihai
Lucian Blaga University of Sibiu
29 PUBLICATIONS 136 CITATIONS
SEE PROFILE
All content following this page was uploaded by Bogdan Mihai on 04 November 2017.
The differential equations that describe the behavior of the III. SETING THE MATHEMATICAL MODEL OF THE RC
RC low-pass filter, are the following: HIGH-PASS ANALOG FILTERS
⎧u in (t ) = R ⋅ i( t ) + u c ( t ) In order to establish the system of differential equations that
⎪
⎨ du c ( t ) (1) characterize the functioning RC high pass filter, proceed
⎪⎩i( t ) = C dt similarly to the aforementioned case.
where: The structure of the " Γ " of such a filter is shown in the figure
- i (t) is the current set through the branch circuit made up below :
of R and capacitor C, when at the entry terminals is applied of
the voltage uin(t);
- uc (t) is the voltage across the capacitor C.
Notice that: u c ( t ) = u ies ( t ) .
The system of differential equations shown above, describe
mathematically, the behaviour of RC low-pass filter. Fig. 2. The RC high-pass filter
⎧dt → Δt
The finite values, ⎨ (2) According to the circuit shown in this figure , we can write
⎩du c ( t ) → Δu c ( t ) equations:
After making the regular processing, to get to the next form ⎧u in (t ) = u c (t ) + uies (t )
of expression of the output voltage of the RC low-pass filter: ⎪
⎪ duc (t ) (9)
u (t) u (0 ) ⎨i(t ) = C
u c ( t ) = in + c (3) ⎪ dt
R ⋅C Δt
1+ 1+ ⎪⎩u ies (t ) = R ⋅ i(t )
Δt R ⋅C
Where: Turning to finite values as shown below :
Δu c ( t ) = u c ( t ) − u c ( t 0 ) , (4) ⎧du c (t ) → u c (t ) − u C (t 0 ) (10)
⎨
Δ t = t − t0 ⎩dt → Δt = t − t 0
Within the simulation program, due to restrictions imposed and performing the necessary processing , arrive at the
by the LabVIEW programming language, relationship (3) was following form of expression fully describing the behavior
used in the form: relations RC high-pass filter in the time domain :
Uc = Ui/(1 + R * C/dt) + Uc0/(1+ dt/(R * C)) (5) ⎧ uin (t ) u (t )
Initial conditions were set out as follows: Uc0(t=0)=0 at the ⎪⎪uc (t ) = R ⋅C
+ c 0
Δt (11)
⎨ 1+ 1+
time of the initial time t=0, i.e. the capacitor is completely Δ t R ⋅ C
⎪
discharged at the application of the input voltage. ⎪⎩uies (t ) = uin (t ) − uc (t )
In order to plot the frequency characteristics of RC low-
The initial conditions for this system are: uc ( t = 0) = 0 and
pass filter, for added convenience, it was called the method of
uies (t = 0) = 0 .
complex numbers representation, of the electrical quantities.
Within the simulation program, due to restrictions imposed by
Thus, for the electrical circuit shown in Figure 1, are valid the
the LabVIEW programming language, relationship (11) was
next relationships:
used in the form:
⎧ U in
⎧Uc = Ui/(1 + R * C/dt) + Uc0/(1 + dt/(R * C)) (12)
⎪I = ⎨
⎨ R − j⋅ Xc (6)
⎪U = I ⋅ (− j ⋅ X ) ⎩Ue = Ui - Uc
⎩ ies c
In order to plot the frequency characteristics of RC high-
pass filter, for added convenience, it was called the method of
complex numbers representation of the electrical quantities.
Thus, for the electrical circuit shown in Figure 2, are valid the
next relationships:
⎧ U in
⎪I = (13)
⎨ R − j ⋅ Xc
⎪U = I ⋅ R
⎩ ies
which results in :
U ies R 1 (14)
H ( j ⋅ ω ) = Au = = =
U in R − j ⋅ Xc Xc
1− j
R
Fig. 3.The Front Panel of the RC low-pass and high-pass filter
Relationships (12) and (14) have led to the implementation
of the LabVIEW simulation programme, of the RC low-pass
The main program consists of a main While loop. Within
filter operation.
this loop is observed a Case structure containing two sub
diagrame, corresponding to the two types of filters (RC low-
IV. IMPLEMENTATION IN LABVIEW OF VIRTUAL INSTRUMENT
TO STUDY ELECTRICAL FILTERS
pass filters and RC high-pass filters), and another Case
structure which selects the image containing the current filter
In order to simulate the RC low pass filter and the RC high circuit. Either sub diagrame contained in the main Case
pass filter, was implemented a LabView simulation program. structure contains a structure consisting of two sequential
The front panel of virtual instrument for simulation of the
frames: one frame for the calculation of the voltage uc(t) and
RC low pass filters and the RC high pass filters, looks like the
one frame for the determination the module and phase of the
Fig. 3. The block diagram of the program is shown in Fig. 4.
transfer function in the frequency domain.
REFERENCES
[1] Bogdan, M., “Virtual instrument, for frequency measurement and
spectral analysis”, Journal of Electrical and Electronics Engineering
Fig. 5. The routine for determining module and phase for RC low-pass filter ISSN/ EISSN: 18446035 20672128 Year: 2011 Volume: 4 Issue: 1
Pages: 19-22
Appropriate routine for calculation of the output voltage in [2] Bogdan, M., “Virtual signal generator using the NI-USB 6008 data
acquisition”, Nonconventional Technologies Review, Volume XVII, Nr.
the time domain is shown in the image below. 2/2013, ISSN 1454-3087, p.5-8, June, 2013.
[3] Bogdan, M., “Sampling rate and aliasing on a virtual laboratory”,
Journal of Electrical and Electronics Engineering, Vol.2, Nr.2, 2009,
ISSN 1844-6035, University of Oradea Publisher, 2009.
[4] Sweta Triphaty – „Analisys of Digital IIR Filter Using LabView”,
Departament of Electrical and Instrumentation Engineering, Thapar
University, 2010.
[5] Bogdan, M., “Virtual home alarm system with NI myDAQ and
LabVIEW”, Nonconventional Technologies Review, Volume XVII, Nr.
2/2013, ISSN 1454-3087, p.9-12, June, 2013.
[6] Mitran, R., Bogdan, M., Bechet, P., A Novel Algorithm for Frequency
Hopping Detection, International Journal of Research and Reviews in
Computer Science, (IJRRCS) Vol. 2, No. 2, April 2011, ISSN: 2076-
0930.
[7] Sheenu Thapar, Parminder Kaur, Neha Aggarwal, “A Low Pass FIR
Filter Design Using Genetic Algorithm Based Artificial Neural
Network”, International Journal of Computer Technology and
[8] Bogdan M., “Using NI USB-6008 DAQ device, for frequency and
spectral measurement”, Acta Universitatis Cibiniensis-Technical series,
Vol. LXI, ISSN 1583-7149, Sibiu, 2010.
[9] Rahman Jamal, Mike Cerna, John Hanks, “Designing Filters Using the
Digital Filter Design Toolkit”, Application note-097, National
Instruments, 1996.
[10] Bogdan, M., Measurement experiment, using NI USB-6008 data
acquisition, Journal of Electrical and Electronics Engineering, Vol.2,
Nr.1, 2009, ISSN 1844-6035, University of Oradea Publisher, 2009.
Fig. 6. The routine for determining the output voltage of the high-pass RC- [11] Bogdan M., “Using NI USB-6008 DAQ device, for frequency and
filter spectral measurement”, Acta Universitatis Cibiniensis-Technical series,
Vol. LXI, ISSN 1583-7149, Sibiu, 2010.