Chapter 1 · 8 hours
Introduction to Discrete Time Control System
IOE past exam questions
Past questions and answers
32 questions set from this chapter, 11 of them more than once. Most asked first.
- Asked 9 times
- 2082 Kartik · 6 marks
- 2080 Chaitra · 6 marks
- 2079 Chaitra · 8 marks
- 2078 Chaitra · 6 marks
- 2077 Chaitra · 8 marks
- 2076 Bhadra · 8 marks
- 2073 Magh · 8 marks
- 2072 Asoj · 8 marks
- 2071 Bhadra · 6 marks
With the help of discrete time control system block diagram, explain the process of data acquisition, conversion and distribution system applied in discrete time system.
Answer
A discrete time (digital) control system takes analog signals from the plant, converts them to numbers (data acquisition and conversion), processes them in a computer, and sends the result back to the plant as analog signals (data distribution).
Block diagram
DATA ACQUISITION
Sensor -> Amp -> LPF --+
Sensor -> Amp -> LPF --+--> Analog --> S/H --> A/D
Sensor -> Amp -> LPF --+ MUX |
v
Digital
computer
DATA DISTRIBUTION |
Actuator <- Hold <--+ v
Actuator <- Hold <--+-- Demux <-- D/A <-- Register
Data acquisition
The data acquisition system collects analog signals from many points of the plant and prepares them for conversion.
- Transducer/sensor: converts the physical variable (temperature, speed, pressure, position) into a voltage or current.
- Amplifier: raises the low-level sensor signal to the range of the A/D converter (e.g. 0 to 10 V) and gives isolation.
- Low-pass (anti-aliasing) filter: removes high-frequency noise so that the signal is band-limited below half the sampling frequency, avoiding aliasing.
- Analog multiplexer: a set of electronic switches that connects one of many analog channels at a time to the single S/H and A/D, so one converter serves many inputs (time sharing).
Data conversion
- Sample-and-hold (S/H): takes the sample of the selected signal at the sampling instant and holds it constant while conversion takes place.
- A/D converter: quantizes the held voltage and codes it into an n-bit binary number. The computer reads this number.
- Digital computer/controller: compares the measured values with the set points and computes the control action using the control algorithm (PID, lead/lag, state feedback).
Data distribution
- Register/D/A converter: the output word is latched in a register and converted into an analog voltage by the D/A converter.
- Demultiplexer: routes the D/A output to the correct output channel; a single D/A can serve many actuators.
- Hold circuit (ZOH): keeps each channel's output constant between updates, producing a staircase signal.
- Actuator: (motor, valve, heater driver) applies the control action to the plant.
Timing
A clock (timer) gives the sampling period . In each period the computer selects a channel, samples, converts, computes, and updates the outputs. The whole cycle must finish within .
Example: in a boiler, temperature, pressure and level sensors feed one multiplexer and one 12-bit ADC; the computer computes valve openings and sends them through a D/A converter and demultiplexer to the fuel and feed-water valves.
- Asked 4 times
- 2075 Bhadra · 4 marks
- 2073 Bhadra · 6 marks
- 2071 Magh · 8 marks
- 2067 Mangsir · 10 marks
Explain digital control system along with the functions of each block.
Answer
A digital control system is a feedback control system in which a digital computer (microprocessor, microcontroller or PLC) acts as the controller. The plant is continuous, so signals are converted between analog and digital forms at the controller's input and output.
Block diagram
r(kT) -->(+)--> Digital --> D/A --> Hold
^ - computer (ZOH)
| |
| v
A/D Actuator
^ |
| v
S/H Plant ---> y(t)
^ |
+-------- Sensor <-----------+
Function of each block
| Block | Function |
|---|---|
| Sensor/transducer | Measures the plant output and converts it to an electrical signal |
| Sample-and-hold (S/H) | Samples the analog signal every s and holds it during conversion |
| A/D converter | Quantizes and codes the held value into a binary number |
| Digital computer | Compares with the reference and computes the control signal by the algorithm |
| D/A converter | Converts the computed binary number into an analog voltage |
| Hold (ZOH) | Keeps the output constant between sampling instants (staircase signal) |
| Actuator | Amplifies the signal and drives the plant (motor, valve) |
| Plant | The physical process being controlled |
| Clock | Fixes the sampling period and synchronises S/H, A/D and D/A |
Working
- The output is measured by the sensor and gives an analog signal.
- The S/H samples it at and the A/D converts it into a digital number .
- The computer forms the error and solves a difference equation, for example the PID law .
- The D/A converter and ZOH turn into a piecewise-constant analog signal .
- The actuator applies to the plant, and the cycle repeats every sampling period.
Types of signals in the loop
- Continuous-time analog: plant output, actuator input.
- Sampled-data (discrete-time analog): S/H output.
- Digital (quantized and coded): inside the computer.
Main features
- The controller is a program, so the control law can be changed easily.
- One computer can handle many loops by multiplexing.
- The sampling period must be small compared with the plant time constants (normally 8 to 10 samples per cycle of the damped oscillation) to give good performance.
- Quantization and sampling introduce small errors and delays that must be considered in design.
Example: in a DC motor speed control, a tachogenerator measures speed, a microcontroller with built-in ADC runs a PI algorithm, and a PWM output (acting as D/A plus hold) drives the motor through a power amplifier.
- Asked 4 times
- 2081 Chaitra · 4 marks
- 2080 Chaitra · 6 marks
- 2070 Magh · 8 marks
- 2067 Mangsir · 6 marks
Show that the transfer function of zero order hold circuit is given by Gₕ₀(s)=(1-e⁻ᵀˢ)/s.
Answer
A zero order hold (ZOH) holds each sample value constant until the next sample arrives. Its output is a staircase signal. Its transfer function is found from its impulse response.
Impulse response
Apply a unit impulse (sample of strength 1 at ). The ZOH holds this value for one sampling period and then drops to zero:
g(t)
1 |------+
| |
| |
0 +------+---------> t
0 T
This rectangular pulse is the difference of two unit steps:
Laplace transform
Using and the time-shift theorem :
which is the required result.
General input
For an impulse-sampled input , the output is , whose Laplace transform is , confirming the same transfer function.
Frequency response (for reference)
Putting : , so the ZOH is a low-pass filter with a phase lag of (a delay of half a sampling period).
- Asked 3 times
- 2082 Chaitra (new course) · 5 marks
- 2075 Baisakh · 8 marks
- 2068 Magh · 6+4 marks
With the help of block diagram, explain digital control system in detail. Also mention the advantages of digital control system over analog.
Answer
A digital control system is a closed-loop system in which a digital computer acts as the controller. The plant is analog, so the system contains A/D and D/A interfaces, and the controller works only at sampling instants .
Block diagram
r(kT) -->(+)--> Digital --> D/A --> Hold
^ - computer (ZOH)
| |
| v
A/D Actuator
^ |
| v
S/H Plant ---> y(t)
^ |
+-------- Sensor <-----------+
Explanation of blocks
- Sensor (transducer): measures the controlled variable (speed, temperature) and gives an analog voltage.
- Sample-and-hold (S/H): samples the sensor signal every seconds and holds the value steady while it is converted.
- A/D converter: quantizes the held value into one of levels and codes it as an n-bit binary word.
- Digital computer: reads the digital value, compares it with the reference and computes the control output from a difference equation (e.g. PID or lead compensator).
- D/A converter: converts the binary output into an analog voltage.
- Hold circuit (ZOH): keeps the D/A output constant between updates, giving a staircase signal .
- Actuator: power amplifier, motor or valve that applies the control effort to the plant.
- Plant: the continuous process whose output is controlled.
- Clock: generates the sampling instants and keeps S/H, A/D, computer and D/A in step.
Operation
Every sampling period: sample, convert, compute, output, hold. Between samples the plant runs open-loop with the held input. If the sampling period is small compared with the plant's time constants (8 to 10 samples per cycle of oscillation), the system behaves almost like a continuous one.
Signal types in the loop
- Continuous analog: , .
- Sampled (discrete-time) analog: S/H output.
- Digital (quantized and coded): inside the computer.
Advantages of digital control over analog control
- Flexibility: the control law is software; it can be changed (P to PID, new gains) without rewiring hardware.
- Accuracy and repeatability: digital values do not drift with temperature, ageing or component tolerance.
- Noise immunity: binary signals are far less affected by noise and interference than analog voltages.
- Complex control laws: nonlinear, adaptive, optimal and self-tuning control are easy to code but very hard to build with op-amps.
- Time sharing: one computer can control many loops through multiplexing, reducing cost per loop.
- Data handling: easy storage, logging, display, alarms and communication over networks (SCADA, DCS).
- Lower cost and size: cheap microcontrollers replace bulky analog hardware.
- Reliability and diagnostics: self-checking and fault detection are built into software.
Limitations (for balance)
- Sampling and the ZOH add phase lag, which can reduce stability if is large.
- Quantization adds a small error (noise).
- Needs A/D and D/A interfaces and software design effort.
Example: a CNC machine tool uses a microcontroller to read encoders, run a PID position loop at 1 kHz, and drive the axis motors through PWM amplifiers.
- Asked 3 times
- 2074 Bhadra · 4 marks
- 2071 Bhadra · 4 marks
- 2070 Magh · 4 marks
What are the advantages of digital control system over analog control system?
Answer
A digital control system uses a computer or microcontroller as the controller. Compared with an analog (op-amp/RC) controller it has these advantages:
- Flexibility: the control law is a program. Gains or the whole algorithm can be changed by software, without changing hardware.
- Accuracy and stability of parameters: digital values do not drift with temperature, ageing or component tolerance, so performance stays repeatable.
- Noise immunity: binary signals are much less affected by noise and interference than low-level analog voltages.
- Complex control: nonlinear, adaptive, optimal, self-tuning and logic-based control are easy to code but hard or impossible with analog circuits.
- Time sharing: one processor can control many loops through multiplexing, lowering cost per loop.
- Data storage and communication: values can be logged, displayed, trended and sent over networks (SCADA, IoT); supervisory control is easy.
- Cost, size and weight: cheap microcontrollers replace bulky analog hardware.
- Reliability and diagnostics: self-tests, alarms and fault detection can be built into the software.
- Wide dynamic range: limited only by word length, not by supply voltage.
Example: changing a furnace controller from PI to PID needs only new code and new gains in a digital controller, but needs new components and recalibration in an analog one.
- Asked 3 times
- 2082 Chaitra (new course) · 3 marks
- 2075 Bhadra · 8 marks
- 2071 Magh · 8 marks
What do you mean by sample and hold circuit? Explain how tracking and hold mode are employed in digital control system.
Answer
A sample-and-hold (S/H) circuit takes the value of an analog signal at a sampling instant and holds it constant for the time needed by the A/D converter to convert it. Without S/H, the input could change during conversion and give a wrong digital output.
Circuit
Switch S
Vin --[Buf A1]--o/ o--+--[Buf A2]--> Vout
|
=== C (hold capacitor)
|
GND
Control (sample/hold) drives switch S
- A1: input buffer with low output impedance, so C charges quickly.
- S: electronic switch (FET/MOSFET) driven by the control (logic) signal.
- C: hold capacitor that stores the voltage.
- A2: output buffer with very high input impedance, so C does not discharge.
Tracking (sample) mode
- The control signal closes the switch.
- C charges through A1, and the output follows (tracks) the input: .
- The time needed for the output to reach the input within the stated accuracy is the acquisition time.
Hold mode
- The control signal opens the switch at the sampling instant.
- C keeps the voltage it had at that instant. A2 draws almost no current, so stays constant.
- The A/D converter converts this steady voltage during the hold period.
Vin /\ /\
/ \ / \
Vout __|‾‾|__|‾‾|__ (track | hold | track | hold)
Ctrl T H T H
Use in digital control
- At each sampling instant the controller switches the S/H to hold, and starts the ADC.
- After conversion it returns the S/H to track mode to follow the signal until the next instant.
- In a multichannel data acquisition system one S/H after the multiplexer holds each channel in turn; at the output, hold circuits (ZOH) keep each D/A output constant between updates.
Important non-ideal terms
- Aperture time: delay between the hold command and the switch actually opening.
- Droop: slow fall of the held voltage due to leakage current, .
- Feedthrough: small part of the input appearing at the output during hold.
Mathematically, the S/H acts as an ideal sampler followed by a zero order hold, .
- Asked 3 times
- 2081 Chaitra · 4 marks
- 2074 Bhadra · 4 marks
- 2068 Magh · 6 marks
Compare different types of sampling operations used for sampling of continuous time signal.
Answer
Sampling converts a continuous-time signal into a sequence of values (pulses) taken at certain instants. Sampling operations are classified by how the sampling instants are chosen.
Types
- Periodic (conventional) sampling: samples taken at equal intervals . Most common; gives simple difference equations and the z-transform.
- Multiple-order sampling: the pattern of sampling instants repeats periodically, i.e. is constant, but spacing within a pattern is not equal.
- Multiple-rate sampling: different loops or signals are sampled at different periods, e.g. a fast inner current loop and a slow outer speed loop.
- Random sampling: instants are random, e.g. event-driven systems or networked control with random delays. Hard to analyse.
Comparison
| Feature | Periodic | Multiple-order | Multiple-rate | Random |
|---|---|---|---|---|
| Sampling instants | , equal spacing | Pattern repeats with period | Different for different signals | Random |
| Analysis tool | z-transform | Modified methods | Multirate z-transform | Statistical |
| Hardware | Simple, one clock | Moderate | Several clocks | Event logic |
| Use | Most digital controllers | Special systems | Cascade loops with fast and slow parts | Networks, events |
| Ease of design | Easiest | Harder | Harder | Hardest |
Sampling by pulse shape (also asked)
| Ideal (impulse) sampling | Natural sampling | Flat-top sampling |
|---|---|---|
| Train of impulses of strength | Pulses of width follow the signal shape | Pulses of width with constant height |
| Mathematical model | Switch closed for | Practical S/H output |
In digital control, periodic flat-top sampling (S/H) is used in practice, and it is modelled as ideal impulse sampling followed by a zero order hold.
- Asked 3 times
- 2082 Chaitra · 8 marks
- 2076 Bhadra · 8 marks
- 2068 Jestha · 8 marks
Show that the transfer function of first order hold circuit is given by Gₕ₁(s)=((Ts+1)/T)·((1-e⁻ᵀˢ)/s)².
Answer
A first order hold (FOH) reconstructs the signal between samples by a straight line extrapolated from the last two samples:
Impulse response
Apply a unit impulse at , so and all other samples are zero.
- For (): (rises from 1 to 2).
- For (, , ): (from 0 to -1).
- For : .
g(t)
2 | /|
| / |
1 | / |
0 +------+------+----> t
0 T \ | 2T
-1 | \---|
Writing it with steps and ramps
Check: for it gives ; for it gives ; for it gives 0.
Laplace transform
Using , and the shift theorem:
which is the required transfer function of the first order hold.
Remarks
- The FOH follows ramps better than the ZOH, but it has more phase lag at higher frequencies and needs storage of the previous sample.
- Since , it can be seen as two ZOH blocks in cascade with a lead term .
- Asked 2 times
- 2073 Magh · 4 marks
- 2072 Asoj · 4 marks
Define the term tracking mode and hold mode in sample and hold circuit.
Answer
A sample-and-hold (S/H) circuit has an electronic switch, a hold capacitor and buffer amplifiers. It works in two modes set by a logic control signal.
Vin --[A1]--o/ o--+--[A2]--> Vout
|
=== C
|
GND
Tracking (sample) mode
- The switch is closed.
- The capacitor charges through the low-impedance input buffer and the output follows the input: .
- The time taken for the output to settle to the input value is the acquisition time.
Hold mode
- The switch is opened at the sampling instant.
- The capacitor keeps the voltage it had at that instant, and the high-impedance output buffer prevents discharge, so stays constant at .
- The A/D converter converts this constant voltage during the hold time.
- Small errors in this mode: droop (slow fall of voltage due to leakage) and feedthrough.
| Point | Tracking mode | Hold mode |
|---|---|---|
| Switch | Closed | Open |
| Output | Follows input | Constant |
| Purpose | Acquire new sample | Allow A/D conversion |
- Asked 2 times
- 2068 Jestha · 8 marks
- 2068 Magh · 4 marks
What is data acquisition system? Describe different blocks of data acquisition system.
Answer
A data acquisition system (DAS) is the part of a digital control system that collects analog signals from sensors at many points of a plant, conditions them, and converts them into digital numbers that the computer can read.
Block diagram
Sensor1 -> Amp -> LPF --+
Sensor2 -> Amp -> LPF --+--> Analog -> S/H -> A/D -> CPU
Sensor3 -> Amp -> LPF --+ MUX ^ ^
| | |
+-------+------+
|
Control logic / clock
Blocks
- Transducers (sensors): convert physical quantities (temperature, pressure, flow, speed, position) into electrical signals. Examples: thermocouple, strain gauge, tachogenerator, encoder.
- Signal conditioning amplifier: amplifies the small sensor signal (millivolts) to the full-scale range of the ADC, gives high input impedance, isolation and common-mode rejection (instrumentation amplifier).
- Low-pass (anti-aliasing) filter: removes high-frequency noise and limits the signal bandwidth to below so that aliasing does not occur.
- Analog multiplexer: a set of electronic switches that connects the channels one at a time to the single S/H and ADC. This time-sharing lowers cost.
- Sample-and-hold circuit: samples the selected channel at the sampling instant and holds the value constant while it is converted.
- A/D converter: quantizes the held voltage into one of levels and codes it as an n-bit binary word (successive approximation, dual slope, flash).
- Control logic/clock: selects the multiplexer channel, issues sample/hold and start-of-conversion commands, and signals the computer at end of conversion.
- Computer interface: the digital word is read through a port or bus and stored for processing.
Operation
The controller selects channel 1, the S/H samples it, the ADC converts it, and the result is stored; then channel 2 is selected, and so on. All channels are scanned within one sampling period .
Example: in a power substation, voltage, current and temperature transducers feed a multiplexed 12-bit ADC whose output is sent to a SCADA computer.
- Asked 2 times
- 2080 Chaitra · 4 marks
- 2071 Magh · 4 marks
What is impulse sampling? Derive its equation with necessary diagrams.
Answer
Impulse sampling is the ideal mathematical model of sampling in which the sampler output is a train of impulses at , each with strength (area) equal to the signal value at that instant. Real samplers give narrow pulses, but when the pulse width is very small compared with (and a hold follows) they can be modelled this way.
Diagram
x(t) ---->o/o----> x*(t)
T (sampler)
x(t) x*(t)
/‾‾\ | |
/ \ || ||
/ \__ ||| |||_
---------> t -+-+-+-+-+--> t
0 T 2T 3T
Derivation
The ideal sampler multiplies the input by a unit impulse train:
(using , with for ).
Taking the Laplace transform, :
Putting gives the z-transform:
Frequency-domain form
Expanding as a Fourier series gives
so the spectrum of the sampled signal is the original spectrum repeated every . This leads to the sampling theorem .
- 2082 Chaitra · 4 marks
As a manager of an industrial plant, you want to digitalize the control system. How would you make your case for digital control system to the company board?
Answer
To convince the board, the case should be presented in terms of cost, production, quality and risk, supported by data from the plant.
1. Present problems with the existing analog system
- Drift and frequent recalibration of analog controllers; old parts hard to find.
- No record of process data, so faults and quality losses are hard to trace.
- Each loop needs its own controller and panel space.
2. Benefits of digital control
- Better product quality: accurate, repeatable control with no drift; less scrap and rework.
- Higher productivity: advanced control (cascade, feed-forward, adaptive) gives faster start-up and less downtime.
- Flexibility: recipes, set points and control laws changed by software for new products, without new hardware.
- Lower cost per loop: one PLC/DCS handles many loops; less wiring and panel space.
- Data and monitoring: logging, trends, alarms, remote monitoring (SCADA), and energy reporting.
- Predictive maintenance and diagnostics: fewer unplanned shutdowns.
- Safety: interlocks and emergency shutdown logic in software.
- Future readiness: integration with ERP, Industry 4.0 and IoT.
3. Financial justification
- Give the capital cost (hardware, software, installation, training).
- Estimate yearly savings (energy, scrap, labour, maintenance, downtime).
- Show the payback period and return on investment, e.g. a cost of Rs 50 lakh saving Rs 20 lakh a year pays back in 2.5 years.
4. Plan to manage risk
- Pilot project on one line before full roll-out.
- Phased change-over during planned shutdowns; keep manual back-up.
- Train operators and maintenance staff; choose a vendor with local support.
A short presentation with these points, supported by figures from a pilot study, makes a strong case.
- 2082 Chaitra · 8 marks
What do you mean by sample and hold circuit? How does a Sample-and-Hold (S/H) circuit maintain a constant voltage across the capacitor when the switch is open? Mention the advantages of Digital control system over analog.
Answer
A sample-and-hold (S/H) circuit samples an analog signal at a given instant and holds that value constant for a fixed time, so that an A/D converter can convert a steady input.
Circuit
Switch S (MOSFET)
Vin --[A1]--o/ o--+--[A2]--> Vout
|
=== C (hold capacitor)
|
GND
Logic control signal --> gate of S
- A1: input buffer (voltage follower) with very low output impedance.
- S: electronic switch controlled by the sample/hold logic signal.
- C: low-leakage hold capacitor (polystyrene/Teflon).
- A2: output buffer (voltage follower) with very high input impedance.
Sample (track) mode: S closed; C charges quickly through A1, and follows . Hold mode: S open; C stores the voltage at the instant of opening.
How the voltage stays constant when the switch is open
The voltage across a capacitor changes only if current flows: . When the switch is open, the circuit is designed so that :
- Open switch: an OFF MOSFET has extremely high resistance, so no charge flows back to the input.
- High-impedance output buffer: A2 (FET-input op-amp) draws only picoamperes, so the capacitor is not loaded.
- Low-leakage capacitor: dielectric with very high insulation resistance.
- Suitable C value: a larger C reduces droop rate.
Since is trapped on the capacitor, stays almost constant. A small fall called droop remains:
Example: nA, nF gives droop V/s, i.e. only 10 µV in a 10 µs conversion time.
Trade-off: large C means low droop but longer acquisition time in sample mode.
Advantages of digital control system over analog
- Flexible: control law changed by reprogramming, not rewiring.
- Accurate and drift-free: no change with temperature or ageing of components.
- Better noise immunity of digital signals.
- Complex/adaptive/nonlinear control is easy to implement in software.
- One computer serves many loops (time sharing), so cost per loop is low.
- Easy data storage, display, alarms and networking.
- Smaller, cheaper, more reliable hardware.
- 2074 Bhadra · 8 marks
Explain the data acquisition system in digital control system. Define tracking mode and hold mode in Sample-and-hold circuits.
Answer
Data acquisition system in DCS
The data acquisition system collects analog signals from plant sensors, conditions them, and converts them into digital form for the computer.
Sensor -> Amp -> LPF --+
Sensor -> Amp -> LPF --+--> Analog -> S/H -> A/D -> CPU
Sensor -> Amp -> LPF --+ MUX
- Transducer: converts the physical variable (temperature, speed, level) into a voltage or current.
- Amplifier (signal conditioning): scales the small signal to the ADC input range and gives isolation.
- Low-pass (anti-aliasing) filter: removes noise and limits bandwidth below half the sampling frequency.
- Analog multiplexer: connects many channels, one at a time, to a single S/H and ADC (time sharing).
- Sample-and-hold: captures the selected signal at the sampling instant and holds it during conversion.
- A/D converter: quantizes and codes the held voltage into an n-bit binary number.
- Control logic: selects channels and starts conversions at each sampling instant; the computer reads the result.
All channels are scanned once in every sampling period . The data are then processed by the control algorithm, and the outputs are sent to actuators through D/A converters and hold circuits (data distribution).
Tracking mode and hold mode in S/H
Vin --[A1]--o/ o--+--[A2]--> Vout
|
=== C
|
GND
Tracking (sample) mode: the electronic switch is closed. The capacitor charges through the low-impedance buffer A1, and the output follows the input, . The time to settle to the input within the required accuracy is the acquisition time.
Hold mode: the switch is opened at the sampling instant. The capacitor keeps its charge because the switch and the high-impedance buffer A2 draw almost no current, so stays at . The ADC converts this steady value. A slow fall due to leakage is called droop.
| Point | Tracking mode | Hold mode |
|---|---|---|
| Switch | Closed | Open |
| Output | Follows input | Constant |
| Duration | Acquisition time | Conversion time |
- 2081 Chaitra · 3+5 marks
With the help of digital block diagram, explain the control system in detail. Define the term tracking mode and hold mode in sample and hold circuit.
Answer
Digital control system
A digital control system is a feedback system whose controller is a digital computer. Since the plant is analog, it needs A/D conversion at the controller input and D/A conversion at the output.
r(kT) -->(+)--> Digital --> D/A --> Hold
^ - computer (ZOH)
| |
| v
A/D Actuator
^ |
| v
S/H Plant ---> y(t)
^ |
+-------- Sensor <-----------+
- Sensor: measures the plant output as an analog signal.
- Sample-and-hold: samples the signal every s and holds it during conversion.
- A/D converter: quantizes and codes the sample into a binary word.
- Digital computer: compares with the reference and computes by a control algorithm (PID, lead/lag, state feedback) written as a difference equation.
- D/A converter: converts into an analog voltage.
- Hold (ZOH): holds this voltage constant until the next update (staircase output).
- Actuator and plant: the actuator applies the control effort to the plant.
- Clock: sets the sampling period and synchronises all blocks.
In each period the loop does: sample, convert, compute, output, hold. With a small enough (8 to 10 samples per cycle of oscillation) the system behaves nearly like a continuous one.
Tracking mode and hold mode in S/H
Vin --[A1]--o/ o--+--[A2]--> Vout
|
=== C
|
GND
- Tracking mode: the switch is closed; C charges through A1 and the output follows the input.
- Hold mode: the switch is opened at the sampling instant; C keeps its voltage because the open switch and high-impedance buffer A2 draw almost no current, so the output stays at while the ADC converts it.
Control circuit of S/H
The switch is a MOSFET/JFET whose gate is driven by a logic control signal from the controller's timing unit:
- Control = 1 (sample): switch ON, tracking.
- Control = 0 (hold): switch OFF, holding.
- The hold command is given at each sampling instant just before the ADC's start-of-conversion pulse; after end-of-conversion the circuit returns to tracking.
Control ‾‾‾|____|‾‾‾‾|____|‾‾‾
track hold track hold
Important timing terms: aperture time (delay between hold command and switch opening), acquisition time, and droop rate during hold.
- 2070 Magh · 6+2 marks
Explain data acquisition system with its block diagram representation. Also state advantages of digital control system.
Answer
Data acquisition system
A data acquisition system collects analog signals from sensors in the plant, conditions them and converts them into digital numbers that the computer can process.
Sensor1 -> Amp -> LPF --+
Sensor2 -> Amp -> LPF --+--> Analog -> S/H -> A/D -> CPU
Sensor3 -> Amp -> LPF --+ MUX ^ ^
| | |
+-------+------+
|
Timing and control
- Transducers: convert physical quantities (temperature, pressure, speed) into electrical signals.
- Amplifier/signal conditioner: raises millivolt-level signals to the ADC range, provides isolation and rejects common-mode noise.
- Low-pass (anti-aliasing) filter: removes high-frequency noise and limits the bandwidth below .
- Analog multiplexer: connects the channels one by one to a single S/H and ADC, so one converter serves many inputs.
- Sample-and-hold: samples the selected signal at the sampling instant and keeps it steady during conversion.
- A/D converter: quantizes and codes the value into an n-bit word.
- Timing and control: selects the channel, gives sample/hold and start-of-conversion commands, and tells the computer when data are ready.
Operation: in every sampling period the channels are scanned in turn; each is sampled, held, converted and stored in memory. The computer then runs the control algorithm.
Example: a water treatment plant scans pH, turbidity and flow sensors through one 12-bit multiplexed ADC every second.
Advantages of digital control system
- Flexible: control law changed by reprogramming, not rewiring.
- Accurate and drift-free: no change with temperature or ageing of components.
- Better noise immunity of digital signals.
- Complex/adaptive/nonlinear control is easy to implement in software.
- One computer serves many loops (time sharing), so cost per loop is low.
- Easy data storage, display, alarms and networking.
- Smaller, cheaper, more reliable hardware.
- 2082 Kartik · 6 marks
Define the term sampling, holding, quantizing, coding and decoding used in analog to digital converter. Also mention the advantages of digital control system over analog control system.
Answer
An analog-to-digital converter changes a continuous signal into binary numbers in several steps, and a decoder (D/A) changes them back.
x(t) -> Sampler -> Hold -> Quantizer -> Encoder -> binary
word
Terms
- Sampling: taking the value of the continuous signal only at discrete instants ( = sampling period). The output is a discrete-time signal of continuous amplitude.
- Holding: keeping the sampled value constant for the conversion time (or until the next sample) by a sample-and-hold or zero order hold circuit, so the converter sees a steady input.
- Quantizing: rounding (or truncating) the held amplitude to the nearest of a finite set of levels. For an n-bit ADC with full-scale range , there are levels and the step size is . The difference between true and quantized value is the quantization error, at most .
- Coding (encoding): assigning a binary code (straight binary, BCD, two's complement, Gray) to each quantized level, giving an n-bit word. Example: 3-bit ADC, V, input 5.3 V is quantized to level 5, coded as 101.
- Decoding: the reverse process in a D/A converter: converting the binary word back into an analog voltage, . With a hold circuit this gives a staircase signal.
Advantages of digital control system over analog
- Flexible: control law changed by reprogramming, not rewiring.
- Accurate and drift-free: no change with temperature or ageing of components.
- Better noise immunity of digital signals.
- Complex/adaptive/nonlinear control is easy to implement in software.
- One computer serves many loops (time sharing), so cost per loop is low.
- Easy data storage, display, alarms and networking.
- Smaller, cheaper, more reliable hardware.
- 2080 Chaitra · 6 marks
Mention different types of signals used in digital control system. Also mention the advantages of digital control system over analog control system.
Answer
In a digital control system the signal changes its form as it goes around the loop.
y(t) -> S/H -> A/D -> CPU -> D/A -> Hold -> Plant
(a) (b) (d) (d) (d) (c) (a)
Types of signals
- Continuous-time analog signal (a): defined at every instant and can take any amplitude. Examples: plant output , actuator input.
- Discrete-time analog (sampled-data) signal (b): defined only at sampling instants , but amplitude still continuous. Example: output of the sampler/S/H.
- Continuous-time quantized signal (c): defined at all times but takes only certain amplitude levels. Example: staircase output of a D/A plus hold.
- Digital signal (d): both discrete in time and quantized in amplitude, and coded in binary. Example: numbers inside the computer and the ADC output.
| Signal | Time | Amplitude | Where |
|---|---|---|---|
| Continuous analog | Continuous | Continuous | Plant, sensor |
| Sampled-data | Discrete | Continuous | S/H output |
| Quantized (boxcar) | Continuous | Discrete | D/A + hold output |
| Digital | Discrete | Discrete, coded | Computer |
Signals of type (b) and (d) are both called discrete-time signals; systems containing them are discrete-time control systems.
Advantages of digital control system over analog
- Flexible: control law changed by reprogramming, not rewiring.
- Accurate and drift-free: no change with temperature or ageing of components.
- Better noise immunity of digital signals.
- Complex/adaptive/nonlinear control is easy to implement in software.
- One computer serves many loops (time sharing), so cost per loop is low.
- Easy data storage, display, alarms and networking.
- Smaller, cheaper, more reliable hardware.
- 2077 Chaitra · 6+2 marks
Compare different types of sampling operations used for sampling of continuous time signal. Also mention the advantages of digital control system over analog.
Answer
Sampling converts a continuous signal into a sequence of values taken at certain instants. Sampling operations differ in how the instants are chosen.
Types of sampling operation
- Periodic (conventional) sampling: sampling instants equally spaced, . Most common; analysed with the z-transform.
- Multiple-order sampling: the pattern of sampling instants is repeated periodically, i.e. is constant for all , though spacing inside the pattern is unequal.
- Multiple-rate sampling: two or more different sampling periods are used in one system, e.g. fast sampling for an inner current loop and slow sampling for an outer temperature loop.
- Random sampling: instants are random, e.g. event-triggered or network-based control.
Comparison
| Feature | Periodic | Multiple-order | Multiple-rate | Random |
|---|---|---|---|---|
| Instants | Repeating pattern | Different | Random | |
| Analysis | z-transform | Special methods | Multirate methods | Statistical |
| Hardware | Single clock | Moderate | Several clocks | Event logic |
| Typical use | Most controllers | Special systems | Cascade loops | Networks, events |
| Design effort | Least | More | More | Most |
By pulse shape, sampling may also be ideal (impulse), natural (pulse top follows the signal) or flat-top (S/H). Practical controllers use periodic flat-top sampling, modelled as an ideal sampler followed by a ZOH.
Advantages of digital control system over analog
- Flexible: control law changed by reprogramming, not rewiring.
- Accurate and drift-free: no change with temperature or ageing of components.
- Better noise immunity of digital signals.
- Complex/adaptive/nonlinear control is easy to implement in software.
- One computer serves many loops (time sharing), so cost per loop is low.
- Easy data storage, display, alarms and networking.
- Smaller, cheaper, more reliable hardware.
- 2072 Magh · 4 marks
Define problems associated with quantization. How can it be improved?
Answer
Quantization is the rounding of a sampled amplitude to one of a finite number of levels in an A/D converter. For an n-bit ADC with full-scale range , the step (quantum) is .
Problems caused by quantization
- Quantization error: the difference between true and quantized value; with rounding it lies between and .
- Quantization noise: the error behaves like random noise of variance , which reduces signal-to-noise ratio.
- Loss of small signals: changes smaller than are not detected (dead zone).
- Limit cycles: in a feedback loop the nonlinearity can cause small sustained oscillations of the output.
- Steady-state error: the output can settle anywhere within one step of the set point.
- Coefficient and arithmetic round-off in the controller with short word length.
Ways to improve
- Increase the number of bits (e.g. 8 to 12 bits): falls by 16 times; SNR rises about 6 dB per bit.
- Match signal range to ADC range by proper amplification so all levels are used.
- Use rounding instead of truncation to make the error zero-mean.
- Oversampling and averaging/filtering to reduce noise.
- Dithering: add small noise before quantizing to break limit cycles.
- Longer word length and careful scaling in the controller software.
- 2078 Chaitra · 4+2 marks
What are the problem associated with the quantization and how it can be improved? Also write the advantage of digital control system over analog control system.
Answer
Problems associated with quantization
Quantization rounds each sampled value to one of levels of an n-bit A/D converter. The step size is .
- Quantization error: the difference between true and quantized value, between and with rounding.
- Quantization noise: the error acts like random noise with variance , lowering signal-to-noise ratio.
- Loss of resolution: changes smaller than one step are not seen (dead zone).
- Limit cycles: small sustained oscillations in closed loop due to the nonlinear staircase.
- Steady-state error of up to one quantization step.
- Round-off of coefficients and arithmetic in a short-word-length controller.
Example: a 4-bit ADC with 0 to 16 V has V; 6.4 V and 6.3 V both read 6 V, with error up to 0.5 V. An 8-bit ADC reduces to 62.5 mV.
How it can be improved
- Use an ADC and processor with more bits (SNR improves about 6 dB per bit).
- Scale the signal to the full ADC range.
- Use rounding rather than truncation.
- Oversample and filter/average the readings.
- Add dither to break limit cycles.
- Use longer word length or floating point in the control algorithm.
Advantages of digital control system over analog
- Flexible: control law changed by reprogramming, not rewiring.
- Accurate and drift-free: no change with temperature or ageing of components.
- Better noise immunity of digital signals.
- Complex/adaptive/nonlinear control is easy to implement in software.
- One computer serves many loops (time sharing), so cost per loop is low.
- Easy data storage, display, alarms and networking.
- Smaller, cheaper, more reliable hardware.
- 2076 Bhadra · 4 marks
What is quantization noise and quantization error in digital control system? Explain with appropriate example.
Answer
Quantization in an A/D converter maps each sampled value to the nearest of discrete levels. The step size (quantum) is
where is the full-scale range and the number of bits.
Quantization error
The difference between the actual sample and its quantized value:
With rounding, (with truncation, ). It is a fixed, bounded error for each sample.
Quantization noise
When the signal varies enough, the error changes randomly from sample to sample and can be treated as noise added to the signal: uniformly distributed over , zero mean, with variance (noise power)
The signal-to-quantization-noise ratio improves by about 6 dB for each extra bit.
Example
A 3-bit ADC with V has V.
| Input (V) | Quantized level (V) | Code | Error (V) |
|---|---|---|---|
| 2.3 | 2 | 010 | +0.3 |
| 4.6 | 5 | 101 | -0.4 |
| 6.5 | 6 or 7 | 110/111 | ±0.5 |
Noise power (rms V). Using an 8-bit ADC gives mV, so the error falls to at most mV.
- 2079 Chaitra · 4 marks
Explain signal reconstruction in digital control system. How do you represent mathematically signal reconstructors?
Answer
Signal reconstruction is the process of recovering a continuous-time signal from its samples , so that it can drive a continuous plant. In a digital control system it is done after the D/A converter by a hold circuit (signal reconstructor).
Ideal reconstruction
If the signal is band-limited and , an ideal low-pass filter with cut-off recovers exactly:
This filter is non-causal (needs future samples), so it cannot be built.
Practical reconstructors (hold circuits)
A hold circuit extrapolates the signal between and from present and past samples using a polynomial:
with , so . An th-order hold uses the last samples.
- Zero order hold (): ; staircase output.
- First order hold (): straight-line extrapolation from two samples:
ZOH: _|‾‾|__|‾‾‾|_ (steps)
FOH: / / / (sloped segments)
The ZOH is the most used because it is simple and adds the least phase lag; higher-order holds give better tracking of smooth signals but more delay and complexity.
- 2071 Bhadra · 6 marks
Explain about reconstruction of original signal from sampled signal with the help of figure and necessary.
Answer
A sampled signal carries values only at . Reconstruction produces a continuous signal from these values, so that the output of a digital controller can drive an analog plant.
Spectrum of the sampled signal
The impulse-sampled signal has spectrum
i.e. the original spectrum (primary component, ) plus copies (complementary components) centred at
|X*(jw)|
_/\_ _/\_ _/\_
--------+---------+---------> w
-ws 0 ws
copies | primary
<-- ideal LPF -->
-ws/2 ws/2
Condition for exact recovery
If is band-limited to and (sampling theorem), the copies do not overlap. Then an ideal low-pass filter with gain and cut-off keeps only the primary component and gives back exactly:
If the copies overlap (aliasing) and recovery is impossible.
Practical reconstruction
The ideal filter is non-causal, so practical systems use hold circuits, which build the signal from past samples only:
- Zero order hold (ZOH): keeps constant until . Transfer function . Its magnitude is a rough low-pass filter; it passes some high-frequency components (ripple) and adds a lag of .
- First order hold (FOH): extrapolates with the slope of the last two samples. .
samples: . . .
ZOH: |‾‾‾|‾‾‾|‾‾‾ staircase
FOH: / / / ramps
Choosing a small (high sampling rate) and following the hold with a smoothing filter makes the reconstructed signal close to the original.
- 2072 Magh · 8 marks
Why sample and hold circuits are important in discrete time control system? Explain operation of sample and hold circuit in detail.
Answer
A sample-and-hold (S/H) circuit samples an analog signal at an instant and holds that value constant for a given time.
Why S/H is important
- Steady input for the A/D converter: an ADC (e.g. successive approximation) needs several microseconds to convert. If the input changes during this time by more than half an LSB, the output code is wrong. The S/H freezes the input during conversion.
- Allows fast signals to be converted: without S/H, a 12-bit ADC with 10 µs conversion time can only handle signals of a few hertz; with S/H, much higher frequencies.
- Multiplexing: in a multichannel system one S/H and ADC serve many channels; the S/H keeps each sample while the multiplexer moves on.
- Simultaneous sampling: several S/H circuits can capture many signals at the same instant.
- Output hold: at the D/A side a hold keeps the actuator signal constant between updates (zero order hold), reconstructing a continuous signal.
Circuit
Switch S (FET)
Vin --[A1]--o/ o--+--[A2]--> Vout
|
=== C (hold capacitor)
|
GND
Control (sample/hold) --> gate of S
- A1: input buffer with low output impedance for fast charging of C.
- S: MOSFET/JFET switch driven by the logic control signal.
- C: low-leakage hold capacitor.
- A2: output buffer with very high input impedance so C does not discharge.
Operation
Sample (tracking) mode: control signal closes S. C charges through A1 and follows . The time to reach the input value within the required accuracy is the acquisition time.
Hold mode: at the sampling instant the control signal opens S. The charge on C is trapped because neither the open switch nor A2 draws current, so remains at . The ADC converts this value.
Vin /‾‾\ /
/ \____/
Vout /‾‾‾‾|____|‾‾|___
Mode track hold track hold
Performance terms
- Acquisition time: time to charge C to the input value in sample mode.
- Aperture time: delay between hold command and actual opening of S.
- Droop: slow decay during hold, .
- Feedthrough: input leaking to output during hold.
- Hold step (pedestal): small jump from charge injected by the switch.
Mathematically, the S/H is modelled as an ideal sampler followed by a zero order hold, .
- 2067 Mangsir · 6 marks
Write a short note on sample and hold circuit.
Answer
A sample-and-hold (S/H) circuit takes the value of an analog signal at a sampling instant and holds it constant for the time the A/D converter needs to convert it. It is placed between the multiplexer and the ADC in a data acquisition system.
Switch S (FET)
Vin --[A1]--o/ o--+--[A2]--> Vout
|
=== C (hold capacitor)
|
GND
Control (sample/hold) --> gate of S
Components: input buffer A1 (low output impedance), electronic switch S (FET) driven by a logic control signal, hold capacitor C, and output buffer A2 (high input impedance).
Modes
- Sample/tracking mode: S closed; C charges and the output follows the input.
- Hold mode: S opened at the sampling instant; C keeps its charge and the output stays constant at while the ADC converts.
Why it is needed
- The ADC input must not change by more than half an LSB during conversion.
- One S/H and ADC can serve many multiplexed channels.
- Several S/H units allow simultaneous sampling of many signals.
Specifications
| Term | Meaning |
|---|---|
| Acquisition time | Time for output to settle to input in sample mode |
| Aperture time | Delay between hold command and switch opening |
| Droop rate | , fall of voltage during hold |
| Feedthrough | Input appearing at output during hold |
A large C reduces droop but increases acquisition time, so C is chosen as a compromise. In analysis, the S/H is modelled as an ideal sampler followed by a zero order hold with .
- 2068 Jestha · 4 marks
Write a short note on digital to analog conversion.
Answer
A digital-to-analog converter (DAC) converts an n-bit binary word from the computer into a proportional analog voltage or current. In a digital control system it sits at the controller output, followed by a hold circuit and the actuator.
Output relation
Resolution (one LSB) .
Example: 4-bit DAC, V, input 1011: V.
Common types
- Weighted-resistor DAC: resistors feed an op-amp summer. Simple but needs a wide range of precise resistors.
- R-2R ladder DAC: only two resistor values; each bit's current is halved at each node. Most widely used.
Vref -+-2R-+-2R-+-2R-+
| | | | R-2R ladder
b3 b2 b1 b0 -> op-amp -> Vo
Specifications
- Resolution: number of bits or smallest output step.
- Accuracy and linearity: deviation from the ideal straight line.
- Settling time: time to reach final value within ±½ LSB.
- Monotonicity: output must not fall when the code increases.
The DAC output is held constant between updates by a latch/hold (zero order hold), giving a staircase signal.
- 2068 Jestha · 4 marks
Write a short note on data hold circuit.
Answer
A data hold circuit reconstructs a continuous signal from a sequence of samples by holding or extrapolating the last sample(s) until the next sample arrives. It is used after the D/A converter (and in S/H circuits) so the plant receives a continuous signal.
General form
Between and the output is a polynomial in :
An th-order hold uses the last samples.
Zero order hold (ZOH)
; the output is a staircase.
First order hold (FOH)
Straight-line extrapolation using the slope of the last two samples:
ZOH: |‾‾|‾‾|‾‾ FOH: / / /
Comparison
| ZOH | FOH |
|---|---|
| Uses one sample | Uses two samples |
| Staircase output | Piecewise-linear output |
| Phase lag | Larger phase lag at high frequency |
| Simple, most used | More memory and hardware |
The ZOH is the standard hold in digital control because it is simple and its lag is small when is small.
- 2073 Bhadra · 6 marks
Show that the minimum sampling rate required to recover a signal whose band spectrum is limited to ωₘ is equal to 2ωₘ.
Answer
Statement (sampling theorem): if has no frequency components above , it can be recovered completely from its samples only if the sampling frequency satisfies (strictly, ). The minimum rate is the Nyquist rate.
Proof
The ideal sampler output is
The impulse train is periodic with period , so expand it as a Fourier series ():
Then
Using the frequency-shift property :
So the spectrum of the sampled signal is the original spectrum (scaled by ) repeated at every multiple of .
Condition for no overlap
ws > 2wm: no overlap
/\ /\ /\
-/--\------/--\------/--\--> w
-ws -wm 0 wm ws
|<-LPF->|
ws < 2wm: overlap (aliasing)
/\ /\ /\
-/--\/--\/--\--> w
The primary band occupies to . The first copy occupies to . They do not overlap if
Under this condition, an ideal low-pass filter with gain and cut-off removes all copies and returns , i.e. is recovered exactly. If , the bands overlap (aliasing): high-frequency components appear as low frequencies, and no filter can separate them.
Hence the minimum sampling rate is .
Example: a signal limited to 50 Hz must be sampled at more than 100 Hz. In practice control systems sample much faster (often 10 times the closed-loop bandwidth).
- 2082 Chaitra (new course) · 3 marks
What do you mean by data hold circuit? Derive the transfer function of Zero Order Hold (ZOH).
Answer
A data hold circuit converts a sequence of samples into a continuous signal by holding or extrapolating the sample value(s) between sampling instants. The simplest is the zero order hold (ZOH), which keeps each sample constant for one period: , , giving a staircase output.
Derivation of ZOH transfer function
Apply a unit impulse at . The ZOH holds the value 1 for one sampling period and then drops to zero, so its impulse response is a rectangular pulse:
g(t)
1 |------+
| |
0 +------+-------> t
0 T
Taking the Laplace transform and using the shift theorem :
This is the transfer function of the zero order hold.
- 2078 Chaitra · 6 marks
What do you mean by Zero Order Hold (ZOH) and First Order Hold? Determine the transfer function for ZOH.
Answer
Zero order hold and first order hold
A hold circuit reconstructs a continuous signal from samples by extrapolating between sampling instants with a polynomial of order .
- Zero order hold (ZOH): holds the latest sample constant until the next one: , . Output is a staircase. It needs only the present sample.
- First order hold (FOH): extrapolates a straight line using the slope of the last two samples: . Transfer function .
samples: . . . .
ZOH: |‾‾‾|‾‾‾|‾‾‾|‾‾‾
FOH: / / / /
| ZOH | FOH |
|---|---|
| One sample used | Two samples used |
| Staircase output | Ramp segments |
| Simple, low cost | Needs memory of past sample |
| Lag | More lag at high frequency |
Transfer function of ZOH
Apply a unit impulse at . The ZOH holds the value 1 for one sampling period and then drops to zero, so its impulse response is a rectangular pulse:
g(t)
1 |------+
| |
0 +------+-------> t
0 T
Taking the Laplace transform and using the shift theorem :
Frequency response
With :
so the ZOH acts as a low-pass filter with gain at low frequency, zero gain at multiples of , and a phase lag of (half-period delay).
- 2075 Baisakh · 8 marks
Derive the transfer function of ZOH and also find the pulse transfer function.
Answer
Transfer function of ZOH
A zero order hold keeps each sample constant for one sampling period: , .
Apply a unit impulse at . The ZOH holds the value 1 for one sampling period and then drops to zero, so its impulse response is a rectangular pulse:
g(t)
1 |------+
| |
0 +------+-------> t
0 T
Taking the Laplace transform and using the shift theorem :
It can also be found from a general sampled input . The output is
so .
Pulse transfer function
Since :
So the ZOH alone passes sample values unchanged (). Its effect appears when it is followed by a plant :
Example: , s.
Answer: ; pulse transfer function of ZOH alone ; ZOH with plant: .
Questions from Old Question Collection (EE 652) (NCE Library scans of IOE Digital Control System papers, 2067 Mangsir to 2082 Chaitra), 2080 course papers (ENEE 304) (New-course (ENEE 304) regular paper, 2082 Chaitra) and Question bank (ioesolutions) (IOE Digital Control System papers, 2067 Mangsir to 2075 Baisakh; used for the second pages of the 2068 Magh and 2068 Jestha papers). Answers are written for this site; check them against your class notes.
Chapter titles and hours from the IOE syllabus ↗