Вы находитесь на странице: 1из 67

Process control laboratory

Department of Electronics and


Instrumentation Engineering
Bannari Amman Institute of Technology

Prepared by : S.Kaushik

Procedure to create PID control loop


using LabVIEW and corresponding
wiring connection
Slide No : 3 60 => Steps to create Labview
program
Slide No : 61 62 => Cascade control program
using LabVIEW
Slide No : 63 66 => Wiring connections
Slide No : 67

=> M-file program for PID


simulation
Prepared by : S.Kaushik

Step 1

Prepared by : S.Kaushik

Step 2: Select -> Devices & Interface

Prepared by : S.Kaushik

Step: 3 : Select -> NI DAQmx Devices

Prepared by : S.Kaushik

Step 4: Select -> Highlighted DAQ


device

Prepared by : S.Kaushik

Step 5: Select -> Self test

Prepared by : S.Kaushik

If Device in good condition:


It will show : Self test passed

Prepared by : S.Kaushik

Not Success, check the DAQ card


Re-plug the DAQ USB to computer
Or restart the computer
Still problem exist, change the DAQ card

Prepared by : S.Kaushik

Step 6: Select -> Device pinouts

Prepared by : S.Kaushik

Device pin outs : NIUSB - 6211

Prepared by : S.Kaushik

Step 7 : Select -> Test panel

Prepared by : S.Kaushik

Analog Input : Pin no -> +ve 15 th pin


& GND 28 th pin ( In soft select : AI 0)

Prepared by : S.Kaushik

Analog Output :
If pin no 12(+ve),
14(GND)
Select AO 0
&
If pin no
13(+ve), 14(GND)
Select AO 1
Prepared by : S.Kaushik

After update :
check at
corresponding
pin using
multimeter

Prepared by : S.Kaushik

If not matching with your voltage

Check the multimeter connection


Or re-plug in the USB DAQ card
Or Restart the application
Or Restart the computer

All fails, change the DAQ card

Prepared by : S.Kaushik

If All checking got passed


Now go to NI LabVIEW 8.2

Prepared by : S.Kaushik

It will show front panel (Grey


background) and block diagram panel
(White background)

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Block diagram :
right click ->
Structures ->
while loop

Prepared by : S.Kaushik

Create STOP button : right click red


circle -> select create control

Prepared by : S.Kaushik

In front panel : STOP button will be


created

Prepared by : S.Kaushik

Create flat
sequence :
right click ->
structures -> flat
sequence
Prepared by : S.Kaushik

Add Frame in Flat sequence: right click


flat sequence -> add frame after

Prepared by : S.Kaushik

Prepared by : S.Kaushik

DAQ assistant : right click -> Express ->


Input -> DAQ assistant

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Amplitude & Level measurement : right click -> Signal processing


-> Wfm measure -> Amp & level measurement

Prepared by : S.Kaushik

Amplitude & Level measurement

Prepared by : S.Kaushik

Amplitude & Level measurement

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Cascade Control

Prepared by : S.Kaushik

Prepared by : S.Kaushik

Wiring Connection for Cascade loop

Prepared by : S.Kaushik

Wiring connection for temperature control

Prepared by : S.Kaushik

Wiring connection for pressure control

Prepared by : S.Kaushik

Wiring connection for level control

Prepared by : S.Kaushik

M-file program
clc
clear all
10
num=10;
2
s
5s 6
den=[1 5 6];
kp=1;
ki=0.2;
kd=0.3;
numc=[kd kp ki];
denc=[1 0];
[numCL,denCL] = cloop(conv(num,numc),conv(den,denc));
step(numCL,denCL)
Prepared by : S.Kaushik

Вам также может понравиться