MCP Scrubber Monitoring

Similar documents
THM80X Series Feature Application. Temperature & Humidity / Flow Measuring Specialist

Exp. #2-4 : Measurement of Characteristics of Magnetic Fields by Using Single Coils and a Computer Interface

CS ProtoBox. Available 15 Sept 2014 at the Stores shop.

CANBUS-THERMO-2CH Rev B v Channel CAN-Bus Thermocouple Interface K-Type. V1.0 July SK Pang Electronics Ltd

Double Inverted Pendulum (DBIP)

Pascal ET is an handheld multifunction calibrator for the measurement and simulation of the following parameters: - pressure

Lab Manual for ICEN 553/453 Cyber-Physical Systems Fall 2018

Welcome. Functionality and application of RTD Temperature Probes and Thermocouples. Dipl.-Ing. Manfred Schleicher

Assembly and Operation Manual. April 2016

Experiment P43: RC Circuit (Power Amplifier, Voltage Sensor)

Physical Structure of Matter Hall effect in p-germanium with Cobra3. Solid-state Physics, Plasma Physics.

Old Dominion University Physics 112N/227N/232N Lab Manual, 13 th Edition

E2T0 DVP

SC125MS. Data Sheet and Instruction Manual. ! Warning! Salem Controls Inc. Stepper Motor Driver. Last Updated 12/14/2004

LABORATORY 4 ELECTRIC CIRCUITS I. Objectives

Ruby crystals and the first laser A spectroscopy experiment

MECHATRONICS II LABORATORY Experiment #4: First-Order Dynamic Response Thermal Systems

Electricity. Measuring the force on current-carrying conductors in a homogeneous magnetic field. LEYBOLD Physics Leaflets P

Physical structure of matter Band gap of germanium with Cobra3. Solid-state Physics, Plasma Physics. What you need:

RC Circuit (Power amplifier, Voltage Sensor)

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Physics 8.02 Spring 2003 Experiment 17: RLC Circuit (modified 4/15/2003) OBJECTIVES

Using a Microcontroller to Study the Time Distribution of Counts From a Radioactive Source

EMBEDDED-PROBE FLOATING POTENTIAL CHARGE-DISCHARGE MONITOR

What You Need to Get Started INSTALLATION GUIDE

DATA SHEET. Thermocouple module with digital I²C-Interface - THMOD-I²C. Characteristic features. Areas of application. Features.

1. Electrostatic Lab [1]

X: The Hall Effect in Metals

Circular Motion and Centripetal Force

Acceleration/Velocity/Displacement VIBRATION METER

Experiment 6: Franck Hertz Experiment v1.3

ph electrode Instruction Manual For use with the RAH-210 & RPH-250

Exp. #1-1 : Measurement of the Characteristics of the Centripetal Force by Using Springs and a Computer Interface

Experiment 3. Electrical Energy. Calculate the electrical power dissipated in a resistor.

INFORMATION TECHNOLOGY SYSTEMS SPDs FOR 19 TECHNOLOGY. NET Protector Surge Arrester. Protects switches, HUBs and telecommunication

Coulomb s law with Cobra3

Ratio of Charge to Mass (e/m) for the Electron

Product Series Specification Document

SCINTILLATION DETECTORS & GAMMA SPECTROSCOPY: AN INTRODUCTION

Experiment A11 Chaotic Double Pendulum Procedure

Amphenol C 091 A/B/D. Circular Connectors. Amphenol-Tuchel Electronics GmbH

ENSC387: Introduction to Electromechanical Sensors and Actuators LAB 3: USING STRAIN GAUGES TO FIND POISSON S RATIO AND YOUNG S MODULUS

LAB 3: Capacitors & RC Circuits

Operating Instructions for Digital Manometer. Model: MAN-SD

Infrared Tire Temperature Sensor Kit, IRTS-UK-V2 Datasheet

Installation guide 862 MIT / MIR

Amphenol. Amphenol-Tuchel Electronics GmbH. Circular Connectors C 091 A/B/D Series

CHEMISTRY 170. Radioisotopes

