You are on page 1of 10

ECET - 462

Application of Computers in Process Control


Purdue University, Calumet

[LABORATORY 4]
Testing of I/O data acquisition Modules

Testing of I/O data acquisition Modules Lab 4

Objectives: 1. Introduction to SCXI 1000/1001 2. Testing of I/O data acquisition Modules Software required: LabVIEW Instruments Required: Process Calibrator, Connecting wire Experiment: There are two different kinds of setup in the lab for data acquisition. One of them is SCXI DAQ chassis and the other one is CB 68LP board. First identify which one you have in your computer connected to. We shall now create an analog voltage output from the system and read an analog voltage input to the system. 1. For SCXI chassis: i) Creating Analog Voltage Output: Step1: Go to start menu All programsNational InstrumentsLabVIEW

Step2: Create a new .vi program.

Step3: Go to Block diagram by pressing Cntrl+E. From Function Palette go to Measurement I/O DAQmx-Data AcquisitionCreate Channel Place it on block diagram.

Step 4: Click on AI Voltage label and select Analog outputVoltage. You will get AO Voltage label. This block selects a physical channel in SCXI-1325 and gives an analog output voltage from one of the channels.

Step 5: Move your mouse on the block. You will see that the mouse pointer changes to some other symbol. Search for physical channels pin. Right click on it and create constant.

Step 6: Click on I/O symbol and select SCXI module/Channel. This will depend on which system you are using. Here the SCXI-1325 was connected as the second terminal block to the chassis. So the SC1Mod2 comes. Now the first channel has a wired output so we selected ao0

(example: SC1Mod2/ao0 refers to SCXI module in slot 2 and the analog signal out (ao) from channel 0 i.e. ao0).

Step 7: Similarly create constants by right clicking on the maximum and minimum value terminals. Choose the minimum value to be 0 and maximum value to be 4.

Step 8: Now we need to create the output from a channel and assign it to a physical terminal on SCXI-1325. Select DAQmx Write.vi from the same destination and place it on block diagram.

Step 9: Connect the terminals as in figure.

Step 10: Create a constant from the data terminal and make it 4. SO the output from the DAQ system is going to be 4 volts.

Fig1: Program for Analog voltage output Step 11: Connect the terminals of the process calibrators voltage input to the leads coming out from SCXI-1325 (ao0). Make sure to connect them with appropriate polarity. Run the program and read the voltage from process calibrator.

ii) Creating Analog Voltage input: Step 12: Similarly we can create an input channel for the Data acquisition system using DAQmx Read.vi. This one will take the process calibrators analog voltage output and read it via physical channel. Take the blocks from the same location. DAQmx Read.vi

Fig2: Program for Analog voltage input

Step 13: Create an indicator by right clicking on the data terminal of the DAQmx Read.vi block set.

Step 14: Go to Front panel. You will be able to see the indicator shown below

Step 14: Use a process calibrator to feed the SCXI system with a voltage. Run the program and read the voltage from LabVIEW programs front panel.

2. For CB 68LP: i. Creating Analog Voltage Output: Step1: Go to start menu All programsNational InstrumentsLabVIEW

Step2: Create a new .vi program.

Step3: Go to Block diagram by pressing Cntrl+E. From Function Palette go to Measurement I/O DAQmx-Data AcquisitionDAQ assistant Place it on block diagram.

Step4: Double click on the block and select the following

Step5: After that in the new window select the following as well and click Finish.

Step6: New window will appear. Change the Time setting as follows and press Ok.

Step 7: In the Block diagram stretch the terminals of the DAQ assistant as follows.

Step8: Then right click on the data terminal and create a constant.

Step9: Change the value from 0 to 4.5.

Step10: Connect wires to pin 22 and pin 55 of CB 68LP. They will act as an analog output voltage channel. Now connect them to the Process Calibrators voltage input terminal. Run the program and read the voltage.

ii)

Creating Analog Voltage input:

Step11: Place DAQ assistant on the block diagram and double click on it. Select the following

Step12: After that in the new window select the following as well and click Finish

Step13: New window will appear. Change the Time setting as follows and press Ok.

Step14: Select the DAQ assistant block. Create an Indicator from the Data terminal by right click and selecting CreateNumeric Indicator.

Step15: Connect pin 68 and pin 34 of the CB 68LP to the process calibrators voltage output terminals. Create a voltage output of 2.40 volts from the Process Calibrators output terminals. Run the program. Go to Front Panel to see the input voltage to the Data acquisition system.

Exercise: 1. Those who used Create Channel for data acquisition should try to use DAQ assistant and repeat the process using SCXI chassis. (Hint: Follow CB 68LP procedure) 2. Those who used DAQ assistant for data acquisition should try to use and repeat the process using Create Channel using CB 68LP board (Hint: Follow SCXI chassis procedure)