sop 10. labview data acquisition program
TRANSCRIPT
-
8/3/2019 SOP 10. LabView Data Acquisition Program
1/7
91
SOP 10. LabView Data Acquisition Program
Drafted by PAAQL, Purdue University for IFAFS-APECAB Project
(7/1/02)
Program Overview
This LabView Virtual Instrument (VI) program is to be used to automate air quality
measurements in the Six-State Emission Measurement Project [Air Sampling & Measurement
Methodology for Confined Animal Housing Systems (APECAB)] at the University ofMinnesota, Purdue University, North Carolina State University, Iowa State University, Texas
A&M University, and University of Illinois.
The structure of the program is schematically illustrated in Figure 4.
SettingsData sampling time,
saving time
Read filesWaveform; sensor
parameters
Create data fileName: IDyymmdd?.txt
Initialize
Data sampling65+ variables every sec.
Real-time, history, alarm
D/O (solenoids)Solenoids control
Save data
Data
Display
YesEvery y sec.
Data
No
StopYes
Stop
Data average
Midnight
AlarmsYes
Alarm email
Data email
Yes
Figure 4. Flow chart of the DAQ program.
-
8/3/2019 SOP 10. LabView Data Acquisition Program
2/7
92
Files and Folders
The data acquisition program (DAQP) will consist of four files:
1. waveform.txt (controls the solenoid operation sequence)
2. records.txt (stores calibration and setting data)3. IFAFS.iak (configuration file of FieldPoint)
4. IFAFS mmddyy.llb (data acquisition program, of which part of the file name mmddyyrecords the month/date/year related version information)
These five files should be saved in the following two folders:
C:\IFAFS\DAQfiles\waveform.txt, records.txt
C:\IFAFS\Program\IFAFS mmddyy.llb, IFAFS.iak
A third folder will be created for data files:
C:\IFAFS\Data\
The waveform.txt File
The waveform.txt file contains a table with 13 rows and 13 columns (Table 1). The first row of
the file is a note and will not be used by the DAQP. Rows 2-13, column 1 (Loc#) will be
recorded in the data file to indicate sampling locations at specific measurement times. Rows 2-
13, columns 2-13 (S1-S12) defines the operation of 12 solenoids, with 1 and 0 indicatingopened and closed solenoids, respectively. This file should be saved using Tab-Delimited text
format.
The records.txt File
The records.txt file will be saved automatically after each sensor calibration or setting (alarmlevels, temperature controls, etc.) adjustment. The contents of the file can also be modified
directly with a text editor or spreadsheet software (e.g. MS Excel). This file should also be saved
using Tab-Delimited text format.
Data Files
The C:\IFAFS\Data\ folder will be used to store data files created by the LabView program. Tofacilitate the change of data files, a university ID (one letter) is placed as the first letter of the
data files.
Set the letter for data file ID at Settings in Frame 0 in the left sequence block. "A": ISU; "I":
UIUC; "M": UM; "N": NCSU; "P": Purdue; "T": TAMU.
Each time when the program is started or when a new day begins at midnight, one or two data
files (IDyyyymmdd?.txt and IDsyyyymmdd?.txt, where ? is a letter from "a" to "z") will be
created and saved in the "data" folder. During DAQP testing, if the program is started for 26
-
8/3/2019 SOP 10. LabView Data Acquisition Program
3/7
93
times during the same day, the ? will be "z" and cannot go up further. If this happens, the
"*z.txt" file in the "data" folder will need to be cleaned up in order to re-run the program.
The data files will have Tab-Delimited text format. The first row will contain day and date. The
second row will be data headings. Measurement data will start from the third row (Table 2). Data
columns and their corresponding sensor connections will be arranged as shown in Table 3.
Measurement signals from the sensors/analyzers will be sampled every second. Sampled signals
will be averaged every 60 sec and saved in data file 1 (IDyyyymmdd?.txt). Data file 2(IDsyyyymmdd?.txt) will have shorter averaging times (e.g. every 5, 10, 15, 20 or 30 sec) and is
optional.
Data Acquisition Hardware
The hardware used with the DAQP consists of seven FieldPoint DAQ modules (two FP-TC-120modules for temperature measurement, four FP-AI-110 modules for analog inputs, and one FP-
DO-401 module for digital output) and one counter/DIO data acquisition card (PCI-6601,National Instruments Corporation).
The FieldPoint modules are connected in the following sequence as it is configured in the file
IFAFS.iak:
FP-1600; FP-TC-120; FP-TC-120; FP-AI-110; FP-AI-110; FP-AI-110; FP-AI-110; FP-DO-401
Running the DAQP
At initial operation
1. Run the IFAFS.iak file from FieldPoint Explorer;2. Check each DAQ module to ensure that they are correctly configured and are ready to
acquire data;
3. If modifications are made and need to be kept, save the IFAFS.iak file;4. Run Measurement and Instruments to test the status of the PCI-6601 card;
5. Open the IFAFS yymmdd.llb from LabView 6.1. In the File Dialog window that appears,
select IFAFS.vi and click OK. The panel of IFAFS.vi appears;
6. Select menu Windows- Show Diagram. In the Diagram window, select frame 0 inthe left sequence block. Check settings and make necessary changes. If the changes
should be permanent, go to File and Save to save the changes.
7. To run the program, click the run button (a white arrow) in the upper-left corner of thewindow;
8. To stop the program, hold and release the button "Stop" at the upper-right corner of the
window. In the dialog window that appears, select OK.
-
8/3/2019 SOP 10. LabView Data Acquisition Program
4/7
94
Subsequent Operations
1. Open IFAFS yymmdd.llb from LabView 6.1 or from Windows Explorer. In the File
Dialog window that appears, select IFAFS.vi and click OK. The panel of IFAFS.vi
appears;
2. To run the program, click the run button (a white arrow) in the upper-left corner of thewindow;
3. To stop the program, hold and release the "Stop" button. At the dialog window that
appears, select OK.
Bugs and Suggestions
Bugs found in the DAQP and suggestions of DAQP improvement should be reported by email
([email protected]) or phone call (765-494-1195) to Jiqin Ni, Purdue University. Upgraded
DAQP files will be sent from Purdue University to other universities as an email attachment.
-
8/3/2019 SOP 10. LabView Data Acquisition Program
5/7
95
Table 1. Contents of waveform.txt file.
"Note: S1-S6 are normally open to gas analyzers; S7-S12 are normally closed to M2, but open to
bypass."
Loc# S1 S2 S3 S4 S5 S6 S7 S8 S9 S10 S11 S12
1 0 1 1 1 1 1 0 0 0 0 0 0
2 1 0 1 1 1 1 0 0 0 0 0 0
3 1 1 0 1 1 1 0 0 0 0 0 0
4 1 1 1 0 1 1 0 0 0 0 0 0
5 1 1 1 1 0 1 0 0 0 0 0 0
6 1 1 1 1 1 0 0 0 0 0 0 0
7 1 1 1 1 1 1 1 0 0 0 0 0
8 1 1 1 1 1 1 0 1 0 0 0 0
9 1 1 1 1 1 1 0 0 1 0 0 0
10 1 1 1 1 1 1 0 0 0 1 0 0
11 1 1 1 1 1 1 0 0 0 0 1 0
12 1 1 1 1 1 1 0 0 0 0 0 1
Table 2. First rows of data filesMonday, July 01, 2002Date & Time Loc NH3, ppm NO, ppm H2S, ppb SO2, ppb CO2, ppm
07/01/2002 17:32:02 1 23 0.1 250 2 1250
-
8/3/2019 SOP 10. LabView Data Acquisition Program
6/7
96
Table 3. Data file and sensor arrangement.DataCol #
Heading Sensor/solenoid DAQ hardware Ch# Line Signal
1 Date & Time --- --- --- --- PC clock
2 Smpl loc# --- --- --- --- Waveform
3 NH3, ppm NH3 analyzer FP-AI-110-1 0 1, 18 0-10 VDC4 NO, ppm NH3 analyzer FP-AI-110-1 1 3, 20 0-10 VDC
5 H2S, ppb H2S analyzer FP-AI-110-1 2 5, 22 0-10 VDC
6 CO2a, ppm CO2 2K FP-AI-110-1 3 8, 24 4-20 mA
7 CO2b, ppm CO2 10K FP-AI-110-1 4 10, 26 4-20 mA
8 Reserved FP-AI-110-1 5
9 Smpl P, Pa Setra P sensor FP-AI-110-1 6 13, 30 0-10 VDC
10 Smpl Q, L/m Mass flow FP-AI-110-1 7 15, 32 0-10 VDC
11 RH1, % HMW61Y #1 FP-AI-110-2 0 2, 18 4-20 mA
12 T(RH)1, C HMW61Y #1 FP-AI-110-2 1 4, 20 4-20 mA
13 RH2, % HMW61Y #2 FP-AI-110-2 2 6, 22 4-20 mA
14 T(RH)2, C HMW61Y #2 FP-AI-110-2 3 8, 24 4-20 mA
15 RH3, % HMW61Y #3 FP-AI-110-2 4 10, 26 4-20 mA
16 T(RH)3, C HMW61Y #3 FP-AI-110-2 5 12, 28 4-20 mA17 Reserved FP-AI-110-2 6
18 Reserved FP-AI-110-2 7
19 Mass, g/m TEOM #1 FP-AI-110-3 0 1, 18 0-10 VDC
20 Filter, % TEOM #1 FP-AI-110-3 1 3, 20 0-10 VDC
21 Atm P, Pa TEOM #1 FP-AI-110-3 2 5, 22 0-10 VDC
22 Mass2, g/m TEOM #2 FP-AI-110-3 3 7, 24 0-10 VDC
23 Filter2, % TEOM #2 FP-AI-110-3 4 9, 26 0-10 VDC
24 Atm P2, Pa TEOM #2 FP-AI-110-3 5 11, 28 0-10 VDC
25 Reserved FP-AI-110-3 6
26 Reserved FP-AI-110-3 7
27 Wind V, m/s Met sensor NI-6601 Ctr 0 2, 1 0/5 VDC
28 Wind D, Met sensor FP-AI-110-4 0 1, 18 0-10 VDC
29 Radiation, W/m Met sensor FP-AI-110-4 1 ?
30 dP1, Pa Setra P sensor FP-AI-110-4 2 5, 22 0-10 VDC
31 dP2, Pa Setra P sensor FP-AI-110-4 3 7, 24 0-10 VDC
32 dP3, Pa Setra P sensor FP-AI-110-4 4 9, 26 0-10 VDC
33 dP4, Pa Setra P sensor FP-AI-110-4 5 11, 28 0-10 VDC
34 Reserved FP-AI-110-4 6
35 Reserved FP-AI-110-4 7
36 T1, C Thermocouple FP-TC-120-1 0 1, 2
37 T2, C Thermocouple FP-TC-120-1 1 3, 4
38 T3, C Thermocouple FP-TC-120-1 2 5, 6
39 T4, C Thermocouple FP-TC-120-1 3 7, 8
40 T5, C Thermocouple FP-TC-120-1 4 9, 10
41 T6, C Thermocouple FP-TC-120-1 5 11, 1242 T7, C Thermocouple FP-TC-120-1 6 13, 14
43 T8, C Thermocouple FP-TC-120-1 7 15, 16
44 T9, C Thermocouple FP-TC-120-2 0 1, 2
45 T10, C Thermocouple FP-TC-120-2 1 3, 4
46 T11, C Thermocouple FP-TC-120-2 2 5, 6
Continued on next page
-
8/3/2019 SOP 10. LabView Data Acquisition Program
7/7
97
Table 3. ContinuedData
Col #
Heading Sensor/solenoid DAQ hardware Ch# Line Signal
47 T12, C Thermocouple FP-TC-120-2 3 7, 8
48 T13, C Thermocouple FP-TC-120-2 4 9, 10
49 T14, C Thermocouple FP-TC-120-2 5 11, 12
50 T15, C Thermocouple FP-TC-120-2 6 13, 1451 T16, C Thermocouple FP-TC-120-2 7 15, 16
52 Fans1, % time Sail Switch NI-PCI-6601 DIO_0 10, 1 0/5 VDC
53 Fans2, % time Sail Switch NI-PCI-6601 DIO_1 44, 1 0/5 VDC
54 Fans3, % time Sail Switch NI-PCI-6601 DIO_2 45, 1 0/5 VDC
55 Fans4, % time Sail Switch NI-PCI-6601 DIO_3 12, 1 0/5 VDC
56 Fans5, % time Sail Switch NI-PCI-6601 DIO_4 12, 1 0/5 VDC
57 Fans6, % time Sail Switch NI-PCI-6601 DIO_5 47, 1 0/5 VDC
58 Fans7, % time Sail Switch NI-PCI-6601 DIO_6 48, 1 0/5 VDC
59 Fans8, % time Sail Switch NI-PCI-6601 DIO_7 15, 1 0/5 VDC
60 Fans9, % time Sail Switch NI-PCI-6601 DIO_8 16, 1 0/5 VDC
61 Fans10, % time Sail Switch NI-PCI-6601 DIO_9 17, 1 0/5 VDC
62 Fans11, % time Sail Switch NI-PCI-6601 DIO_10 51, 1 0/5 VDC
63 Fans12, % time Sail Switch NI-PCI-6601 DIO_11 52, 1 0/5 VDC64 Fans13, % time Sail Switch NI-PCI-6601 DIO_12 53, 1 0/5 VDC
65 Fans14, % time Sail Switch NI-PCI-6601 DIO_13 54, 1 0/5 VDC
66 Fans15, % time Sail Switch NI-PCI-6601 DIO_14 21, 1 0/5 VDC
67 Fans16, % time Sail Switch NI-PCI-6601 DIO_15 22, 1 0/5 VDC
68 B1 airflow, m/s --- --- --- --- LabView
69 B2 airflow, m/s --- --- --- --- LabView
--- --- Solenoid 1 FP-DO-401 0 24 VDC
--- --- Solenoid 2 FP-DO-401 1 24 VDC
--- --- Solenoid 3 FP-DO-401 2 24 VDC
--- --- Solenoid 4 FP-DO-401 3 24 VDC
--- --- Solenoid 5 FP-DO-401 4 24 VDC
--- --- Solenoid 6 FP-DO-401 5 24 VDC
--- --- Solenoid 7 FP-DO-401 6 24 VDC
--- --- Solenoid 8 FP-DO-401 7 24 VDC
--- --- Solenoid 9 FP-DO-401 8 24 VDC
--- --- Solenoid 10 FP-DO-401 9 24 VDC
--- --- Solenoid 11 FP-DO-401 10 24 VDC
--- --- Solenoid 12 FP-DO-401 11 24 VDC
--- --- Reserved FP-DO-401 12
--- --- Reserved FP-DO-401 13
--- --- Reserved FP-DO-401 14
--- --- Reserved FP-DO-401 15
Note: 1. Refer to page 4-2 of the "DAQ 6601/6602 User Manual" for counter and DIO
channel connections. The physical connectors are located in CB-68LP, theaccessory of DAQ 6601.
2. +5VDC can be obtained from line #1 or another source.
3. Sail Switches can also be connected to AI using variable analog signals for multi-sensors.
4. There are 32 DIO channels available at the DAQ 6601. This table only includes
16 (data columns 52-67).