File E28476 Vol. 7 Sec. 44 Page 1 Issued: Vol. 23 Sec. 18 Revised: Vol. 67 Sec. 4 and Report D E S C R I P T I O N

5730A High Performance Multifunction Calibrator. Extended specifications

BMXART0814 analog input module M340-8 inputs - temperature

Microcare LCD Solar MPPT User Documentation

Paramaters. Resolution 0.2 m (for measurements < 25 meas. / sec )

In this experiment, the concept of electric field will be developed by

Figure 1: Capacitor circuit

Panel Mount, Single Phase 120 and 240 Volt Fixed Shaft (click blue text for more details)

ISOCON-6. 24V AC or DC POWERED ISOLATING SIGNAL CONVERTER

Resistivity and Temperature Coefficients (at 20 C)

Direct-operated 2/2-way compact solenoid valves Type EV210A

THERMOCOUPLE CHARACTERISTICS TRAINER

CALYS 120 IS. ATEX documenting multifunction calibrator with high accuracy 0.006%

CHEMISTRY 130 General Chemistry I. Radioisotopes

CHARGE TO MASS RATIO FOR THE ELECTRON

General Physics I Lab. M1 The Atwood Machine

ME 4/549 Lab Assignment 5: Single Block Experiment Spring 2006 due 1 June 2006

Assembly Instructions for the 1-Wire Weather Station V2.0/V3.0

FOCUS: Water Pollkon Prevention and Control

Lab 3: Quanser Hardware and Proportional Control

Exercise 1: Capacitors

Simple circuits - 3 hr

Magnetic Deflection of Electrons

Application example. Measuring Force Sensors Rigid. Six series Nano, Mini, Gamma, Delta, Theta, Omega. Range of measurement, force ± 36 N..

Pi in the Sky (Sensors) Ian Bragg from Gadsden, AL Jacksonville State University Mentors: Raj and Dr. Loft NCAR SIParCS

Laboratory 14: Ratio of Charge to Mass for the Electron

Lab 7: Magnetic fields and forces Lab Worksheet

Remote Display Unit. Installers Handbook Copyright 2001 AirSense Technology Ltd. LM Remote Display Unit Installers Handbook Issue 1.

Experiment 2 Deflection of Electrons

HiPace 300 with TC 110 and power supply pack OPS 100, DN 100 CF-F

Magnetic Fields. Experiment 1. Magnetic Field of a Straight Current-Carrying Conductor

Acceleration, Velocity, Separate probe VIBRATION METER Model : VB-8202

HMS-5000 Manual. Product Name: HMS-5000 Hall Effect Measurement System with variable temperature from 80K to 350K. - Manual version: ver 5.

WeatherHub2 Quick Start Guide

Table 1 Test Specimens Qty Part Number Test Specimen Attributes

Force and Displacement Measurement

Name Class Date. RC Circuit Lab

Experiment 1 Solutions: Equipotential Lines and Electric Fields

ED 701 General Industry Pressure Transmitter

BMXART0814 analog input module M340-8 inputs - temperature

EXPERIMENT 5. The Franck-Hertz Experiment (Critical Potentials) Introduction

Hands-on Lab 3. System Identification with Experimentally Acquired Data

Safety Precautions WARNING If critical situations that could lead to user s death or serious injury is assumed by mishandling of the product.

Thermocouple Calibrations and Heat Transfer Coefficients

Electric Field Mapping Lab 2. Precautions

Equipotential Lines and Electric Fields

Exercise 2-2. Titration of a Strong Acid EXERCISE OBJECTIVES

UC Berkeley, EECS Department EECS 40/42/100 Lab LAB2: Electronic Scale UID:

Meteorological Station P03/3-RS485-WAGO

203-NYC-05: Waves, Optics & Modern Physics

Lab 1 Uniform Motion - Graphing and Analyzing Motion

Exercise 1: Thermocouple Characteristics

SOTM LAB: P16 OHM S LAW I. TEACHER NOTES & GUIDELINES TITLE OF LAB: Ohm s Law DEVELOPERS OF LAB:

Transcription:

MCP Scrubber Monitoring Hannah Tomio August 18, 2015 1 Introduction The scrubber is a device that bombards microchannel plates (MCP s) with electrons, thus scrubbing them. This is done both to stabilize the gain of the MCPs and to, as the name would suggest, clean them of any residue. As detailed by Tyler Lutz in his collection of design documents 1, a mercury vapor bulb and a nichrome layer on a fixed MCP serve as the scrubber s electron source. The number of electrons is then amplified by the fixed MCP. The MCPs that are being scrubbed (the scrubbees) are situated between the fixed MCP and an anode. A voltage is applied between the nichrome layer and the anode to accelerate the stream of electrons towards the scrubbees. A uniform magnetic field is created with two pairs of Helholtz coils, placed orthogonally to each other at the sides of the MCP s in order to ensure a uniform spread of electrons. 2 Measurements Over the course of the scrubber s scrubbing cycle, we would like to take several measurements: temperature, pressure, and the residual gases present. This lab currently has several thermocouples, a Pfeiffer Compact FullRange Gauge PKR 251 2, and an SRS Residual Gas Analyzer 3 available to take these measurements, as well as a Raspberry Pi Model B 4 to control and log these devices and their outputs. Instead of a Gertboard 5, however, we will be using a LabJack U6 Pro 6 to extend the analog inputs of the Pi. 3 Components We will be using the following: Pfeiffer Compact FullRange Gauge PKR 251 This is a gauge designed for vacuum measurement in the pressure range of 5x10 9 to 1000 mbarr. We will use it to measure the pressure inside the scrubber. Raspberry Pi Model B The Raspberry Pi is a low cost, low power computer running a Debian-based Linux distribution. It can be remotely accessed via ssh, and will run the monitoring program. 1 psec.uchicago.edu/library/doclib/documents/230 2 www.pfeiffer-vacuum.com/en/products/measurement/activeline/activeline-gauges/?detailpdoid=16099 3 www.thinksrs.com/products/rga.htm 4 https://www.raspberrypi.org/documentation 5 https://www.sparkfun.com/products/retired/11773 6 http://labjack.com/u6 1

LabJack U6 Pro This is a multifunction DAQ with 14 analog inputs with ranges of ±10, ±1, ±0.1, and ±0.01 volts and a 22-bit effective resolution. Thus it can directly measure raw thermocouple signals. While LabJack provides Windows software to easily log inputs, it also provides a Linux driver and Python module (LabJackPython) which we will be using to communicate with the U6 from the Raspberry Pi. CB37 Terminal Board The CB37 board 7 provides screw terminals for the DB37 connector on the LabJack U6, thus providing screw terminals for all 14 analog inputs. 5 K-Type Surface-mount Thermocouples SA1XL These thermocouples 8 have response times of less than 0.15 seconds and temperature ranges of 73 degrees Celsius to 315 degrees Celsius. We will use them to measure the temperature of the scrubber. OMEGABOND 400 Cement A high temperature, air set cement 9 rated to 1427 C, for adhering the thermocouples to the scrubber. ACDC Converter This AC to DC wall mounted adapter 10 provides 24 volts (at 0.5 amps) and will be used to power the Pfeiffer Compact FullRange Gauge. 4 Infrastructure and Maintenance 4.1 Setup The setup of this system is very simple only minor soldering will be necessary. 1. Connect the CB37 to the Labjack via the DB37 connector on the Labjack. 2. Connect the LabJack to the Raspberry Pi via a USB A-to-B cord. 3. Connect the thermocouples to the screw terminals of the CB37, with their probes cemented to the scrubber where needed. Make sure they are in the correct orientation! 4. Cut the connector end off of the Pfeiffer gauge sensor cable 11 and strip to reveal the wires within. 5. Pins 4 and 5 (yellow wire and grey wire, respectively) must go to the ACDC wall adapter, with pin 4 going to the supply and pin 5 going to the ground. Pins 2 (brown wire) and 3 (green wire) must connect to the CB37, with pin 2 going to the analog input and pin 3 going to the gound. Pin 1 (white wire) and the shield should go to ground as well. Soldering a PCB board to help connect these wires is a good idea. 7 http://labjack.com/catalog/cb37-terminal-board-rev-21 8 http://www.omega.com/pptst/sa1xl.html 9 http://www.omega.com/pptst/sa1xl.html 10 http://www.digikey.com/product-detail/en/swi12-24-n-sc/t1284-nd/5052006 11 https://www.pfeiffer-vacuum.com/en/products/measurement/activeline/ activeline-accessories/?detailpdoid=16130 2

6. Connect the Raspberry Pi to the internet via the ethernet port and plug in the Raspberry Pi s power supply. Currently the system is not capable of running the RGA, however configuring it to do so shouldn t be too difficult. You must connect the pi to the RGA with a USB to RS232 cable (provided in the electronics box) and adapt Eric Spieglan s rgadev.py (in the Margherita- Code folder) code. Figure 1: Diagram of the setup inside the electronics box 4.2 Logging The Raspberry Pi runs a Python program called scrubberpi.py to read voltages from the LabJack, convert to temperature or pressure measurements, and record these measurements in a text file. Conveniently, LabJack provides a Python module to connect to the U6, which our logging program uses. The conversion equations and their constants for K-type thermocouples can be found at the National Institute of Standards and Technology s website srdata.nist.gov/its90/main/. The code for this program can be found in the appendices of this manual. 1. To start the logging program, first ssh into the Raspberry Pi. For this particular pi, 3

the ip address is 205.208.20.42, the username is pi, and the password is forceevanidmegapolisconversantly. 2. Using the console of the Raspberry pi, go to the folder ScrubberCode and call sudo python scrubberpi.py. Any errors that occur will be printed to the console. This program will run indefinitely, unless you do a keyboard interrupt, kill the process directly, or the LabJack becomes disconnected. 3. If you would like to read the measurements as they are logged, you should run the program in the background instead (call sudo python scrubberpi.py & ), then go to the logs folder and call tail -f nameoffile. The files will be named according to this format: temp-mm-dd-yy.txt and pressure-mm-dd-yy.txt with the mm being the month, dd being the day, and yy being the year. 4. To graph the data, there is a basic matplotlib plotter program included in the appendicies. The data can also be graphed in many other ways (MATLAB, etc). To use the included matplotlib program, you must first combine the data files into one file (if it is not already one file). Use the combine files program, but change the names of the files in the code to the names of the files you would like to combine. Then you may use the pressure plotter or temp plotter functions to plot your graphs. Figure 2: Plots of temperature and pressure from a vacuum bakeout 4.3 Maintenance After the setup of this system is complete and the final configuration is established, the system will be housed in an aluminum enclosure with the wires properly strain relieved. Except for checking the secure connections of the wires, there is little maintenance that needs to be done. The code and any necessary modules can be found on the project website, at psec.uchicago.edu/code, and of course on the Raspberry Pi itself. Appendices Listed here is all of the code used to run the monitoring system. 4

A Main Code 1 # This code measures and l o g s temperature from 5 thermocouples and p r e s s u r e from a P f e i f f e r PK 251 gauge. The output f i l e s w i l l be l o c a t e d in the l o g s f o l d e r. The l o g g i n g program can be stopped with a keyboard i n t e r r u p t, but w i l l catch o t h e r e r r o r s and p r i n t them to c o n s o l e. 2 3 import u6 4 import time 5 import p f e i f f e r G a u g e 6 import rgadev 7 import typekthermocouple 8 9 10 # These d e s c r i b e t he i n put channels on the l a b j a c k in use. Channels 0 5 are reading d i f f e r e n t thermocouples 11 # and channel 6 i s reading from the P f e i f f e r gauge. 12 pgaugechannel = 6 13 thermochannel= [ 0, 1, 2, 3, 4, 5 ] 14 15 # Declare a l a b j a c k U6 o b j e c t from the u6 module 16 labjack = u6. U6( ) 17 18 19 # This code w i l l run i n d e f i n i t e l y, i t can be q u i t with a keyboard i n t e r r u p t ( C t r l C) 20 while True : 21 try : 22 # Open the f i l e s the measurements w i l l be l o g g e d in. These are l o c a t e d in the l o g s f o l d e r 23 temp = open (. / l o g s /temp {}. txt. format ( time. s t r f t i m e ( %m %d %y ) ), a+ ) 24 p r e s s u r e = open (. / l o g s / pressure {}. txt. format ( time. s t r f t i m e ( %m %d %y ) ), a+ ) 25 26 # The c o l d j u n c t i o n temperature in c e l s i u s, compensating f o r the screw j u n c t i o n temperature 27 coldjunctiontemp = labjack. gettemperature ( ) + 2. 5 273.15 28 29 temps = [ ] 30 for a in thermochannel : 31 # For each thermocouple, g e t the i t s v o l t a g e in m i l l i v o l t s 32 t v o l t = ( ( labjack. getain ( a, r e s o l u t i o n I n d e x = 12, gainindex = 3) 1000) + 33 typekthermocouple. temptovolts ( coldjunctiontemp ) ) 34 temps. append ( s t r ( typekthermocouple. voltstotemp ( t v o l t ) ) ) 35 entry = (,. j o i n ( temps ) +, + s t r ( time. time ( ) ) + \n ) 36 temp. w r i t e ( entry ) 37 38 # Get t he p r e s s u r e gauge s v o l t a g e 39 pvolt = labjack. getain ( pgaugechannel, r e s o l u t i o n I n d e x = 12, gainindex = 0) 40 c u r r e n t p r e s s u r e = p f e i f f e r G a u g e. voltstopressure ( pvolt ) 41 p r e s s u r e. w r i t e ( {},{}\n. format ( c u r r e n t p r e s s u r e, time. time ( ) ) ) 42 time. s l e e p ( 1 ) 43 except Exception as e : 44 # This w i l l catch a l l e x c e p t i o n s and simply p r i n t them to console, a l l o w i n g 5

45 # the program to i n d e f i n i t e l y 46 print e 47 pass 48 f i n a l l y : 49 # Upon e x i t i n g, the f i l e d e s c r i p t o r s must be c l o s e d 50 temp. c l o s e ( ) 51 p r e s s u r e. c l o s e ( ) B Thermocouple Module 1 # This module d e s c r i b e s the approximate r e f e r e n c e f u n c t i o n s and i n v e r s e f u n c t i o n s f o r type K thermocouples. The r e f e r e n c e f u n c t i o n s g i v e the t h e r m o e l e c t r i c v o l t a g e, E, as a f u n c t i o n o f temperature, T, where E i s i n mv and T i s in c e l s i u s. The i n v e r s e f u n c t i o n s g i v e temperature, T, as a f u n c t i o n o f the t h e r m o e l e c t r i c v o l t a g e, E, where E i s in mv and T i s in c e l s i u s. 2 3 # A l l c o e f f i c i e n t s are from h t t p :// s r d a t a. n i s t. gov / i t s 9 0 /main/ 4 5 6 import math 7 8 # C o e f f i c i e i n t s f o r r e f e r e n c e f u n c t i o n s 9 10 # For 270 d e g r e e s C to 0 d e g r e e s C 11 temptovoltscoeff1 = [ 12 0. 0 E0, 13 0.394501280250E 1, 14 0.236223735980E 4, 15 0. 328589067840E 6, 16 0. 499048287770E 8, 17 0. 675090591730E 10, 18 0. 574103274280E 12, 19 0. 310888728940E 14, 20 0. 104516093650E 16, 21 0. 198892668780E 19, 22 0. 163226974860E 22 23 ] 24 25 # For 0 d e g r e e s C to 1372 d e g r e e s C 26 temptovoltscoeff2 = [ 27 0. 176004136860E 1, 28 0.389212049750E 1, 29 0.185587700320E 4, 30 0. 994575928740E 7, 31 0.318409457190E 9, 32 0. 560728448890E 12, 33 0.560750590590E 15, 34 0. 320207200030E 18, 35 0.971511471520E 22, 36 0. 121047212750E 25 37 ] 38 39 # For 0 d e g r e e s C to 1372 d e g r e e s C 6

40 temptovoltscoeff3 = [ 41 0.118597600000E0, 42 0. 118343200000E 3, 43 0.126968600000E3 44 ] 45 46 # C o e f f i c i e n t s f o r the i n v e r s e f u n c t i o n s 47 48 # For 200 d e g r e e s C to 0 d e g r e e s C 49 # For 5.891 mv t o 0 mv 50 voltstotempcoeff1 = [ 51 0. 0 E0, 52 2.5173462E1, 53 1.1662878E0, 54 1.0833638E0, 55 8.977354E 1, 56 3.7342377E 1, 57 8.6632643E 2, 58 1.0450598E 2, 59 5.1920577E 4 60 ] 61 62 # For 0 d e g r e e s C to 500 d e g r e e s C 63 # For 0 mv to 20.644 mv 64 voltstotempcoeff2 = [ 65 0. 0 E0, 66 2.508355E1, 67 7.860106E 2, 68 2.503131E 1, 69 8.31527E 2, 70 1.228034E 2, 71 9.804036E 4, 72 4.41303E 5, 73 1.057734E 6, 74 1.052755E 8 75 ] 76 77 # For 500 d e g r e e s C to 1372 d e g r e e s C 78 # For 20.644 mv to 54.886 mv 79 voltstotempcoeff3 = [ 80 1.318058E2, 81 4.830222E1, 82 1.646031E0, 83 5.464731E 2, 84 9.650715E 4, 85 8.802193E 6, 86 3.11081E 8 87 ] 88 89 def voltstotemp ( v o l t s ) : 90 i f v o l t s < 5.891: 91 raise Exception ( Undefined thermocouple v o l t a g e : v o l t a g e underrange ) 92 i f v o l t s > 5 4. 8 8 6 : 93 raise Exception ( Undefined thermocouple v o l t a g e : v o l t a g e overrange ) 94 i f 5.891 <= v o l t s < 0 : 95 c o e f f i c i e n t s = voltstotempcoeff1 96 e l i f 0 <= v o l t s < 2 0. 6 4 4 : 7

97 c o e f f i c i e n t s = voltstotempcoeff2 98 else : 99 c o e f f i c i e n t s = voltstotempcoeff3 100 temp = 0 101 power = 0 102 for d in c o e f f i c i e n t s : 103 temp += d ( v o l t s power ) 104 power += 1 105 return temp 106 107 def temptovolts ( temp ) : 108 i f temp < 270: 109 raise Exception ( Undefined temperature : temperature underrange ) 110 i f temp > 1372: 111 raise Exception ( Undefined temperature : temperature overrange ) 112 i f 270 <= temp < 0 : 113 v o l t s = 0 114 power = 0 115 c o e f f i c i e n t s = temptovoltscoeff1 116 for c in c o e f f i c i e n t s : 117 v o l t s += c ( temp power ) 118 power += 1 119 return v o l t s 120 else : 121 v o l t s = 0 122 power = 0 123 constant = 0 124 c o e f f i c i e n t s = temptovoltscoeff2 125 for c in c o e f f i c i e n t s : 126 v o l t s += ( c ( temp power ) ) 127 power += 1 128 129 extended = ( temptovoltscoeff3 [ 0 ] math. exp ( temptovoltscoeff3 [ 1 ] 130 ( temp temptovoltscoeff3 [ 2 ] ) 2) ) 131 return v o l t s + extended C Pressure Module 1 # This module c o n t a i n s t he f u n c t i o n t h a t c o n v e r t s the P f e i f f e r gauge v o l t a g e to pressure, as d e s c r i b e d the P f e i f f e r Gauge PKR 251 manual, as found here : 2 # h t t p :// edg. uchicago. edu/ t u t o r i a l s /pumps/bg5155ben. pdf in appendix A. 3 # I f an e r r o r occurs, t h i s f u n c t i o n r a i s e s an e x c e p t i o n which w i l l be caught by the main program and p r i n t e d to c o n s o l e. 4 5 6 # turns gauge v o l t a g e i n t o a p r e s s u r e in mbarr 7 def voltstopressure ( v o l t s ) : 8 i f 8. 6 < v o l t s <= 9. 5 : 9 raise Exception ( Undefined pgauge v o l t a g e : v o l t a g e overrange ) 10 e l i f v o l t s > 9. 5 : 11 raise Exception ( Pgauge s e n s o r e r r o r : P i r a n i d e f e c t i v e ) 12 e l i f 0. 5 <= v o l t s < 1. 8 2 : 13 raise Exception ( Undefined pgauge v o l t a g e : v o l t a g e underrange ) 8

14 e l i f v o l t s < 0. 5 : 15 raise Exception ( Pgauge s e n s o r e r r o r ) 16 p r e s s u r e = 1 0 ( ( 1. 6 6 7 v o l t s ) 1 1. 3 3 ) 17 return p r e s s u r e D Plotting 1 # Basic p l o t t e r using p y p l o t 2 3 import numpy a s np 4 import m a t p l o t l i b 5 m a t p l o t l i b. use ( Agg ) 6 import m a t p l o t l i b. pyplot as p l t 7 8 def t e m p p l o t t e r ( f i l e n a m e ) : 9 thermo0, thermo1, thermo2, thermo3, thermo4, thermo5, time = np. l o a d t x t ( filename, 10 dtype=f l o a t, d e l i m i t e r =,, unpack = True ) 11 p l t. p l o t ( time, thermo0, c o l o r = r ) 12 p l t. p l o t ( time, thermo1, c o l o r = b ) 13 p l t. p l o t ( time, thermo2, c o l o r = g ) 14 p l t. p l o t ( time, thermo3, c o l o r = m ) 15 p l t. p l o t ( time, thermo4, c o l o r = k ) 16 p l t. p l o t ( time, thermo5, c o l o r = gold ) 17 p l t. t i t l e ( Thermocouples ) 18 p l t. x l a b e l ( Time ( seconds ) ) 19 p l t. y l a b e l ( Temperature ( C e l s i u s ) ) 20 p l t. s a v e f i g ( Thermocouples ) 21 22 def p r e s s u r e p l o t t e r ( f i l e n a m e ) : 23 pressure, time = np. l o a d t x t ( filename, 24 dtype=f l o a t, d e l i m i t e r =,, unpack = True ) 25 p l t. p l o t ( time, 1/ pressure, c o l o r = blue ) 26 #p l t. ylim ( ( 0, 0.000006) ) 27 p l t. t i t l e ( I n v e r s e Pressure ) 28 p l t. x l a b e l ( Time ( seconds ) ) 29 p l t. y l a b e l ( Pressure ( mbarr ) ) 30 p l t. s a v e f i g ( I n v e r s e Pressure ) 31 32 #use t h i s to combine f i l e s o f m u l t i p l e days to p l o t a f u l l run 33 #you l l have to change the f i l e names d i r e c t l y here 34 def c o m b i n e f i l e s ( ) : 35 #t h i s opens in append mode, so make sure you d e l e t e any f i l e s with the same name b e f o r e running t h i s code 36 f o u t = open ( t o t a l p r e s s u r e. txt, a ) #be c a r e f u l! 37 for fname in (. / l o g s / pressure 07 15 15. txt,. / l o g s / pressure 07 16 15. txt,. / l o g s / pressure 07 17 15. txt, 38. / l o g s / pressure 07 18 15. txt,. / l o g s / pressure 07 19 15. txt,. / l o g s / pressure 07 20 15. txt ) : 39 f = open ( fname ) 40 for l i n e in f : 41 f o u t. w r i t e ( l i n e ) 42 f. c l o s e ( ) 43 f o u t. c l o s e ( ) 9

44 45 #c o m b i n e f i l e s ( ) 46 t e m p p l o t t e r ( totaltemps. txt ) 47 p r e s s u r e p l o t t e r ( t o t a l p r e s s u r e. txt ) 10