<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://daq00.triumf.ca/HaicuWiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lmartin</id>
	<title>HaicuWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://daq00.triumf.ca/HaicuWiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lmartin"/>
	<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php/Special:Contributions/Lmartin"/>
	<updated>2026-11-25T15:06:09Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Magnetic_Trap&amp;diff=153</id>
		<title>Magnetic Trap</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Magnetic_Trap&amp;diff=153"/>
		<updated>2026-11-18T23:12:20Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Software details */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= General =&lt;br /&gt;
&lt;br /&gt;
[[File:Magnetic trap model.png|300x300px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Mechanical =&lt;br /&gt;
&lt;br /&gt;
= Electrical =&lt;br /&gt;
&lt;br /&gt;
The Bitter magnets (top and bottom gates, booster coil, and quadrupole) are powered by dedicated high current power supplies. Since the bottom gate needs to ramp very quickly (less than 1ms), it is powered by an AE Techron 8500 amplifier ([[Equipment_Manuals#AE_Techron_8500|documentation]]), which can provide a current output proportional to a control voltage signal with a very fast and reproducible reaction time. This is a modular device, that currently contains two units capable of delivering a steady state current of 100A each for a total of 200A. In the future this will be upgraded to the full six-module unit for up to 600A gate current.&lt;br /&gt;
&lt;br /&gt;
All other magnets are powered by Sorensen SGX10x1200 DC supplies ([[Equipment_Manuals#Sorensen_SGX10X1200|documentation]]) that are capable of delivering 1200A each. While gate and booster coils are designed for up to 400A, the quad will ideally run above 1200A eventually. For this purpose two SGX will be configured in leader-follower mode to be able to provide up to 2400A. Currently only one SGX is used per magnet.&lt;br /&gt;
&lt;br /&gt;
= Water cooling =&lt;br /&gt;
&lt;br /&gt;
= Magnet Control System =&lt;br /&gt;
&lt;br /&gt;
== SGX ==&lt;br /&gt;
&lt;br /&gt;
The Sorensen power supplies can be remotely controlled in two ways:&lt;br /&gt;
&lt;br /&gt;
* via SCPI text commands over ethernet (also GPIB or RS232, but this is not relevant for us)&lt;br /&gt;
* via analog control and monitoring voltages (0-10V or 0-5V), either in &#039;&#039;&#039;C&#039;&#039;&#039;ontrolled &#039;&#039;&#039;C&#039;&#039;&#039;urrent or &#039;&#039;&#039;C&#039;&#039;&#039;ontrolled &#039;&#039;&#039;V&#039;&#039;&#039;oltage mode&lt;br /&gt;
&lt;br /&gt;
== AE Techron 8500 ==&lt;br /&gt;
&lt;br /&gt;
The AE Techron is quite bare bones in comparison. While it, too, can operate in &#039;&#039;&#039;CC&#039;&#039;&#039; or &#039;&#039;&#039;CV&#039;&#039;&#039; mode, it does not have any user interface. It simply generates a signal based on an analog control voltage (0-10V) and provides some monitoring voltages, proportional to actual delivered voltage and actual delivered current. Some limited diagnostic values (like amplifier temperature) are available on a separate connector.&lt;br /&gt;
&lt;br /&gt;
== Magnet Control Box (&amp;quot;piBox&amp;quot;) ==&lt;br /&gt;
&lt;br /&gt;
Since the AE Techron needs to be controlled by analog voltage, it was decided to do the same for the SGX, to make the system easier to understand. Since timing requirements are modest (of the order of 100 microseconds) we decided to provide this control voltage from a raspberry pi with DAC extension board (&amp;quot;hat&amp;quot;). An ADC is also needed for the monitoring voltages. Originally we decided on the [[Equipment_Manuals#Waveshare_AD/DA_hat|WaveShare AD/DA board]], which combines both functionalities, but during development opted for the [[Equipment_Manuals#CONTEC_CPI-AO-1602LC|Contec CPI-AO-1602LC]] for the DAC portion, because its range of 0-10V matches the 0-10V input range of the AE Techron.&lt;br /&gt;
&lt;br /&gt;
=== Operating principle ===&lt;br /&gt;
&lt;br /&gt;
Sequencing and timing between devices is provided by the PPG, which accepts &#039;&#039;READY&#039;&#039;, &#039;&#039;VETO&#039;&#039;, and &#039;&#039;FINISHED&#039;&#039; TTL signals on its inputs, and supplies trigger TTL signals on its outputs. In order for a magnet to be ramped, this is the simple order of operations on the raspberry pi:&lt;br /&gt;
# a ramp is loaded into the raspberry pi. This ramp takes the shape of a list of times and current set points.&lt;br /&gt;
# the raspberry pi gets &#039;&#039;ARMED&#039;&#039;, i.e. it monitors the GPIO pin designated its &#039;&#039;TRIGGER&#039;&#039; for a rising edge.&lt;br /&gt;
# the raspberry pi sets its &#039;&#039;READY&#039;&#039; pin high (this is connected to one of the &#039;&#039;GATE&#039;&#039; pins of the PPG)&lt;br /&gt;
# upon receiving a trigger, the pi steps through the ramp, setting the DAC output accordingly. (It does its best to follow the ramp, skipping steps if their time passed before the previous step finished.) Depending on operational modes, it keeps track of whether steps succeed/&lt;br /&gt;
# after finishing the ramp, &#039;&#039;READY&#039;&#039; gets set low, and if ramping was successful, &#039;&#039;FINISHED&#039;&#039; gets set high.&lt;br /&gt;
&lt;br /&gt;
The PPG, meanwhile, is usually set up to send a sequence of trigger signals synchronized to the next external trigger (coming from the laser pulser) after being started, but only if all selected &#039;&#039;GATE&#039;&#039; inputs are high and all &#039;&#039;VETO&#039;&#039; inputs are low.&lt;br /&gt;
&lt;br /&gt;
=== Ramp Queue ===&lt;br /&gt;
&lt;br /&gt;
For more complex operation, the pi can hold a queue of ramps. This means it will loop through steps 1-5 for each entry in the queue, waiting for a new trigger for each.&lt;br /&gt;
&lt;br /&gt;
=== Software details ===&lt;br /&gt;
&lt;br /&gt;
For more details about the implementation, see the [https://gitlab.triumf.ca/haicu/magnet_control git repository] and [[Magnet Control Software]]. For the PPG (sequencer) client, see [https://gitlab.triumf.ca/haicu/ppg_client git repository], for the firmware, see [https://gitlab.triumf.ca/haicu/ppg_cb_firmware git repository]. Further documentation for both is in [[Programmable Pulse Generator (PPG)]].&lt;br /&gt;
&lt;br /&gt;
=== Operation ===&lt;br /&gt;
&lt;br /&gt;
= Field Characterization =&lt;br /&gt;
&lt;br /&gt;
* [[Field Mapping Probe]]&lt;br /&gt;
&lt;br /&gt;
* [[Gate Coil Timing Measurements]]&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Magnet_Control_Software&amp;diff=152</id>
		<title>Magnet Control Software</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Magnet_Control_Software&amp;diff=152"/>
		<updated>2026-11-13T22:47:08Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Reserving cores and Governor */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
&lt;br /&gt;
The ramps produced by the pi must be as regular as possible, and react to the trigger signal with minimal, reproducible, delay. While a delay of up to a few milliseconds can be compensated for, this is only true if the delay is at least predictable to within less than 100 microseconds. The pi should also be able to log readback values both during ramp and steady-state, but this must not impact the timing of the ramps.&lt;br /&gt;
As a standard linux system, the raspberry pi is not ideal for this task, first and foremost because background processes can occupy the CPU at any given time, delaying the execution of other operations. The raspberry pi was chosen anyway because of its ease of use and customization.&lt;br /&gt;
&lt;br /&gt;
== Approach ==&lt;br /&gt;
&lt;br /&gt;
The main approach to achieving these requirements is multithreading. The pi4 has 4 CPU cores, so can run 4 independent threads in parallel without impacting each threads function. The magnet control frontend runs several threads itself, but most of those are not extremely time critical and can share a core with each other or the linux system itself.&lt;br /&gt;
&lt;br /&gt;
=== Classes ===&lt;br /&gt;
&lt;br /&gt;
In addition to the MIDAS frontend itself, the code is organized mostly into two classes:&lt;br /&gt;
&lt;br /&gt;
==== GpioHandler ====&lt;br /&gt;
&lt;br /&gt;
This object handles one &#039;&#039;TRIGGER&#039;&#039; pin, one &#039;&#039;READY&#039;&#039; pin, and one &#039;&#039;FINISHED&#039;&#039; pin. It can be attached to one or two [[#MagPs]] objects.&lt;br /&gt;
&lt;br /&gt;
==== MagPs ====&lt;br /&gt;
&lt;br /&gt;
This abstract class has two implementations: AeTech and Sgx. During construction it can be set up to operate in different modes, independently for control and for monitoring. Not all modes are available for both sub-classes. The modes are:&lt;br /&gt;
&lt;br /&gt;
* SCPI: Use the SCPI text interface (Sgx only).&lt;br /&gt;
* ADDA: Use the WaveShare AD/DA board (not fully tested for control, only used for readback)&lt;br /&gt;
* CAIO: Use the CAIO hat. (Would need hardware change to use for readback.)&lt;br /&gt;
&lt;br /&gt;
Specifically for readback, it&#039;s possible to read back SCPI values, even if the general mode is set to ADDA.&lt;br /&gt;
&lt;br /&gt;
=== Threads ===&lt;br /&gt;
&lt;br /&gt;
These are the threads running one the pi at any given time, as well as what class they belong to, and whether they get a reserved core. Only the ramping threads get reserved cores, since only they are time-critical.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Frontend threads&lt;br /&gt;
|-&lt;br /&gt;
! Thread !! Class !! Duration !! Purpose !! dedicated core&lt;br /&gt;
|-&lt;br /&gt;
| Main || frontend || permanent || MIDAS interface, housekeeping || no&lt;br /&gt;
|-&lt;br /&gt;
| ReadValues || MagPs || permanent || readback from hardware || no&lt;br /&gt;
|-&lt;br /&gt;
| SendData || frontend || periodic || transfer readback values to MIDAS || no&lt;br /&gt;
|-&lt;br /&gt;
| ArmedLoop || frontend || while armed/ramping || start (and wait for) ramp threads || no&lt;br /&gt;
|-&lt;br /&gt;
| RampOnTrg || GpioHandler || while armed/ramping || ramp PS on trigger || yes&lt;br /&gt;
|-&lt;br /&gt;
| WaitThread || GpioHandler || while armed/ramping || ramp PS on trigger (if two PS on same GPIO) || yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Reserving cores and Governor ====&lt;br /&gt;
&lt;br /&gt;
On a linux system like the raspberry pi, running threads on dedicated cores consists of two steps:&lt;br /&gt;
&lt;br /&gt;
# marking a core as unavailable for system-assigned processes&lt;br /&gt;
# manually assign this reserved core to a given thread&lt;br /&gt;
&lt;br /&gt;
On the raspberry pi, step 1 is done by adding the &#039;&#039;isolcpus&#039;&#039; directive to &#039;&#039;/boot/firmware/cmdline.txt&#039;&#039;, e.g.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
console=serial0,115200 console=tty1 ip=dhcp rw root=/dev/nfs panic=60 isolcpus=2-3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Step 2 is accomplished with the &#039;&#039;pthread_setaffinity_np&#039;&#039; call in the C++ code.&lt;br /&gt;
&lt;br /&gt;
As we discovered when testing the timing of this system, it&#039;s helpful to change one more system setting:&lt;br /&gt;
&lt;br /&gt;
By default, the system is set up to scale down the CPU frequency when idle. This means it may &amp;quot;notice&amp;quot; the trigger signal slower than desired. In order to fix this, the so-called &#039;&#039;&#039;governor&#039;&#039;&#039; needs to be switched from this default setting &#039;&#039;ondemand&#039;&#039; to the setting &#039;&#039;performance&#039;&#039;, which keeps the CPU at maximum frequency regardless of load.&lt;br /&gt;
&lt;br /&gt;
Since this is mostly relevant to the GPIO handling, it made sense to add the relevant function call to the constructor and destructor of GpioHandler. This way the system should revert to &#039;&#039;ondemand&#039;&#039; when the frontend is not running, reducing power consumption and heat.&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Magnet_Control_Software&amp;diff=151</id>
		<title>Magnet Control Software</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Magnet_Control_Software&amp;diff=151"/>
		<updated>2026-11-13T21:22:13Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
&lt;br /&gt;
The ramps produced by the pi must be as regular as possible, and react to the trigger signal with minimal, reproducible, delay. While a delay of up to a few milliseconds can be compensated for, this is only true if the delay is at least predictable to within less than 100 microseconds. The pi should also be able to log readback values both during ramp and steady-state, but this must not impact the timing of the ramps.&lt;br /&gt;
As a standard linux system, the raspberry pi is not ideal for this task, first and foremost because background processes can occupy the CPU at any given time, delaying the execution of other operations. The raspberry pi was chosen anyway because of its ease of use and customization.&lt;br /&gt;
&lt;br /&gt;
== Approach ==&lt;br /&gt;
&lt;br /&gt;
The main approach to achieving these requirements is multithreading. The pi4 has 4 CPU cores, so can run 4 independent threads in parallel without impacting each threads function. The magnet control frontend runs several threads itself, but most of those are not extremely time critical and can share a core with each other or the linux system itself.&lt;br /&gt;
&lt;br /&gt;
=== Classes ===&lt;br /&gt;
&lt;br /&gt;
In addition to the MIDAS frontend itself, the code is organized mostly into two classes:&lt;br /&gt;
&lt;br /&gt;
==== GpioHandler ====&lt;br /&gt;
&lt;br /&gt;
This object handles one &#039;&#039;TRIGGER&#039;&#039; pin, one &#039;&#039;READY&#039;&#039; pin, and one &#039;&#039;FINISHED&#039;&#039; pin. It can be attached to one or two [[#MagPs]] objects.&lt;br /&gt;
&lt;br /&gt;
==== MagPs ====&lt;br /&gt;
&lt;br /&gt;
This abstract class has two implementations: AeTech and Sgx. During construction it can be set up to operate in different modes, independently for control and for monitoring. Not all modes are available for both sub-classes. The modes are:&lt;br /&gt;
&lt;br /&gt;
* SCPI: Use the SCPI text interface (Sgx only).&lt;br /&gt;
* ADDA: Use the WaveShare AD/DA board (not fully tested for control, only used for readback)&lt;br /&gt;
* CAIO: Use the CAIO hat. (Would need hardware change to use for readback.)&lt;br /&gt;
&lt;br /&gt;
Specifically for readback, it&#039;s possible to read back SCPI values, even if the general mode is set to ADDA.&lt;br /&gt;
&lt;br /&gt;
=== Threads ===&lt;br /&gt;
&lt;br /&gt;
These are the threads running one the pi at any given time, as well as what class they belong to, and whether they get a reserved core. Only the ramping threads get reserved cores, since only they are time-critical.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Frontend threads&lt;br /&gt;
|-&lt;br /&gt;
! Thread !! Class !! Duration !! Purpose !! dedicated core&lt;br /&gt;
|-&lt;br /&gt;
| Main || frontend || permanent || MIDAS interface, housekeeping || no&lt;br /&gt;
|-&lt;br /&gt;
| ReadValues || MagPs || permanent || readback from hardware || no&lt;br /&gt;
|-&lt;br /&gt;
| SendData || frontend || periodic || transfer readback values to MIDAS || no&lt;br /&gt;
|-&lt;br /&gt;
| ArmedLoop || frontend || while armed/ramping || start (and wait for) ramp threads || no&lt;br /&gt;
|-&lt;br /&gt;
| RampOnTrg || GpioHandler || while armed/ramping || ramp PS on trigger || yes&lt;br /&gt;
|-&lt;br /&gt;
| WaitThread || GpioHandler || while armed/ramping || ramp PS on trigger (if two PS on same GPIO) || yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Reserving cores and Governor ====&lt;br /&gt;
&lt;br /&gt;
On a linux system like the raspberry pi, running threads on dedicated cores consists of two steps:&lt;br /&gt;
&lt;br /&gt;
# marking a core as unavailable for system-assigned processes&lt;br /&gt;
# manually assign this reserved core to a given thread&lt;br /&gt;
&lt;br /&gt;
On the raspberry pi, step 1 is done by adding the &#039;&#039;isolcpus&#039;&#039; directive to &#039;&#039;/boot/firmware/cmdline.txt&#039;&#039;, e.g.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
console=serial0,115200 console=tty1 ip=dhcp rw root=/dev/nfs panic=60 isolcpus=2-3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Step 2 is accomplished with the &#039;&#039;pthread_setaffinity_np&#039;&#039; call in the C++ code.&lt;br /&gt;
&lt;br /&gt;
As we discovered when testing the timing of this system, it&#039;s helpful to change one more system setting:&lt;br /&gt;
&lt;br /&gt;
By default, the system is set up to scale down the CPU frequency when idle. This means it may &amp;quot;notice&amp;quot; the trigger signal slower than desired. In order to fix this, the so-called &#039;&#039;&#039;governor&#039;&#039;&#039; needs to be switched from this default setting &#039;&#039;ondemand&#039;&#039; to the setting &#039;&#039;performance&#039;&#039;, which keeps the CPU at maximum frequency regardless of load.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FIXME: It appears this is not currently set up in magppis. Confirm and document!&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Magnet_Control_Software&amp;diff=150</id>
		<title>Magnet Control Software</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Magnet_Control_Software&amp;diff=150"/>
		<updated>2026-11-05T22:06:43Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: Created page with &amp;quot;== Requirements ==  The ramps produced by the pi must be as regular as possible, and react to the trigger signal with minimal, reproducible, delay. While a delay of up to a few milliseconds can be compensated for, this is only true if the delay is at least predictable to within less than 100 microseconds. The pi should also be able to log readback values both during ramp and steady-state, but this must not impact the timing of the ramps. As a standard linux system, the r...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Requirements ==&lt;br /&gt;
&lt;br /&gt;
The ramps produced by the pi must be as regular as possible, and react to the trigger signal with minimal, reproducible, delay. While a delay of up to a few milliseconds can be compensated for, this is only true if the delay is at least predictable to within less than 100 microseconds. The pi should also be able to log readback values both during ramp and steady-state, but this must not impact the timing of the ramps.&lt;br /&gt;
As a standard linux system, the raspberry pi is not ideal for this task, first and foremost because background processes can occupy the CPU at any given time, delaying the execution of other operations. The raspberry pi was chosen anyway because of its ease of use and customization.&lt;br /&gt;
&lt;br /&gt;
== Approach ==&lt;br /&gt;
&lt;br /&gt;
The main approach to achieving these requirements is multithreading. The pi4 has 4 CPU cores, so can run 4 independent threads in parallel without impacting each threads function. The magnet control frontend runs several threads itself, but most of those are not extremely time critical and can share a core with each other or the linux system itself.&lt;br /&gt;
&lt;br /&gt;
In addition to the MIDAS frontend itself, the code is organized mostly into two classes:&lt;br /&gt;
&lt;br /&gt;
=== GpioHandler ===&lt;br /&gt;
&lt;br /&gt;
This object handles one &#039;&#039;TRIGGER&#039;&#039; pin, one &#039;&#039;READY&#039;&#039; pin, and one &#039;&#039;FINISHED&#039;&#039; pin. It can be attached to one or two [[#MagPs]] objects.&lt;br /&gt;
&lt;br /&gt;
=== MagPs ===&lt;br /&gt;
&lt;br /&gt;
This abstract class has two implementations: AeTech and Sgx. During construction it can be set up to operate in different modes, independently for control and for monitoring. Not all modes are available for both sub-classes. The modes are:&lt;br /&gt;
==== SCPI ====&lt;br /&gt;
Use the SCPI text interface (Sgx only).&lt;br /&gt;
==== ADDA ====&lt;br /&gt;
Use the WaveShare AD/DA board (not fully tested for control, only used for readback)&lt;br /&gt;
==== CAIO ====&lt;br /&gt;
Use the CAIO hat. (Would need hardware change to use for readback.)&lt;br /&gt;
&lt;br /&gt;
Specifically for readback, it&#039;s possible to read back SCPI values, even if the general mode is set to ADDA.&lt;br /&gt;
&lt;br /&gt;
# MIDAS frontend interface: communicates with MIDAS and does all the housekeeping and logging. It runs all the time, but can be preempted by operating system calls etc.&lt;br /&gt;
# ReadValues: regularly (e.g. every 100ms) reads power supply readback values and DCCT voltages into running buffers. It too runs all the time, non-exclusive.&lt;br /&gt;
# ArmedLoop:&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Magnetic_Trap&amp;diff=149</id>
		<title>Magnetic Trap</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Magnetic_Trap&amp;diff=149"/>
		<updated>2026-11-05T20:57:28Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Magnet Control System */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= General =&lt;br /&gt;
&lt;br /&gt;
[[File:Magnetic trap model.png|300x300px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Mechanical =&lt;br /&gt;
&lt;br /&gt;
= Electrical =&lt;br /&gt;
&lt;br /&gt;
The Bitter magnets (top and bottom gates, booster coil, and quadrupole) are powered by dedicated high current power supplies. Since the bottom gate needs to ramp very quickly (less than 1ms), it is powered by an AE Techron 8500 amplifier ([[Equipment_Manuals#AE_Techron_8500|documentation]]), which can provide a current output proportional to a control voltage signal with a very fast and reproducible reaction time. This is a modular device, that currently contains two units capable of delivering a steady state current of 100A each for a total of 200A. In the future this will be upgraded to the full six-module unit for up to 600A gate current.&lt;br /&gt;
&lt;br /&gt;
All other magnets are powered by Sorensen SGX10x1200 DC supplies ([[Equipment_Manuals#Sorensen_SGX10X1200|documentation]]) that are capable of delivering 1200A each. While gate and booster coils are designed for up to 400A, the quad will ideally run above 1200A eventually. For this purpose two SGX will be configured in leader-follower mode to be able to provide up to 2400A. Currently only one SGX is used per magnet.&lt;br /&gt;
&lt;br /&gt;
= Water cooling =&lt;br /&gt;
&lt;br /&gt;
= Magnet Control System =&lt;br /&gt;
&lt;br /&gt;
== SGX ==&lt;br /&gt;
&lt;br /&gt;
The Sorensen power supplies can be remotely controlled in two ways:&lt;br /&gt;
&lt;br /&gt;
* via SCPI text commands over ethernet (also GPIB or RS232, but this is not relevant for us)&lt;br /&gt;
* via analog control and monitoring voltages (0-10V or 0-5V), either in &#039;&#039;&#039;C&#039;&#039;&#039;ontrolled &#039;&#039;&#039;C&#039;&#039;&#039;urrent or &#039;&#039;&#039;C&#039;&#039;&#039;ontrolled &#039;&#039;&#039;V&#039;&#039;&#039;oltage mode&lt;br /&gt;
&lt;br /&gt;
== AE Techron 8500 ==&lt;br /&gt;
&lt;br /&gt;
The AE Techron is quite bare bones in comparison. While it, too, can operate in &#039;&#039;&#039;CC&#039;&#039;&#039; or &#039;&#039;&#039;CV&#039;&#039;&#039; mode, it does not have any user interface. It simply generates a signal based on an analog control voltage (0-10V) and provides some monitoring voltages, proportional to actual delivered voltage and actual delivered current. Some limited diagnostic values (like amplifier temperature) are available on a separate connector.&lt;br /&gt;
&lt;br /&gt;
== Magnet Control Box (&amp;quot;piBox&amp;quot;) ==&lt;br /&gt;
&lt;br /&gt;
Since the AE Techron needs to be controlled by analog voltage, it was decided to do the same for the SGX, to make the system easier to understand. Since timing requirements are modest (of the order of 100 microseconds) we decided to provide this control voltage from a raspberry pi with DAC extension board (&amp;quot;hat&amp;quot;). An ADC is also needed for the monitoring voltages. Originally we decided on the [[Equipment_Manuals#Waveshare_AD/DA_hat|WaveShare AD/DA board]], which combines both functionalities, but during development opted for the [[Equipment_Manuals#CONTEC_CPI-AO-1602LC|Contec CPI-AO-1602LC]] for the DAC portion, because its range of 0-10V matches the 0-10V input range of the AE Techron.&lt;br /&gt;
&lt;br /&gt;
=== Operating principle ===&lt;br /&gt;
&lt;br /&gt;
Sequencing and timing between devices is provided by the PPG, which accepts &#039;&#039;READY&#039;&#039;, &#039;&#039;VETO&#039;&#039;, and &#039;&#039;FINISHED&#039;&#039; TTL signals on its inputs, and supplies trigger TTL signals on its outputs. In order for a magnet to be ramped, this is the simple order of operations on the raspberry pi:&lt;br /&gt;
# a ramp is loaded into the raspberry pi. This ramp takes the shape of a list of times and current set points.&lt;br /&gt;
# the raspberry pi gets &#039;&#039;ARMED&#039;&#039;, i.e. it monitors the GPIO pin designated its &#039;&#039;TRIGGER&#039;&#039; for a rising edge.&lt;br /&gt;
# the raspberry pi sets its &#039;&#039;READY&#039;&#039; pin high (this is connected to one of the &#039;&#039;GATE&#039;&#039; pins of the PPG)&lt;br /&gt;
# upon receiving a trigger, the pi steps through the ramp, setting the DAC output accordingly. (It does its best to follow the ramp, skipping steps if their time passed before the previous step finished.) Depending on operational modes, it keeps track of whether steps succeed/&lt;br /&gt;
# after finishing the ramp, &#039;&#039;READY&#039;&#039; gets set low, and if ramping was successful, &#039;&#039;FINISHED&#039;&#039; gets set high.&lt;br /&gt;
&lt;br /&gt;
The PPG, meanwhile, is usually set up to send a sequence of trigger signals synchronized to the next external trigger (coming from the laser pulser) after being started, but only if all selected &#039;&#039;GATE&#039;&#039; inputs are high and all &#039;&#039;VETO&#039;&#039; inputs are low.&lt;br /&gt;
&lt;br /&gt;
=== Ramp Queue ===&lt;br /&gt;
&lt;br /&gt;
For more complex operation, the pi can hold a queue of ramps. This means it will loop through steps 1-5 for each entry in the queue, waiting for a new trigger for each.&lt;br /&gt;
&lt;br /&gt;
=== Software details ===&lt;br /&gt;
&lt;br /&gt;
For more details about the implementation, see the [https://gitlab.triumf.ca/haicu/magnet_control git repository] and [[Magnet Control Software]].&lt;br /&gt;
&lt;br /&gt;
=== Operation ===&lt;br /&gt;
&lt;br /&gt;
= Field Characterization =&lt;br /&gt;
&lt;br /&gt;
* [[Field Mapping Probe]]&lt;br /&gt;
&lt;br /&gt;
* [[Gate Coil Timing Measurements]]&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Magnetic_Trap&amp;diff=148</id>
		<title>Magnetic Trap</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Magnetic_Trap&amp;diff=148"/>
		<updated>2026-11-05T18:12:11Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: Starting work on magnet control documentation.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= General =&lt;br /&gt;
&lt;br /&gt;
[[File:Magnetic trap model.png|300x300px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Mechanical =&lt;br /&gt;
&lt;br /&gt;
= Electrical =&lt;br /&gt;
&lt;br /&gt;
The Bitter magnets (top and bottom gates, booster coil, and quadrupole) are powered by dedicated high current power supplies. Since the bottom gate needs to ramp very quickly (less than 1ms), it is powered by an AE Techron 8500 amplifier ([[Equipment_Manuals#AE_Techron_8500|documentation]]), which can provide a current output proportional to a control voltage signal with a very fast and reproducible reaction time. This is a modular device, that currently contains two units capable of delivering a steady state current of 100A each for a total of 200A. In the future this will be upgraded to the full six-module unit for up to 600A gate current.&lt;br /&gt;
&lt;br /&gt;
All other magnets are powered by Sorensen SGX10x1200 DC supplies ([[Equipment_Manuals#Sorensen_SGX10X1200|documentation]]) that are capable of delivering 1200A each. While gate and booster coils are designed for up to 400A, the quad will ideally run above 1200A eventually. For this purpose two SGX will be configured in leader-follower mode to be able to provide up to 2400A. Currently only one SGX is used per magnet.&lt;br /&gt;
&lt;br /&gt;
= Water cooling =&lt;br /&gt;
&lt;br /&gt;
= Magnet Control System =&lt;br /&gt;
&lt;br /&gt;
== SGX ==&lt;br /&gt;
&lt;br /&gt;
The Sorensen power supplies can be remotely controlled in two ways:&lt;br /&gt;
&lt;br /&gt;
* via SCPI text commands over ethernet (also GPIB or RS232, but this is not relevant for us)&lt;br /&gt;
* via analog control and monitoring voltages (0-10V or 0-5V), either in &#039;&#039;&#039;C&#039;&#039;&#039;ontrolled &#039;&#039;&#039;C&#039;&#039;&#039;urrent or &#039;&#039;&#039;C&#039;&#039;&#039;ontrolled &#039;&#039;&#039;V&#039;&#039;&#039;oltage mode&lt;br /&gt;
&lt;br /&gt;
== AE Techron 8500 ==&lt;br /&gt;
&lt;br /&gt;
The AE Techron is quite bare bones in comparison. While it, too, can operate in &#039;&#039;&#039;CC&#039;&#039;&#039; or &#039;&#039;&#039;CV&#039;&#039;&#039; mode, it does not have any user interface. It simply generates a signal based on an analog control voltage (0-10V) and provides some monitoring voltages, proportional to actual delivered voltage and actual delivered current. Some limited diagnostic values (like amplifier temperature) are available on a separate connector.&lt;br /&gt;
&lt;br /&gt;
== Magnet Control Box (&amp;quot;piBox&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
Since the AE Techron needs to be controlled by analog voltage, it was decided to do the same for the SGX, to make the system easier to understand. Since timing requirements are modest (of the order of 100 microseconds) we decided to provide this control voltage from a raspberry pi with DAC extension board (&amp;quot;hat&amp;quot;). An ADC is also needed for the monitoring voltages. Originally we decided on the [[Equipment_Manuals#Waveshare_AD/DA_hat|WaveShare AD/DA board]], which combines both functionalities, but during development opted for the [[Equipment_Manuals#CONTEC_CPI-AO-1602LC|Contec CPI-AO-1602LC]] for the DAC portion, because its range of 0-10V matches the 0-10V input range of the AE Techron.&lt;br /&gt;
&lt;br /&gt;
[https://gitlab.triumf.ca/haicu/magnet_control magnet_control]&lt;br /&gt;
&lt;br /&gt;
= Field Characterization =&lt;br /&gt;
&lt;br /&gt;
* [[Field Mapping Probe]]&lt;br /&gt;
&lt;br /&gt;
* [[Gate Coil Timing Measurements]]&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=123</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=123"/>
		<updated>2026-07-30T22:30:33Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Main Trap Vacuum (TV551 Navigator pump) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= General =&lt;br /&gt;
HAICU (Hydrogen Antihydrogen Infrastructure at Canadian Universities) is an experimental facility designed for research and development of techniques relating to the trapping of atomic Hydrogen and Antihydrogen. This wiki is the definitive repository of documentation regarding this setup.&lt;br /&gt;
&lt;br /&gt;
[[File:HAICU vector.svg|300x300px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Experimental Setup =&lt;br /&gt;
&lt;br /&gt;
* [[Hydrogen Source]]&lt;br /&gt;
* [[Magnetic Decelerator]]&lt;br /&gt;
* [[Halbach Bender]]&lt;br /&gt;
* [[Electromagnetic Bender]]&lt;br /&gt;
* [[Lasers]]&lt;br /&gt;
* [[Magnetic Trap]]&lt;br /&gt;
* [[Detectors]]&lt;br /&gt;
* [[Interlock System]]&lt;br /&gt;
&lt;br /&gt;
= Software =&lt;br /&gt;
== Git Repositories ==&lt;br /&gt;
(Most of) the various software packages used for the control and monitoring of the HAICU setup are kept in the TRIUMF gitlab at https://gitlab.triumf.ca/groups/haicu/. In general, each repository should have a README file as well as Doxygen documentation accessible from the &amp;quot;Gitlab Pages&amp;quot; link or from a link at the start of the README. Specifically the software packages are:&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/magnet_control magnet_control], which contains the drivers, test code, and frontends for Raspberry Pi box controlling the magnet power supplies&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_client PPG Client], which contains the code to load and run sequences on the Programmable Pulse Generator (or sequencer)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_cb_firmware PPG Firmware], which contains the Quartus project of the PPG-Chronobox FPGA code&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/vacuum-control-software Vacuum Control Software], which contains frontends for the Agilent gauges and turbopumps&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/teensy_software Teensy Software], which contains both firmware and Midas frontends for the flow and temperature monitoring Teensy boards&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/caen-dt5533en-hvps HV supply], which controls the CAEN DT5533 high voltage supply&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/lolxboardctrl SiPM bias], which controls the SiPM bias distribution and amplification box (LolX-box)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/intlck-watchdog Interlock Watchdog Firmware], which contains the firmware for the Arduino Due &amp;quot;Watchdog&amp;quot;&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/watchdog-frontend Interlock Watchdog Frontend], which contains the MIDAS frontend to interact with the watchdog&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/intlk_ping Network Status Monitor], which monitors the network reachability of certain devices and throws an interlock if they are not seen&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/pumpmon Water Pump Monitor], which monitors the operation of the recovery pump. May be different in final setup.&lt;br /&gt;
&lt;br /&gt;
= Procedures =&lt;br /&gt;
== Cooling Water Valves ==&lt;br /&gt;
As of now, this procedure applies to the quadrupole test stand in the HAICU area, it will likely be amended for the final setup. Plumbing schematics should also be added.&lt;br /&gt;
&lt;br /&gt;
=== Water TURN ON procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Ensure the interlock input labelled &amp;quot;Flow&amp;quot; is bypassed (yellow LED on)&lt;br /&gt;
# Check function of &#039;&#039;&#039;both&#039;&#039;&#039; solenoid valves connecting the manifold in the magnet testing area to the cooling lines via the interlock:&lt;br /&gt;
#* If open (yellow arrows point along flow direction), manually lift float switch in overflow bucket to trip interlock, observe valves closing, then reset &amp;quot;water mains&amp;quot; interlock output, observe them opening&lt;br /&gt;
#* If closed, reset &amp;quot;water mains&amp;quot; interlock output, then follow above procedure&lt;br /&gt;
# walk up to or call main control room (7333) and let them know you&#039;ll turn on HAICU cooling water and they might see a pressure drop&lt;br /&gt;
# &#039;&#039;&#039;Ensure&#039;&#039;&#039; the pressure release valve on the red line near the AE Techron and the coil test stand is &#039;&#039;&#039;closed&#039;&#039;&#039;&lt;br /&gt;
# Open manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole is starting to leak water (this is very subtle now and not vital)&lt;br /&gt;
# Reset water return pump interlock&lt;br /&gt;
# Open manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
# Confirm LEDs on both flow switches on the manifold turn green&lt;br /&gt;
#* If they do not, manual valves on the individual branches may not be fully open, check&lt;br /&gt;
# Arm flow switch interlock by turning off bypass on &amp;quot;Flow&amp;quot; input&lt;br /&gt;
# Confirm water return pump turns on and off regularly&lt;br /&gt;
&lt;br /&gt;
=== Water TURN OFF procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Close manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
#* This should trip the interlock, with a hiss right next to your head&lt;br /&gt;
# Close manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole stops leaking water&lt;br /&gt;
&lt;br /&gt;
== Main Trap Vacuum (TV551 Navigator pump) ==&lt;br /&gt;
&lt;br /&gt;
=== Vent Procedure ===&lt;br /&gt;
&lt;br /&gt;
# Check vent connections&lt;br /&gt;
#* Confirm vent valve is installed and cable connected to controller&lt;br /&gt;
#* Confirm gas line is connected to dry nitrogen or dry air supply&lt;br /&gt;
# Pressurize vent line slightly (no more than 0.5 bar or so)&lt;br /&gt;
# Check controller vent settings&lt;br /&gt;
#* Hold left ◀ and right ▶ buttons for 2s to enter menu&lt;br /&gt;
#* Use up/down keys to find &amp;quot;Pump Settings&amp;quot;, right ▶ to enter&lt;br /&gt;
#* Navigate to &#039;&#039;&#039;Vent Valve Mode&#039;&#039;&#039; and confirm it is set to &#039;&#039;&#039;AUTOPUMP SPEED&#039;&#039;&#039;&lt;br /&gt;
#* Navigate to &#039;&#039;&#039;Active Stop&#039;&#039;&#039; and confirm it is set to &#039;&#039;&#039;YES&#039;&#039;&#039;&lt;br /&gt;
# On Gauge controller, navigate to &#039;&#039;&#039;Ion G&#039;&#039;&#039; line and select &#039;&#039;&#039;OFF&#039;&#039;&#039; (use +/-, then OK)&lt;br /&gt;
# Double check you really want to vent&lt;br /&gt;
# Press &#039;&#039;&amp;quot;Start/Stop&amp;quot;&#039;&#039; on pump controller (if you&#039;re still in settings mode, hold &amp;quot;Previous&amp;quot; and &amp;quot;Next&amp;quot; for 2s to exit first)&lt;br /&gt;
# If display doesn&#039;t show useful information, press &#039;&#039;&amp;quot;Measures&amp;quot;&#039;&#039; to access operational variables&lt;br /&gt;
# Observe display and/or Midas history and listen to spin down until display says &amp;quot;STOPPED&amp;quot;&lt;br /&gt;
# Turn off backing scroll pump&lt;br /&gt;
# Close off dry gas input to avoid overpressurizing, unless you&#039;re opening and want to flow gas&lt;br /&gt;
&lt;br /&gt;
=== Pumpdown Procedure ===&lt;br /&gt;
&lt;br /&gt;
# Confirm dry gas supply is closed (automatic vent valve is likely open)&lt;br /&gt;
# Turn on backing scroll pump&lt;br /&gt;
# Wait for convection gauge reading to drop to 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt; torr range&lt;br /&gt;
# Temporarily disable the &#039;&#039;&amp;quot;Turbopump (TV-551) Controller&amp;quot;&#039;&#039; and &#039;&#039;&amp;quot;Turbopump (TV-551) Power&amp;quot;&#039;&#039; [https://haicudaq01.triumf.ca/?cmd=Alarms MIDAS alarms] (click on the alarm name and set &amp;quot;Active&amp;quot; to &#039;&#039;&#039;NO&#039;&#039;&#039;)&lt;br /&gt;
# Press &#039;&#039;&amp;quot;Start/Stop&amp;quot;&#039;&#039; on Turbo controller (if this is the first time pumping down after major modifications, you may want to first want to navigate to &amp;quot;Pump Settings -&amp;gt; Soft Start&amp;quot; and turn it on, to ramp the pump up more slowly)&lt;br /&gt;
# Wait for convection gauge to bottom out and turbo to spin up for a few minutes&lt;br /&gt;
# On Gauge controller, navigate to &#039;&#039;&#039;Ion G&#039;&#039;&#039; line and select &#039;&#039;&#039;Fil1 On&#039;&#039;&#039; or &#039;&#039;&#039;Fil2 On&#039;&#039;&#039; (use +/-, then OK)&lt;br /&gt;
# Observe pump spinning up to full speed, monitoring pump power draw and temperature readback (press &#039;&#039;&amp;quot;Measures&amp;quot;&#039;&#039; if variables are not shown)&lt;br /&gt;
#* During spin up power draw can go over 80W, but at full speed should settle below 20W&lt;br /&gt;
#* Controller temperature may go up to 60C, but if it goes any higher, it may cut the pump power&lt;br /&gt;
#* Most importantly, Bearing temperature should not rise over 35C or so, any more indicates a significant leak leading to higher gas load&lt;br /&gt;
# Once power draw has dropped well below 30W, reactivate &amp;quot;Turbopump (TV-551) Controller&amp;quot; and &amp;quot;Turbopump (TV-551) Power&amp;quot; [https://haicudaq01.triumf.ca/?cmd=Alarms MIDAS alarms]&lt;br /&gt;
&lt;br /&gt;
= Resources and Manuals =&lt;br /&gt;
&lt;br /&gt;
* [[Equipment Manuals]]&lt;br /&gt;
* [[Miscellaneous Resources]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
= MediaWiki default blurb =&lt;br /&gt;
&amp;lt;strong&amp;gt;MediaWiki has been installed.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User&#039;s Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=122</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=122"/>
		<updated>2026-07-30T22:28:06Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Vent Procedure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= General =&lt;br /&gt;
HAICU (Hydrogen Antihydrogen Infrastructure at Canadian Universities) is an experimental facility designed for research and development of techniques relating to the trapping of atomic Hydrogen and Antihydrogen. This wiki is the definitive repository of documentation regarding this setup.&lt;br /&gt;
&lt;br /&gt;
[[File:HAICU vector.svg|300x300px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Experimental Setup =&lt;br /&gt;
&lt;br /&gt;
* [[Hydrogen Source]]&lt;br /&gt;
* [[Magnetic Decelerator]]&lt;br /&gt;
* [[Halbach Bender]]&lt;br /&gt;
* [[Electromagnetic Bender]]&lt;br /&gt;
* [[Lasers]]&lt;br /&gt;
* [[Magnetic Trap]]&lt;br /&gt;
* [[Detectors]]&lt;br /&gt;
* [[Interlock System]]&lt;br /&gt;
&lt;br /&gt;
= Software =&lt;br /&gt;
== Git Repositories ==&lt;br /&gt;
(Most of) the various software packages used for the control and monitoring of the HAICU setup are kept in the TRIUMF gitlab at https://gitlab.triumf.ca/groups/haicu/. In general, each repository should have a README file as well as Doxygen documentation accessible from the &amp;quot;Gitlab Pages&amp;quot; link or from a link at the start of the README. Specifically the software packages are:&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/magnet_control magnet_control], which contains the drivers, test code, and frontends for Raspberry Pi box controlling the magnet power supplies&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_client PPG Client], which contains the code to load and run sequences on the Programmable Pulse Generator (or sequencer)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_cb_firmware PPG Firmware], which contains the Quartus project of the PPG-Chronobox FPGA code&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/vacuum-control-software Vacuum Control Software], which contains frontends for the Agilent gauges and turbopumps&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/teensy_software Teensy Software], which contains both firmware and Midas frontends for the flow and temperature monitoring Teensy boards&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/caen-dt5533en-hvps HV supply], which controls the CAEN DT5533 high voltage supply&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/lolxboardctrl SiPM bias], which controls the SiPM bias distribution and amplification box (LolX-box)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/intlck-watchdog Interlock Watchdog Firmware], which contains the firmware for the Arduino Due &amp;quot;Watchdog&amp;quot;&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/watchdog-frontend Interlock Watchdog Frontend], which contains the MIDAS frontend to interact with the watchdog&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/intlk_ping Network Status Monitor], which monitors the network reachability of certain devices and throws an interlock if they are not seen&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/pumpmon Water Pump Monitor], which monitors the operation of the recovery pump. May be different in final setup.&lt;br /&gt;
&lt;br /&gt;
= Procedures =&lt;br /&gt;
== Cooling Water Valves ==&lt;br /&gt;
As of now, this procedure applies to the quadrupole test stand in the HAICU area, it will likely be amended for the final setup. Plumbing schematics should also be added.&lt;br /&gt;
&lt;br /&gt;
=== Water TURN ON procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Ensure the interlock input labelled &amp;quot;Flow&amp;quot; is bypassed (yellow LED on)&lt;br /&gt;
# Check function of &#039;&#039;&#039;both&#039;&#039;&#039; solenoid valves connecting the manifold in the magnet testing area to the cooling lines via the interlock:&lt;br /&gt;
#* If open (yellow arrows point along flow direction), manually lift float switch in overflow bucket to trip interlock, observe valves closing, then reset &amp;quot;water mains&amp;quot; interlock output, observe them opening&lt;br /&gt;
#* If closed, reset &amp;quot;water mains&amp;quot; interlock output, then follow above procedure&lt;br /&gt;
# walk up to or call main control room (7333) and let them know you&#039;ll turn on HAICU cooling water and they might see a pressure drop&lt;br /&gt;
# &#039;&#039;&#039;Ensure&#039;&#039;&#039; the pressure release valve on the red line near the AE Techron and the coil test stand is &#039;&#039;&#039;closed&#039;&#039;&#039;&lt;br /&gt;
# Open manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole is starting to leak water (this is very subtle now and not vital)&lt;br /&gt;
# Reset water return pump interlock&lt;br /&gt;
# Open manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
# Confirm LEDs on both flow switches on the manifold turn green&lt;br /&gt;
#* If they do not, manual valves on the individual branches may not be fully open, check&lt;br /&gt;
# Arm flow switch interlock by turning off bypass on &amp;quot;Flow&amp;quot; input&lt;br /&gt;
# Confirm water return pump turns on and off regularly&lt;br /&gt;
&lt;br /&gt;
=== Water TURN OFF procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Close manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
#* This should trip the interlock, with a hiss right next to your head&lt;br /&gt;
# Close manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole stops leaking water&lt;br /&gt;
&lt;br /&gt;
== Main Trap Vacuum (TV551 Navigator pump) ==&lt;br /&gt;
&lt;br /&gt;
=== Vent Procedure ===&lt;br /&gt;
&lt;br /&gt;
# Check vent connections&lt;br /&gt;
#* Confirm vent valve is installed and cable connected to controller&lt;br /&gt;
#* Confirm gas line is connected to dry nitrogen or dry air supply&lt;br /&gt;
# Pressurize vent line slightly (no more than 0.5 bar or so)&lt;br /&gt;
# Check controller vent settings&lt;br /&gt;
#* Hold left ◀ and right ▶ buttons for 2s to enter menu&lt;br /&gt;
#* Use up/down keys to find &amp;quot;Pump Settings&amp;quot;, right ▶ to enter&lt;br /&gt;
#* Navigate to &amp;quot;Vent Valve Mode&amp;quot; and confirm it is set to &#039;&#039;&#039;AUTOPUMP SPEED&#039;&#039;&#039;&lt;br /&gt;
#* Navigate to &amp;quot;Active Stop&amp;quot; and confirm it is set to &#039;&#039;&#039;YES&#039;&#039;&#039;&lt;br /&gt;
# On Gauge controller, navigate to &#039;&#039;&#039;Ion G&#039;&#039;&#039; line and select &#039;&#039;&#039;OFF&#039;&#039;&#039; (use +/-, then OK)&lt;br /&gt;
# Double check you really want to vent&lt;br /&gt;
# Press &amp;quot;Start/Stop&amp;quot; on pump controller (if you&#039;re still in settings mode, hold &amp;quot;Previous&amp;quot; and &amp;quot;Next&amp;quot; for 2s to exit first)&lt;br /&gt;
# If display doesn&#039;t show useful information, press &amp;quot;Measures&amp;quot; to access operational variables&lt;br /&gt;
# Observe display and/or Midas history and listen to spin down until display says &amp;quot;STOPPED&amp;quot;&lt;br /&gt;
# Turn off backing scroll pump&lt;br /&gt;
# Close off dry gas input to avoid overpressurizing, unless you&#039;re opening and want to flow gas&lt;br /&gt;
&lt;br /&gt;
=== Pumpdown Procedure ===&lt;br /&gt;
&lt;br /&gt;
# Confirm dry gas supply is closed (automatic vent valve is likely open)&lt;br /&gt;
# Turn on backing scroll pump&lt;br /&gt;
# Wait for convection gauge reading to drop to 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt; torr range&lt;br /&gt;
# Temporarily disable the &amp;quot;Turbopump (TV-551) Controller&amp;quot; and &amp;quot;Turbopump (TV-551) Power&amp;quot; [https://haicudaq01.triumf.ca/?cmd=Alarms MIDAS alarms] (click on the alarm name and set &amp;quot;Active&amp;quot; to &#039;&#039;&#039;NO&#039;&#039;&#039;)&lt;br /&gt;
# Press &amp;quot;Start/Stop&amp;quot; on Turbo controller (if this is the first time pumping down after major modifications, you may want to first want to navigate to &amp;quot;Pump Settings -&amp;gt; Soft Start&amp;quot; and turn it on, to ramp the pump up more slowly)&lt;br /&gt;
# Wait for convection gauge to bottom out and turbo to spin up for a few minutes&lt;br /&gt;
# On Gauge controller, navigate to &#039;&#039;&#039;Ion G&#039;&#039;&#039; line and select &#039;&#039;&#039;Fil1 On&#039;&#039;&#039; or &#039;&#039;&#039;Fil2 On&#039;&#039;&#039; (use +/-, then OK)&lt;br /&gt;
# Observe pump spinning up to full speed, monitoring pump power draw and temperature readback (press &amp;quot;Measures&amp;quot; if variables are not shown)&lt;br /&gt;
#* During spin up power draw can go over 80W, but at full speed should settle below 20W&lt;br /&gt;
#* Controller temperature may go up to 60C, but if it goes any higher, it may cut the pump power&lt;br /&gt;
#* Most importantly, Bearing temperature should not rise over 35C or so, any more indicates a significant leak leading to higher gas load&lt;br /&gt;
# Once power draw has dropped well below 30W, reactivate &amp;quot;Turbopump (TV-551) Controller&amp;quot; and &amp;quot;Turbopump (TV-551) Power&amp;quot; [https://haicudaq01.triumf.ca/?cmd=Alarms MIDAS alarms]&lt;br /&gt;
&lt;br /&gt;
= Resources and Manuals =&lt;br /&gt;
&lt;br /&gt;
* [[Equipment Manuals]]&lt;br /&gt;
* [[Miscellaneous Resources]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
= MediaWiki default blurb =&lt;br /&gt;
&amp;lt;strong&amp;gt;MediaWiki has been installed.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User&#039;s Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=121</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=121"/>
		<updated>2026-07-30T22:27:52Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Main Trap Vacuum (TV551 Navigator pump) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= General =&lt;br /&gt;
HAICU (Hydrogen Antihydrogen Infrastructure at Canadian Universities) is an experimental facility designed for research and development of techniques relating to the trapping of atomic Hydrogen and Antihydrogen. This wiki is the definitive repository of documentation regarding this setup.&lt;br /&gt;
&lt;br /&gt;
[[File:HAICU vector.svg|300x300px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Experimental Setup =&lt;br /&gt;
&lt;br /&gt;
* [[Hydrogen Source]]&lt;br /&gt;
* [[Magnetic Decelerator]]&lt;br /&gt;
* [[Halbach Bender]]&lt;br /&gt;
* [[Electromagnetic Bender]]&lt;br /&gt;
* [[Lasers]]&lt;br /&gt;
* [[Magnetic Trap]]&lt;br /&gt;
* [[Detectors]]&lt;br /&gt;
* [[Interlock System]]&lt;br /&gt;
&lt;br /&gt;
= Software =&lt;br /&gt;
== Git Repositories ==&lt;br /&gt;
(Most of) the various software packages used for the control and monitoring of the HAICU setup are kept in the TRIUMF gitlab at https://gitlab.triumf.ca/groups/haicu/. In general, each repository should have a README file as well as Doxygen documentation accessible from the &amp;quot;Gitlab Pages&amp;quot; link or from a link at the start of the README. Specifically the software packages are:&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/magnet_control magnet_control], which contains the drivers, test code, and frontends for Raspberry Pi box controlling the magnet power supplies&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_client PPG Client], which contains the code to load and run sequences on the Programmable Pulse Generator (or sequencer)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_cb_firmware PPG Firmware], which contains the Quartus project of the PPG-Chronobox FPGA code&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/vacuum-control-software Vacuum Control Software], which contains frontends for the Agilent gauges and turbopumps&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/teensy_software Teensy Software], which contains both firmware and Midas frontends for the flow and temperature monitoring Teensy boards&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/caen-dt5533en-hvps HV supply], which controls the CAEN DT5533 high voltage supply&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/lolxboardctrl SiPM bias], which controls the SiPM bias distribution and amplification box (LolX-box)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/intlck-watchdog Interlock Watchdog Firmware], which contains the firmware for the Arduino Due &amp;quot;Watchdog&amp;quot;&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/watchdog-frontend Interlock Watchdog Frontend], which contains the MIDAS frontend to interact with the watchdog&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/intlk_ping Network Status Monitor], which monitors the network reachability of certain devices and throws an interlock if they are not seen&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/pumpmon Water Pump Monitor], which monitors the operation of the recovery pump. May be different in final setup.&lt;br /&gt;
&lt;br /&gt;
= Procedures =&lt;br /&gt;
== Cooling Water Valves ==&lt;br /&gt;
As of now, this procedure applies to the quadrupole test stand in the HAICU area, it will likely be amended for the final setup. Plumbing schematics should also be added.&lt;br /&gt;
&lt;br /&gt;
=== Water TURN ON procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Ensure the interlock input labelled &amp;quot;Flow&amp;quot; is bypassed (yellow LED on)&lt;br /&gt;
# Check function of &#039;&#039;&#039;both&#039;&#039;&#039; solenoid valves connecting the manifold in the magnet testing area to the cooling lines via the interlock:&lt;br /&gt;
#* If open (yellow arrows point along flow direction), manually lift float switch in overflow bucket to trip interlock, observe valves closing, then reset &amp;quot;water mains&amp;quot; interlock output, observe them opening&lt;br /&gt;
#* If closed, reset &amp;quot;water mains&amp;quot; interlock output, then follow above procedure&lt;br /&gt;
# walk up to or call main control room (7333) and let them know you&#039;ll turn on HAICU cooling water and they might see a pressure drop&lt;br /&gt;
# &#039;&#039;&#039;Ensure&#039;&#039;&#039; the pressure release valve on the red line near the AE Techron and the coil test stand is &#039;&#039;&#039;closed&#039;&#039;&#039;&lt;br /&gt;
# Open manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole is starting to leak water (this is very subtle now and not vital)&lt;br /&gt;
# Reset water return pump interlock&lt;br /&gt;
# Open manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
# Confirm LEDs on both flow switches on the manifold turn green&lt;br /&gt;
#* If they do not, manual valves on the individual branches may not be fully open, check&lt;br /&gt;
# Arm flow switch interlock by turning off bypass on &amp;quot;Flow&amp;quot; input&lt;br /&gt;
# Confirm water return pump turns on and off regularly&lt;br /&gt;
&lt;br /&gt;
=== Water TURN OFF procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Close manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
#* This should trip the interlock, with a hiss right next to your head&lt;br /&gt;
# Close manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole stops leaking water&lt;br /&gt;
&lt;br /&gt;
== Main Trap Vacuum (TV551 Navigator pump) ==&lt;br /&gt;
&lt;br /&gt;
=== Vent Procedure ===&lt;br /&gt;
&lt;br /&gt;
# Check vent connections&lt;br /&gt;
#* Confirm vent valve is installed and cable connected to controller&lt;br /&gt;
#* Confirm gas line is connected to dry nitrogen or dry air supply&lt;br /&gt;
# Pressurize vent line slightly (no more than 0.5 bar or so)&lt;br /&gt;
# Check controller vent settings&lt;br /&gt;
#* Hold left ◀ and right ▶ buttons for 2s to enter menu&lt;br /&gt;
#* Use up/down keys to find &amp;quot;Pump Settings&amp;quot;, right ▶ to enter&lt;br /&gt;
#* Navigate to &amp;quot;Vent Valve Mode&amp;quot; and confirm it is set to &#039;&#039;&#039;AUTOPUMP SPEED&#039;&#039;&#039;&lt;br /&gt;
#* Navigate to &amp;quot;Active Stop&amp;quot; and confirm it is set to &#039;&#039;&#039;YES&#039;&#039;&#039;&lt;br /&gt;
# On Gauge controller, navigate to &#039;&#039;Ion G&#039;&#039; line and select &#039;&#039;&#039;OFF&#039;&#039;&#039; (use +/-, then OK)&lt;br /&gt;
# Double check you really want to vent&lt;br /&gt;
# Press &amp;quot;Start/Stop&amp;quot; on pump controller (if you&#039;re still in settings mode, hold &amp;quot;Previous&amp;quot; and &amp;quot;Next&amp;quot; for 2s to exit first)&lt;br /&gt;
# If display doesn&#039;t show useful information, press &amp;quot;Measures&amp;quot; to access operational variables&lt;br /&gt;
# Observe display and/or Midas history and listen to spin down until display says &amp;quot;STOPPED&amp;quot;&lt;br /&gt;
# Turn off backing scroll pump&lt;br /&gt;
# Close off dry gas input to avoid overpressurizing, unless you&#039;re opening and want to flow gas&lt;br /&gt;
&lt;br /&gt;
=== Pumpdown Procedure ===&lt;br /&gt;
&lt;br /&gt;
# Confirm dry gas supply is closed (automatic vent valve is likely open)&lt;br /&gt;
# Turn on backing scroll pump&lt;br /&gt;
# Wait for convection gauge reading to drop to 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt; torr range&lt;br /&gt;
# Temporarily disable the &amp;quot;Turbopump (TV-551) Controller&amp;quot; and &amp;quot;Turbopump (TV-551) Power&amp;quot; [https://haicudaq01.triumf.ca/?cmd=Alarms MIDAS alarms] (click on the alarm name and set &amp;quot;Active&amp;quot; to &#039;&#039;&#039;NO&#039;&#039;&#039;)&lt;br /&gt;
# Press &amp;quot;Start/Stop&amp;quot; on Turbo controller (if this is the first time pumping down after major modifications, you may want to first want to navigate to &amp;quot;Pump Settings -&amp;gt; Soft Start&amp;quot; and turn it on, to ramp the pump up more slowly)&lt;br /&gt;
# Wait for convection gauge to bottom out and turbo to spin up for a few minutes&lt;br /&gt;
# On Gauge controller, navigate to &#039;&#039;&#039;Ion G&#039;&#039;&#039; line and select &#039;&#039;&#039;Fil1 On&#039;&#039;&#039; or &#039;&#039;&#039;Fil2 On&#039;&#039;&#039; (use +/-, then OK)&lt;br /&gt;
# Observe pump spinning up to full speed, monitoring pump power draw and temperature readback (press &amp;quot;Measures&amp;quot; if variables are not shown)&lt;br /&gt;
#* During spin up power draw can go over 80W, but at full speed should settle below 20W&lt;br /&gt;
#* Controller temperature may go up to 60C, but if it goes any higher, it may cut the pump power&lt;br /&gt;
#* Most importantly, Bearing temperature should not rise over 35C or so, any more indicates a significant leak leading to higher gas load&lt;br /&gt;
# Once power draw has dropped well below 30W, reactivate &amp;quot;Turbopump (TV-551) Controller&amp;quot; and &amp;quot;Turbopump (TV-551) Power&amp;quot; [https://haicudaq01.triumf.ca/?cmd=Alarms MIDAS alarms]&lt;br /&gt;
&lt;br /&gt;
= Resources and Manuals =&lt;br /&gt;
&lt;br /&gt;
* [[Equipment Manuals]]&lt;br /&gt;
* [[Miscellaneous Resources]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
= MediaWiki default blurb =&lt;br /&gt;
&amp;lt;strong&amp;gt;MediaWiki has been installed.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User&#039;s Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=120</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=120"/>
		<updated>2026-07-30T02:53:34Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Procedures */ Added vacuum vent and pumpdown procedures. Still need baking procedure, but that is not well defined.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= General =&lt;br /&gt;
HAICU (Hydrogen Antihydrogen Infrastructure at Canadian Universities) is an experimental facility designed for research and development of techniques relating to the trapping of atomic Hydrogen and Antihydrogen. This wiki is the definitive repository of documentation regarding this setup.&lt;br /&gt;
&lt;br /&gt;
[[File:HAICU vector.svg|300x300px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Experimental Setup =&lt;br /&gt;
&lt;br /&gt;
* [[Hydrogen Source]]&lt;br /&gt;
* [[Magnetic Decelerator]]&lt;br /&gt;
* [[Halbach Bender]]&lt;br /&gt;
* [[Electromagnetic Bender]]&lt;br /&gt;
* [[Lasers]]&lt;br /&gt;
* [[Magnetic Trap]]&lt;br /&gt;
* [[Detectors]]&lt;br /&gt;
* [[Interlock System]]&lt;br /&gt;
&lt;br /&gt;
= Software =&lt;br /&gt;
== Git Repositories ==&lt;br /&gt;
(Most of) the various software packages used for the control and monitoring of the HAICU setup are kept in the TRIUMF gitlab at https://gitlab.triumf.ca/groups/haicu/. In general, each repository should have a README file as well as Doxygen documentation accessible from the &amp;quot;Gitlab Pages&amp;quot; link or from a link at the start of the README. Specifically the software packages are:&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/magnet_control magnet_control], which contains the drivers, test code, and frontends for Raspberry Pi box controlling the magnet power supplies&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_client PPG Client], which contains the code to load and run sequences on the Programmable Pulse Generator (or sequencer)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_cb_firmware PPG Firmware], which contains the Quartus project of the PPG-Chronobox FPGA code&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/vacuum-control-software Vacuum Control Software], which contains frontends for the Agilent gauges and turbopumps&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/teensy_software Teensy Software], which contains both firmware and Midas frontends for the flow and temperature monitoring Teensy boards&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/caen-dt5533en-hvps HV supply], which controls the CAEN DT5533 high voltage supply&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/lolxboardctrl SiPM bias], which controls the SiPM bias distribution and amplification box (LolX-box)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/intlck-watchdog Interlock Watchdog Firmware], which contains the firmware for the Arduino Due &amp;quot;Watchdog&amp;quot;&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/watchdog-frontend Interlock Watchdog Frontend], which contains the MIDAS frontend to interact with the watchdog&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/intlk_ping Network Status Monitor], which monitors the network reachability of certain devices and throws an interlock if they are not seen&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/pumpmon Water Pump Monitor], which monitors the operation of the recovery pump. May be different in final setup.&lt;br /&gt;
&lt;br /&gt;
= Procedures =&lt;br /&gt;
== Cooling Water Valves ==&lt;br /&gt;
As of now, this procedure applies to the quadrupole test stand in the HAICU area, it will likely be amended for the final setup. Plumbing schematics should also be added.&lt;br /&gt;
&lt;br /&gt;
=== Water TURN ON procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Ensure the interlock input labelled &amp;quot;Flow&amp;quot; is bypassed (yellow LED on)&lt;br /&gt;
# Check function of &#039;&#039;&#039;both&#039;&#039;&#039; solenoid valves connecting the manifold in the magnet testing area to the cooling lines via the interlock:&lt;br /&gt;
#* If open (yellow arrows point along flow direction), manually lift float switch in overflow bucket to trip interlock, observe valves closing, then reset &amp;quot;water mains&amp;quot; interlock output, observe them opening&lt;br /&gt;
#* If closed, reset &amp;quot;water mains&amp;quot; interlock output, then follow above procedure&lt;br /&gt;
# walk up to or call main control room (7333) and let them know you&#039;ll turn on HAICU cooling water and they might see a pressure drop&lt;br /&gt;
# &#039;&#039;&#039;Ensure&#039;&#039;&#039; the pressure release valve on the red line near the AE Techron and the coil test stand is &#039;&#039;&#039;closed&#039;&#039;&#039;&lt;br /&gt;
# Open manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole is starting to leak water (this is very subtle now and not vital)&lt;br /&gt;
# Reset water return pump interlock&lt;br /&gt;
# Open manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
# Confirm LEDs on both flow switches on the manifold turn green&lt;br /&gt;
#* If they do not, manual valves on the individual branches may not be fully open, check&lt;br /&gt;
# Arm flow switch interlock by turning off bypass on &amp;quot;Flow&amp;quot; input&lt;br /&gt;
# Confirm water return pump turns on and off regularly&lt;br /&gt;
&lt;br /&gt;
=== Water TURN OFF procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Close manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
#* This should trip the interlock, with a hiss right next to your head&lt;br /&gt;
# Close manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole stops leaking water&lt;br /&gt;
&lt;br /&gt;
== Main Trap Vacuum (TV551 Navigator pump) ==&lt;br /&gt;
&lt;br /&gt;
=== Vent Procedure ===&lt;br /&gt;
&lt;br /&gt;
# Check vent connections&lt;br /&gt;
#* Confirm vent valve is installed and cable connected to controller&lt;br /&gt;
#* Confirm gas line is connected to dry nitrogen or dry air supply&lt;br /&gt;
# Pressurize vent line slightly (no more than 0.5 bar or so)&lt;br /&gt;
# Check controller vent settings&lt;br /&gt;
#* Hold &amp;quot;Previous&amp;quot; and &amp;quot;Next&amp;quot; buttons for 2s to enter menu&lt;br /&gt;
#* Use up/down keys to find &amp;quot;Pump Settings&amp;quot;, &amp;quot;Next&amp;quot; to enter&lt;br /&gt;
#* Navigate to &amp;quot;Active Stop&amp;quot; and confirm it is set to &#039;&#039;&#039;YES&#039;&#039;&#039;&lt;br /&gt;
#* Navigate to &amp;quot;Vent Valve Mode&amp;quot; and confirm it is set to &#039;&#039;&#039;AUTOPUMP SPEED&#039;&#039;&#039;&lt;br /&gt;
# On Gauge controller, navigate to &#039;&#039;Ion&#039;&#039; line and select &#039;&#039;&#039;OFF&#039;&#039;&#039;&lt;br /&gt;
# Double check you really want to vent&lt;br /&gt;
# Press &amp;quot;Start/Stop&amp;quot; on pump controller (if you&#039;re still in settings mode, hold &amp;quot;Previous&amp;quot; and &amp;quot;Next&amp;quot; for 2s to exit first)&lt;br /&gt;
# If display doesn&#039;t show useful information, press &amp;quot;Next&amp;quot; to access operational variables&lt;br /&gt;
# Observe display and/or Midas history and listen to spin down until display says &amp;quot;STOPPED&amp;quot;&lt;br /&gt;
# Turn off backing scroll pump&lt;br /&gt;
# Close off dry gas input to avoid overpressurizing, unless you&#039;re opening and want to flow gas&lt;br /&gt;
&lt;br /&gt;
=== Pumpdown Procedure ===&lt;br /&gt;
&lt;br /&gt;
# Confirm dry gas supply is closed (automatic vent valve is likely open)&lt;br /&gt;
# Turn on backing scroll pump&lt;br /&gt;
# On Gauge controller, turn on convection gauge, if it isn&#039;t showing a reading already&lt;br /&gt;
# Wait for convection gauge reading to drop to 10&amp;lt;sup&amp;gt;-2&amp;lt;/sup&amp;gt; torr range&lt;br /&gt;
# Temporarily disable the &amp;quot;Turbopump (TV-551) Controller&amp;quot; and &amp;quot;Turbopump (TV-551) Power&amp;quot; [https://haicudaq01.triumf.ca/?cmd=Alarms MIDAS alarms] (click on the alarm name and set &amp;quot;Active&amp;quot; to &#039;&#039;&#039;NO&#039;&#039;&#039;)&lt;br /&gt;
# Press &amp;quot;Start/Stop&amp;quot; on Turbo controller (if this is the first time pumping down after major modifications, you may want to first want to navigate to &amp;quot;Pump Settings -&amp;gt; Soft Start&amp;quot; and turn it on, to ramp the pump up more slowly)&lt;br /&gt;
# Wait for convection gauge to bottom out and turbo to spin up for a few minutes&lt;br /&gt;
# On Gauge controller, navigate to &#039;&#039;Ion&#039;&#039; line and select &#039;&#039;Fil1 On&#039;&#039; or &#039;&#039;Fil2 On&#039;&#039;&lt;br /&gt;
# Observe pump spinning up to full speed, monitoring pump power draw and temperature readback&lt;br /&gt;
#* During spin up power draw can go over 80W, but at full speed should settle below 20W&lt;br /&gt;
#* Controller temperature may go up to 60C, but if it goes any higher, it may cut the pump power&lt;br /&gt;
#* Most importantly, Bearing temperature should not rise over 35C or so, any more indicates a significant leak leading to higher gas load&lt;br /&gt;
# Once power draw has dropped well below 30W, reactivate &amp;quot;Turbopump (TV-551) Controller&amp;quot; and &amp;quot;Turbopump (TV-551) Power&amp;quot; [https://haicudaq01.triumf.ca/?cmd=Alarms MIDAS alarms]&lt;br /&gt;
&lt;br /&gt;
= Resources and Manuals =&lt;br /&gt;
&lt;br /&gt;
* [[Equipment Manuals]]&lt;br /&gt;
* [[Miscellaneous Resources]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
= MediaWiki default blurb =&lt;br /&gt;
&amp;lt;strong&amp;gt;MediaWiki has been installed.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User&#039;s Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Equipment_Manuals&amp;diff=119</id>
		<title>Equipment Manuals</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Equipment_Manuals&amp;diff=119"/>
		<updated>2026-07-30T01:57:36Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Vacuum */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Control Electronics = &lt;br /&gt;
== CONTEC CPI-AO-1602LC ==&lt;br /&gt;
&lt;br /&gt;
This product is an expansion card (&amp;quot;hat&amp;quot;) that adds an analog output interface to the Raspberry Pi. It gets used in the Raspberry Pi magnet control box.&lt;br /&gt;
&lt;br /&gt;
Datasheet: [[File:Cpiao1602lc en.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:Cpiao1602lc reference manual.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
== Waveshare AD/DA hat ==&lt;br /&gt;
&lt;br /&gt;
This product is an expansion card (&amp;quot;hat&amp;quot;) that adds analog input and output interfaces to the Raspberry Pi. The analog input gets used in the Raspberry Pi magnet control box.&lt;br /&gt;
&lt;br /&gt;
Schematic: [[File:High-Precision-AD-DA-board.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
Manual:  [[File:High-Precision-AD-DA-User-Manual.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
== DE10-Nano ==&lt;br /&gt;
&lt;br /&gt;
Cyclone 5 FPGA evaluation board, used as platform for chronobox and PPG.&lt;br /&gt;
&lt;br /&gt;
Manual: [[DE10-Nano_User_manual_a_b.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
= Power Supplies =&lt;br /&gt;
&lt;br /&gt;
== Sorensen SGX10X1200 ==&lt;br /&gt;
&lt;br /&gt;
10V 1200A Magnet power supply used for &amp;quot;slow&amp;quot; trap magnets, i.e. quad, top gate, booster.&lt;br /&gt;
&lt;br /&gt;
Datasheet: [[File:Sorensen_sgx_datasheet-3u-6u_rev2b.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:Sgx-operation-manual-m551600-01-rev-e.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
Programming Manual: [[File:Programming-manual-sgx_m551601-01.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
== AE Techron 8500 ==&lt;br /&gt;
&lt;br /&gt;
High-power amplifier used as fast power supply for bottom gate magnet.&lt;br /&gt;
&lt;br /&gt;
System Manual: [[File:8500manual.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
Module Manual: [[File:8504-OpManual.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
Compensation Network Tuning Guide: [[File:AET8500_Controlled_Current_Mode_-_Compensation_Network_Tuning_Guide.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
== R&amp;amp;S HMC8043 LVPS ==&lt;br /&gt;
&lt;br /&gt;
Low voltage power supply, used in HAICU for SiPM bias.&lt;br /&gt;
&lt;br /&gt;
Datasheet: [[File:HMC804x dat de en 3607-0169-3x v0200.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:HMC804x_UserManual_de_en_05.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
Programming Manual: [[File:HMC804x_SCPI_ProgrammersManual_en_02.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
== CAEN DT5533EN HVPS ==&lt;br /&gt;
&lt;br /&gt;
High voltage power supply, used in HAICU for MCP bias.&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:WEB DT55xxE r14.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
= DAQ =&lt;br /&gt;
&lt;br /&gt;
== CAEN DT5730S Digitizer ==&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:WEB UMDT5730-DT5725 rev8.pdf|thumb|Manual]]&lt;br /&gt;
&lt;br /&gt;
= Vacuum =&lt;br /&gt;
&lt;br /&gt;
== Agilent TwisTorr 74FS ==&lt;br /&gt;
&lt;br /&gt;
Small turbo pump and controller.&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:TwisTorr_74_FS_AG_Rack_Controller.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
== Agilent XGS-600 Gauge Controller ==&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:XGS-600_Gauge_Controller.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
== Agilent TV551 Navigator ==&lt;br /&gt;
&lt;br /&gt;
Large (DN160CF) turbo pump.&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:TV551-701_NAVIGATOR.PDF|thumb]]&lt;br /&gt;
&lt;br /&gt;
== Turbo-V 551 Rack Controller ==&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:Agilent-Varian-Turbo-V551-Rack-Controller_ENG.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
= Miscellaneous =&lt;br /&gt;
&lt;br /&gt;
== R&amp;amp;S RTM3004 Oscilloscope ==&lt;br /&gt;
&lt;br /&gt;
Datasheet: [[File:RTM3000_specs_en_5214-9144-22_v1300.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:R%26S_RTM3000_User_Manual.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
== AFG1022 function generator ==&lt;br /&gt;
&lt;br /&gt;
Signal generator / pulser.&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:AFG1022-Quick-Start-User-Manual-EN.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
== Agilent 34410a desktop multimeter ==&lt;br /&gt;
&lt;br /&gt;
Programmers Reference: [[File:Agilent_34410a_Programmers_Reference.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== INSTEC LN2 Valve Box ==&lt;br /&gt;
&lt;br /&gt;
This is used for the SiPM cooling system instead of the pump.&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:Quick_Start_Guide_LN2_VC2L_V12.04.00.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
== INSTEC MK2000 Temperature Controller ==&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:mK2000B_Temperature_Controller_User&#039;s_Manual-V3.10.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
Software Development Resources: [[File:MK2000B_software_development_resources.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
Pin out diagram: [[File:DB15_Connector_Pinout_Diagram.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
SCPI reference: [[File:MK2000B_SCPI_cmd_v3.16.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
== Allegro ACS70310LKATN-001B5-C Hall Probe ==&lt;br /&gt;
&lt;br /&gt;
Giulia&#039;s probe we use for magnetometry&lt;br /&gt;
&lt;br /&gt;
Datasheet: [[File:ACS70310-11-Datasheet.pdf|thumb]]&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Agilent-Varian-Turbo-V551-Rack-Controller_ENG.pdf&amp;diff=118</id>
		<title>File:Agilent-Varian-Turbo-V551-Rack-Controller ENG.pdf</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Agilent-Varian-Turbo-V551-Rack-Controller_ENG.pdf&amp;diff=118"/>
		<updated>2026-07-30T01:57:05Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: Manual&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Manual&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=117</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=117"/>
		<updated>2026-07-28T21:46:00Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Software */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= General =&lt;br /&gt;
HAICU (Hydrogen Antihydrogen Infrastructure at Canadian Universities) is an experimental facility designed for research and development of techniques relating to the trapping of atomic Hydrogen and Antihydrogen. This wiki is the definitive repository of documentation regarding this setup.&lt;br /&gt;
&lt;br /&gt;
[[File:HAICU vector.svg|300x300px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Experimental Setup =&lt;br /&gt;
&lt;br /&gt;
* [[Hydrogen Source]]&lt;br /&gt;
* [[Magnetic Decelerator]]&lt;br /&gt;
* [[Halbach Bender]]&lt;br /&gt;
* [[Electromagnetic Bender]]&lt;br /&gt;
* [[Lasers]]&lt;br /&gt;
* [[Magnetic Trap]]&lt;br /&gt;
* [[Detectors]]&lt;br /&gt;
* [[Interlock System]]&lt;br /&gt;
&lt;br /&gt;
= Software =&lt;br /&gt;
== Git Repositories ==&lt;br /&gt;
(Most of) the various software packages used for the control and monitoring of the HAICU setup are kept in the TRIUMF gitlab at https://gitlab.triumf.ca/groups/haicu/. In general, each repository should have a README file as well as Doxygen documentation accessible from the &amp;quot;Gitlab Pages&amp;quot; link or from a link at the start of the README. Specifically the software packages are:&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/magnet_control magnet_control], which contains the drivers, test code, and frontends for Raspberry Pi box controlling the magnet power supplies&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_client PPG Client], which contains the code to load and run sequences on the Programmable Pulse Generator (or sequencer)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_cb_firmware PPG Firmware], which contains the Quartus project of the PPG-Chronobox FPGA code&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/vacuum-control-software Vacuum Control Software], which contains frontends for the Agilent gauges and turbopumps&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/teensy_software Teensy Software], which contains both firmware and Midas frontends for the flow and temperature monitoring Teensy boards&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/caen-dt5533en-hvps HV supply], which controls the CAEN DT5533 high voltage supply&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/lolxboardctrl SiPM bias], which controls the SiPM bias distribution and amplification box (LolX-box)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/intlck-watchdog Interlock Watchdog Firmware], which contains the firmware for the Arduino Due &amp;quot;Watchdog&amp;quot;&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/watchdog-frontend Interlock Watchdog Frontend], which contains the MIDAS frontend to interact with the watchdog&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/intlk_ping Network Status Monitor], which monitors the network reachability of certain devices and throws an interlock if they are not seen&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/pumpmon Water Pump Monitor], which monitors the operation of the recovery pump. May be different in final setup.&lt;br /&gt;
&lt;br /&gt;
= Procedures =&lt;br /&gt;
== Cooling Water Valves ==&lt;br /&gt;
As of now, this procedure applies to the quadrupole test stand in the HAICU area, it will likely be amended for the final setup. Plumbing schematics should also be added.&lt;br /&gt;
&lt;br /&gt;
=== Water TURN ON procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Ensure the interlock input labelled &amp;quot;Flow&amp;quot; is bypassed (yellow LED on)&lt;br /&gt;
# Check function of &#039;&#039;&#039;both&#039;&#039;&#039; solenoid valves connecting the manifold in the magnet testing area to the cooling lines via the interlock:&lt;br /&gt;
#* If open (yellow arrows point along flow direction), manually lift float switch in overflow bucket to trip interlock, observe valves closing, then reset &amp;quot;water mains&amp;quot; interlock output, observe them opening&lt;br /&gt;
#* If closed, reset &amp;quot;water mains&amp;quot; interlock output, then follow above procedure&lt;br /&gt;
# walk up to or call main control room (7333) and let them know you&#039;ll turn on HAICU cooling water and they might see a pressure drop&lt;br /&gt;
# &#039;&#039;&#039;Ensure&#039;&#039;&#039; the pressure release valve on the red line near the AE Techron and the coil test stand is &#039;&#039;&#039;closed&#039;&#039;&#039;&lt;br /&gt;
# Open manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole is starting to leak water (this is very subtle now and not vital)&lt;br /&gt;
# Reset water return pump interlock&lt;br /&gt;
# Open manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
# Confirm LEDs on both flow switches on the manifold turn green&lt;br /&gt;
#* If they do not, manual valves on the individual branches may not be fully open, check&lt;br /&gt;
# Arm flow switch interlock by turning off bypass on &amp;quot;Flow&amp;quot; input&lt;br /&gt;
# Confirm water return pump turns on and off regularly&lt;br /&gt;
&lt;br /&gt;
=== Water TURN OFF procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Close manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
#* This should trip the interlock, with a hiss right next to your head&lt;br /&gt;
# Close manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole stops leaking water&lt;br /&gt;
&lt;br /&gt;
= Resources and Manuals =&lt;br /&gt;
&lt;br /&gt;
* [[Equipment Manuals]]&lt;br /&gt;
* [[Miscellaneous Resources]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
= MediaWiki default blurb =&lt;br /&gt;
&amp;lt;strong&amp;gt;MediaWiki has been installed.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User&#039;s Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Interlock_System&amp;diff=116</id>
		<title>Interlock System</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Interlock_System&amp;diff=116"/>
		<updated>2026-07-27T23:39:46Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* User Guide */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General ==&lt;br /&gt;
=== Hazards and degrees of malfunction ===&lt;br /&gt;
&lt;br /&gt;
The HAICU trap contains several hazards to personnel and equipment safety. The main hazards to personnel are posed by the high power magnet power supplies, while the main hazards to equipment also include leaks/faults in the water cooling system leading to magnet overheating and local flooding.&lt;br /&gt;
&lt;br /&gt;
For mitigation purposes it is useful to separate three different degrees of malfunction: noticeable, concerning, and catastrophic. While this latter term is a little dramatic, the real distinction is between gradual changes in behaviour (e.g. the cooling water flow gradually decreases over time, indicating material buildup in the lines), and drastic changes (e.g. water flow on one of the output lines drops to zero, indicating a burst tube, spraying water, or significant reduction one of the small lines, indicating a local clog).&lt;br /&gt;
&lt;br /&gt;
Naturally these need to be handled differently:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type A:&#039;&#039;&#039; &#039;&#039;Catastrophic&#039;&#039; changes are simple thresholds that can be handled entirely in hardware, and trigger and emergency shutdown (&#039;&#039;crowbar&#039;&#039;). They must &#039;&#039;&#039;NEVER&#039;&#039;&#039; go unnoticed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type B:&#039;&#039;&#039; &#039;&#039;Concerning&#039;&#039; changes are also simple thresholds, but typically have finer granularity and adjustability and can benefit from some simple logic, (e.g. &amp;quot;more than 3 flowmeters read low&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type C:&#039;&#039;&#039; &#039;&#039;Noticeable&#039;&#039; changes require some level of analysis of observables over time, and are used to trigger gentle system ramp-downs to prevent more serious damage. These are a first line of defense and thus somewhat redundant. Should one get missed, overall safety (and most importantly &#039;&#039;personnel&#039;&#039; safety) is not compromised.&lt;br /&gt;
&lt;br /&gt;
The interlock system only handles type &#039;&#039;&#039;A&#039;&#039;&#039; and &#039;&#039;&#039;B&#039;&#039;&#039; events, type &#039;&#039;&#039;C&#039;&#039;&#039; is handled in MIDAS.&lt;br /&gt;
&lt;br /&gt;
=== Sensors ===&lt;br /&gt;
&lt;br /&gt;
The main concern for hazardous events in this setup is a malfunction or inadequacy in the water cooling system, which could lead to flooding or overheating.&lt;br /&gt;
&lt;br /&gt;
The system is monitored for malfunctions or abnormalities by a variety of sensing systems targeting different observables:&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Flowmeters:&#039;&#039;&#039; these small paddle-wheel flowmeters monitor the flow in all individual cooling water branches and provide a quantitative readout to a microcontroller and from there to MIDAS (&#039;&#039;&#039;B, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Flow Switches:&#039;&#039;&#039; these bulkier flowmeters sit in main water lines and have in-built threshold detection that can directly connect to an interlock system (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermistors:&#039;&#039;&#039; small thermistors are attached in key locations of the magnets and provide a quantitative readout to a microcontroller, much like the flowmeters (&#039;&#039;&#039;B, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermal Switches:&#039;&#039;&#039; bi-metal switches that provide no quantitative information but can directly connect to an interlock system, they can be placed in strategic locations (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermal Monitor Switch:&#039;&#039;&#039; thermistor- or thermocouple-reading box that provides a quantitative readout and and internal threshold, low granularity (&#039;&#039;optional&#039;&#039;, &#039;&#039;&#039;A, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Level Switches:&#039;&#039;&#039; simple float switches that trigger if the water in the leak-catching enclosure rises too high (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Leak Sensors:&#039;&#039;&#039; resistive wetness-sensing switches that can connect directly to an interlock system and can be placed on the floor in strategic locations (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
=== Output/Switching ===&lt;br /&gt;
&lt;br /&gt;
The main two things the interlock system needs to control are the magnet power supplies and the main water supply. Most interlock conditions that do not indicate a leak will simply turn off the magnet power supplies to prevent overheating, while leak detection additionally closes the main water valve to minimize flooding, and shuts down other sensitive electronics.&lt;br /&gt;
&lt;br /&gt;
Technically this is typically achieved by opening or closing a switch connecting two control pins on the device in question.&lt;br /&gt;
&lt;br /&gt;
== User Guide ==&lt;br /&gt;
&lt;br /&gt;
=== Panel sections ===&lt;br /&gt;
[[File:Interlock overview.svg|thumb|right|Sections of the currently assembled interlock: output sections are controlled by input sections above and to the left, i.e. Out0 is controlled by In0 only, Out1 is controlled by In0 and In1]]&lt;br /&gt;
&lt;br /&gt;
While the technical documentation below explains the function of the individual modules, necessary to assemble a new interlock setup, this user guide simply explains how to use the one currently in use in the HAICU area. The overview picture shows the four distinct areas of the interlock assembly:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;In0:&#039;&#039;&#039; inputs from individual sensors that, upon triggering, should shut down the entire setup, i.e. both water and magnet power (e.g. water spill sensors)&lt;br /&gt;
* &#039;&#039;&#039;In1:&#039;&#039;&#039; inputs from teensy boards and individual sensors, that, upon triggering, should shut down magnet power, but not water supply (e.g. magnet temperature sensors)&lt;br /&gt;
* &#039;&#039;&#039;Out0:&#039;&#039;&#039; outputs to devices that should &#039;&#039;only&#039;&#039; shut down when &#039;&#039;In0&#039;&#039; inputs trigger (e.g. main water valves)&lt;br /&gt;
* &#039;&#039;&#039;Out1:&#039;&#039;&#039; outputs to devices that should shut down when &#039;&#039;any&#039; inputs trigger (e.g. magnet power supplies)&lt;br /&gt;
&lt;br /&gt;
=== Inputs ===&lt;br /&gt;
&lt;br /&gt;
There are two different input modules, those with individual sensor connectors and those with a DSub9 connector to a teensy board, but from a user perspective they are very similar. Their elements are:&lt;br /&gt;
&lt;br /&gt;
[[File:InputA.svg|left|x140px|Elements of an individual type input]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Connector:&#039;&#039;&#039; input from individual sensor/switch or teensy board&lt;br /&gt;
* &#039;&#039;&#039;Bypass switch:&#039;&#039;&#039; slider switch to bypass input (1 per channel, right for bypass)&lt;br /&gt;
* &#039;&#039;&#039;Bypass LED:&#039;&#039;&#039; lights up orange if input is bypassed&lt;br /&gt;
* &#039;&#039;&#039;Status LED:&#039;&#039;&#039; green if interlock condition satisfied, red if not&lt;br /&gt;
&lt;br /&gt;
Note that the status LED behaves differently for the two different input modules: for individual inputs, bypass turns status green, while for teensy input the LED continues to show the signal status even when bypassed. On the one hand this is convenient to check the teensy signals, on the other hand it might be confusing when glancing at the overall interlock state.&lt;br /&gt;
&lt;br /&gt;
=== Outputs ===&lt;br /&gt;
&lt;br /&gt;
There are two different output modules, those with individual switch connectors and those with a DSub connector to the piBox, but from a user perspective they are very similar. Their elements are:&lt;br /&gt;
&lt;br /&gt;
[[File:OutputA.svg|left|x140px|Elements of individual type output]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Reset button:&#039;&#039;&#039; push to clear the interlock latch for associated output&lt;br /&gt;
* &#039;&#039;&#039;Status LED:&#039;&#039;&#039; green if interlock in good condition, red if latched&lt;br /&gt;
* &#039;&#039;&#039;Connector:&#039;&#039;&#039; output to individual device or piBox&lt;br /&gt;
&lt;br /&gt;
== Operation ==&lt;br /&gt;
&lt;br /&gt;
In order for any interlock output to be brought into the operational &#039;&#039;green&#039;&#039; condition, all inputs in associated input sections (&#039;&#039;In0&#039;&#039; or &#039;&#039;In0 and In1&#039;&#039;) must be satisfied or bypassed. Once that is assured, the reset button can clear the lock on an output. Two main things to consider:&lt;br /&gt;
&lt;br /&gt;
# Only bypass interlock channels if they&#039;re not in use, or bypassed temporarily according to proper procedure. A bypassed interlock is obviously no longer a safety feature.&lt;br /&gt;
# You must individually reset any output you&#039;re using. Some outputs should only be reset if other required outputs are also reset.&lt;br /&gt;
&lt;br /&gt;
== Modular Interlock System (Technical documentation) ==&lt;br /&gt;
&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
&lt;br /&gt;
One big requirement for an interlock system like this is, that it &#039;&#039;fails safe&#039;&#039;, i.e. a loss of power in the interlock system itself, or the cutting or disconnection of a wire, leads to the safe &#039;&#039;&#039;locked&#039;&#039;&#039; condition, rather than the &#039;&#039;&#039;all clear&#039;&#039;&#039;. Additionally the core interlock system should require no programming to minimize the possibility of bugs.&lt;br /&gt;
&lt;br /&gt;
In the HAICU interlock system, the interlock logic is modeled by relays in series. In order for the &#039;&#039;&#039;all clear&#039;&#039;&#039; to be given, voltage must pass through a series of &#039;&#039;normally open&#039;&#039; relays that each actively get switched closed by one of the above sensors. Each input has a manual bypass switch do allow for the manual deactivation of individual inputs.&lt;br /&gt;
&lt;br /&gt;
Finally the interlock system &#039;&#039;&#039;must&#039;&#039;&#039; latch. This means that, once triggered, the system does not go back into the &#039;&#039;&#039;all clear&#039;&#039;&#039; condition without human intervention. This is achieved by a separate output module.&lt;br /&gt;
&lt;br /&gt;
=== Modules ===&lt;br /&gt;
&lt;br /&gt;
Since the number of inputs and outputs to the system may change, it was decided to go with a modular approach instead of a single PCB. The following sections describe the individual modules.&lt;br /&gt;
&lt;br /&gt;
Schematics and kiCad projects for these modules can be found [https://gitlab.triumf.ca/haicu/haicu_control_electronics in the gitlab repo].&lt;br /&gt;
&lt;br /&gt;
[[File:Intlk scheme.svg|thumb|Concept scheme of the modular interlock. Columns can be used in parallel (green A configuration) or in series (red B configuration). Input modules can also be put above top dist board, but this is not currently used. &#039;&#039;Bottom dist&#039;&#039; is not actually a separate board, but a feature common to both output modules]]&lt;br /&gt;
&lt;br /&gt;
==== Power ====&lt;br /&gt;
&lt;br /&gt;
The power module generates the 3.3V needed for TTL communication and 2.2V for the LEDs out of 5V supply voltage. It also supplies 5V to the signal input of the following module.&lt;br /&gt;
&lt;br /&gt;
[[File:Intlk power conn.png|thumb|alt=Top to bottom: ground, Vdd, signal, signal, Vee, Vcc|Power module pinout for the modular interlock]]&lt;br /&gt;
&lt;br /&gt;
==== Top distribution ====&lt;br /&gt;
&lt;br /&gt;
The top distribution board distributes power and signals to columns of interlock modules.&lt;br /&gt;
&lt;br /&gt;
Manual switches can configure the signal path. The signal flow schematic is printed on the board. Note the switches are on the back of the board, since they are not meant to be changed in operation.&lt;br /&gt;
* &#039;&#039;&#039;SW2&#039;&#039;&#039; decides whether input comes from &amp;quot;global interlocks&amp;quot;, which can come from input modules above or from &#039;&#039;top dist&#039;&#039; modules to the left, switchable by &#039;&#039;&#039;SW3&#039;&#039;&#039;.&lt;br /&gt;
* &#039;&#039;&#039;SW1&#039;&#039;&#039; decides whether the next &#039;&#039;top dist&#039;&#039; module to the right gets the same input as this column, or the forwarded &#039;&#039;output&#039;&#039; of this column (requires another switch in &#039;&#039;bottom dist&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
==== Switch Input ====&lt;br /&gt;
&lt;br /&gt;
The switch input module (schematic &#039;&#039;input_moduleA&#039;&#039;) provides two-pin connectors that any switch-style sensors can be connected to. The understanding is that a closed connection signifies a satisfied interlock condition. The large LED below each connector shines green if the condition is met or red if it is not. Below each connector there is a bypass switch, which allows to deactivate that input. The small yellow LED next to the switch is on for bypassed condition. Note the large LED will be green if bypassed.&lt;br /&gt;
&lt;br /&gt;
There is a ribbon connector on the back reporting the state of each channel as a TTL level to the watchdog device described below.&lt;br /&gt;
&lt;br /&gt;
[[File:Input moduleA.png|frameless|600px|Input module for individual switch-type interlock sensors]]&lt;br /&gt;
&lt;br /&gt;
==== TTL Input ====&lt;br /&gt;
&lt;br /&gt;
The TTL input module does not connect to standard switch-style sensors, but instead expects TTL 3.3V levels, which it receives from a Teensy board measuring temperatures or flow rates. It, too, has 5 red/green LEDs indicating interlock status of each channel and 5 bypass switches with yellow LEDs. In contrast to the switch input module, the red/green LED still reflects input status, even if the bypass is active.&lt;br /&gt;
&lt;br /&gt;
This module has the same watchdog connector as the other input module.&lt;br /&gt;
&lt;br /&gt;
[[File:Intput module TTL2.png|frameless|600px|Input module for TTL interlock signals from Teensy board]]&lt;br /&gt;
&lt;br /&gt;
==== Signal booster ====&lt;br /&gt;
&lt;br /&gt;
The inexpertly designed concept of this modular interlock results in a drop in signal level if too many boards are used in series. This module brings it back up to 5V. In principle it can also be used between input modules, but it&#039;s probably wise to limit a single column to no more than 6 input modules.&lt;br /&gt;
&lt;br /&gt;
==== Bottom distribution ====&lt;br /&gt;
&lt;br /&gt;
This is not actually a separate module, but a feature common to both output modules below.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SW1&#039;&#039;&#039; switches between &#039;&#039;normal mode&#039;&#039; &#039;&#039;&#039;B&#039;&#039;&#039;, where the signal from the column above gets used to switch this output module and any below it, and &#039;&#039;daisychain mode&#039;&#039; &#039;&#039;&#039;A&#039;&#039;&#039;, where the signal from the column above gets sent back to the top to serve as the input of the next column, while this output module receives its input from the output module to its right.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 1:&#039;&#039;&#039; this requires SW1 in this column&#039;s &#039;&#039;top dist&#039;&#039; board to be in the &#039;&#039;daisychain&#039;&#039; position.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 2:&#039;&#039;&#039; only the top-most output module should ever have SW1 in position &#039;&#039;&#039;A&#039;&#039;&#039;, unless you really know what you&#039;re doing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Individual Output ====&lt;br /&gt;
&lt;br /&gt;
This module provides two-pin connectors to connect to individual devices. They behave just like if a switching sensor was directly plugged into the device, with two key differences:&lt;br /&gt;
&lt;br /&gt;
# they latch, so even if the condition that triggered the interlock gets remedied, they need to be reset manually, using a push button above each connector&lt;br /&gt;
# they can be switched between &#039;&#039;normally open&#039;&#039; (&#039;&#039;&#039;NO&#039;&#039;&#039;) mode and &#039;&#039;normally closed&#039;&#039; (&#039;&#039;&#039;NC&#039;&#039;&#039;) mode. The latter is e.g. needed for the AE Techron power supply.&lt;br /&gt;
&lt;br /&gt;
All channels trigger together but need to be reset separately. The red/green LED above each connector shows the state.&lt;br /&gt;
&lt;br /&gt;
[[File:Output general.png|600px|frameless|Individual output interlock module with per-channel latch reset buttons. Not the switches to change a channel from &#039;&#039;normally open&#039;&#039; to &#039;&#039;normally closed&#039;&#039; are on the back]]&lt;br /&gt;
&lt;br /&gt;
==== DSub Output ====&lt;br /&gt;
&lt;br /&gt;
This module is specifically designed to connect to the [[Magnet Control Box]] to provide the interlock signals for the Sorensen SGX power supplies. It has a single LED and reset button for all outputs together.&lt;br /&gt;
&lt;br /&gt;
[[File:Output dsub.png|600px|frameless|DSub interlock output module to connect to Magnet Control Box]]&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
[[File:Intlk example good.jpg|thumb|Interlock in ALL CLEAR condition: 3 sensors + 1 teensy connected and happy, other inputs bypassed. Outputs clear. See blue boxes for points of interest in these examples.]]&lt;br /&gt;
[[File:Intlk example tripped.jpg|thumb|Interlock right side tripped by sensor In1-20, right side outputs tripped ]]&lt;br /&gt;
[[File:Intlk example latched.jpg|thumb|Interlock after sensor recovery, inputs are happy, but outputs remain latched. Push Reset to resume operation.]]&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Interlock_System&amp;diff=115</id>
		<title>Interlock System</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Interlock_System&amp;diff=115"/>
		<updated>2026-07-27T23:36:52Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* User Guide */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General ==&lt;br /&gt;
=== Hazards and degrees of malfunction ===&lt;br /&gt;
&lt;br /&gt;
The HAICU trap contains several hazards to personnel and equipment safety. The main hazards to personnel are posed by the high power magnet power supplies, while the main hazards to equipment also include leaks/faults in the water cooling system leading to magnet overheating and local flooding.&lt;br /&gt;
&lt;br /&gt;
For mitigation purposes it is useful to separate three different degrees of malfunction: noticeable, concerning, and catastrophic. While this latter term is a little dramatic, the real distinction is between gradual changes in behaviour (e.g. the cooling water flow gradually decreases over time, indicating material buildup in the lines), and drastic changes (e.g. water flow on one of the output lines drops to zero, indicating a burst tube, spraying water, or significant reduction one of the small lines, indicating a local clog).&lt;br /&gt;
&lt;br /&gt;
Naturally these need to be handled differently:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type A:&#039;&#039;&#039; &#039;&#039;Catastrophic&#039;&#039; changes are simple thresholds that can be handled entirely in hardware, and trigger and emergency shutdown (&#039;&#039;crowbar&#039;&#039;). They must &#039;&#039;&#039;NEVER&#039;&#039;&#039; go unnoticed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type B:&#039;&#039;&#039; &#039;&#039;Concerning&#039;&#039; changes are also simple thresholds, but typically have finer granularity and adjustability and can benefit from some simple logic, (e.g. &amp;quot;more than 3 flowmeters read low&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type C:&#039;&#039;&#039; &#039;&#039;Noticeable&#039;&#039; changes require some level of analysis of observables over time, and are used to trigger gentle system ramp-downs to prevent more serious damage. These are a first line of defense and thus somewhat redundant. Should one get missed, overall safety (and most importantly &#039;&#039;personnel&#039;&#039; safety) is not compromised.&lt;br /&gt;
&lt;br /&gt;
The interlock system only handles type &#039;&#039;&#039;A&#039;&#039;&#039; and &#039;&#039;&#039;B&#039;&#039;&#039; events, type &#039;&#039;&#039;C&#039;&#039;&#039; is handled in MIDAS.&lt;br /&gt;
&lt;br /&gt;
=== Sensors ===&lt;br /&gt;
&lt;br /&gt;
The main concern for hazardous events in this setup is a malfunction or inadequacy in the water cooling system, which could lead to flooding or overheating.&lt;br /&gt;
&lt;br /&gt;
The system is monitored for malfunctions or abnormalities by a variety of sensing systems targeting different observables:&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Flowmeters:&#039;&#039;&#039; these small paddle-wheel flowmeters monitor the flow in all individual cooling water branches and provide a quantitative readout to a microcontroller and from there to MIDAS (&#039;&#039;&#039;B, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Flow Switches:&#039;&#039;&#039; these bulkier flowmeters sit in main water lines and have in-built threshold detection that can directly connect to an interlock system (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermistors:&#039;&#039;&#039; small thermistors are attached in key locations of the magnets and provide a quantitative readout to a microcontroller, much like the flowmeters (&#039;&#039;&#039;B, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermal Switches:&#039;&#039;&#039; bi-metal switches that provide no quantitative information but can directly connect to an interlock system, they can be placed in strategic locations (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermal Monitor Switch:&#039;&#039;&#039; thermistor- or thermocouple-reading box that provides a quantitative readout and and internal threshold, low granularity (&#039;&#039;optional&#039;&#039;, &#039;&#039;&#039;A, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Level Switches:&#039;&#039;&#039; simple float switches that trigger if the water in the leak-catching enclosure rises too high (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Leak Sensors:&#039;&#039;&#039; resistive wetness-sensing switches that can connect directly to an interlock system and can be placed on the floor in strategic locations (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
=== Output/Switching ===&lt;br /&gt;
&lt;br /&gt;
The main two things the interlock system needs to control are the magnet power supplies and the main water supply. Most interlock conditions that do not indicate a leak will simply turn off the magnet power supplies to prevent overheating, while leak detection additionally closes the main water valve to minimize flooding, and shuts down other sensitive electronics.&lt;br /&gt;
&lt;br /&gt;
Technically this is typically achieved by opening or closing a switch connecting two control pins on the device in question.&lt;br /&gt;
&lt;br /&gt;
== User Guide ==&lt;br /&gt;
&lt;br /&gt;
=== Panel sections ===&lt;br /&gt;
[[File:Interlock overview.svg|thumb|right|Sections of the currently assembled interlock: output sections are controlled by input sections above and to the left, i.e. Out0 is controlled by In0 only, Out1 is controlled by In0 and In1]]&lt;br /&gt;
&lt;br /&gt;
While the technical documentation below explains the function of the individual modules, necessary to assemble a new interlock setup, this user guide simply explains how to use the one currently in use in the HAICU area. The overview picture shows the four distinct areas of the interlock assembly:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;In0:&#039;&#039;&#039; inputs from individual sensors that, upon triggering, should shut down the entire setup, i.e. both water and magnet power (e.g. water spill sensors)&lt;br /&gt;
* &#039;&#039;&#039;In1:&#039;&#039;&#039; inputs from teensy boards and individual sensors, that, upon triggering, should shut down magnet power, but not water supply (e.g. magnet temperature sensors)&lt;br /&gt;
* &#039;&#039;&#039;Out0:&#039;&#039;&#039; outputs to devices that should &#039;&#039;only&#039;&#039; shut down when &#039;&#039;In0&#039;&#039; inputs trigger (e.g. main water valves)&lt;br /&gt;
* &#039;&#039;&#039;Out1:&#039;&#039;&#039; outputs to devices that should shut down when &#039;&#039;any&#039; inputs trigger (e.g. magnet power supplies)&lt;br /&gt;
&lt;br /&gt;
=== Inputs ===&lt;br /&gt;
&lt;br /&gt;
[[File:InputA.svg|thumb|left|x100px|Elements of an individual type input]]&lt;br /&gt;
&lt;br /&gt;
There are two different input modules, those with individual sensor connectors and those with a DSub9 connector to a teensy board, but from a user perspective they are very similar. Their elements are:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Connector:&#039;&#039;&#039; input from individual sensor/switch or teensy board&lt;br /&gt;
* &#039;&#039;&#039;Bypass switch:&#039;&#039;&#039; slider switch to bypass input (1 per channel, right for bypass)&lt;br /&gt;
* &#039;&#039;&#039;Bypass LED:&#039;&#039;&#039; lights up orange if input is bypassed&lt;br /&gt;
* &#039;&#039;&#039;Status LED:&#039;&#039;&#039; green if interlock condition satisfied, red if not&lt;br /&gt;
&lt;br /&gt;
Note that the status LED behaves differently for the two different input modules: for individual inputs, bypass turns status green, while for teensy input the LED continues to show the signal status even when bypassed. On the one hand this is convenient to check the teensy signals, on the other hand it might be confusing when glancing at the overall interlock state.&lt;br /&gt;
&lt;br /&gt;
=== Outputs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:OutputA.svg|thumb|left|x100px|Elements of individual type output]]&lt;br /&gt;
There are two different output modules, those with individual switch connectors and those with a DSub connector to the piBox, but from a user perspective they are very similar. Their elements are:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Reset button:&#039;&#039;&#039; push to clear the interlock latch for associated output&lt;br /&gt;
* &#039;&#039;&#039;Status LED:&#039;&#039;&#039; green if interlock in good condition, red if latched&lt;br /&gt;
* &#039;&#039;&#039;Connector:&#039;&#039;&#039; output to individual device or piBox&lt;br /&gt;
&lt;br /&gt;
== Operation ==&lt;br /&gt;
&lt;br /&gt;
In order for any interlock output to be brought into the operational &#039;&#039;green&#039;&#039; condition, all inputs in associated input sections (&#039;&#039;In0&#039;&#039; or &#039;&#039;In0 and In1&#039;&#039;) must be satisfied or bypassed. Once that is assured, the reset button can clear the lock on an output. Two main things to consider:&lt;br /&gt;
&lt;br /&gt;
# Only bypass interlock channels if they&#039;re not in use, or bypassed temporarily according to proper procedure. A bypassed interlock is obviously no longer a safety feature.&lt;br /&gt;
# You must individually reset any output you&#039;re using. Some outputs should only be reset if other required outputs are also reset.&lt;br /&gt;
&lt;br /&gt;
== Modular Interlock System (Technical documentation) ==&lt;br /&gt;
&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
&lt;br /&gt;
One big requirement for an interlock system like this is, that it &#039;&#039;fails safe&#039;&#039;, i.e. a loss of power in the interlock system itself, or the cutting or disconnection of a wire, leads to the safe &#039;&#039;&#039;locked&#039;&#039;&#039; condition, rather than the &#039;&#039;&#039;all clear&#039;&#039;&#039;. Additionally the core interlock system should require no programming to minimize the possibility of bugs.&lt;br /&gt;
&lt;br /&gt;
In the HAICU interlock system, the interlock logic is modeled by relays in series. In order for the &#039;&#039;&#039;all clear&#039;&#039;&#039; to be given, voltage must pass through a series of &#039;&#039;normally open&#039;&#039; relays that each actively get switched closed by one of the above sensors. Each input has a manual bypass switch do allow for the manual deactivation of individual inputs.&lt;br /&gt;
&lt;br /&gt;
Finally the interlock system &#039;&#039;&#039;must&#039;&#039;&#039; latch. This means that, once triggered, the system does not go back into the &#039;&#039;&#039;all clear&#039;&#039;&#039; condition without human intervention. This is achieved by a separate output module.&lt;br /&gt;
&lt;br /&gt;
=== Modules ===&lt;br /&gt;
&lt;br /&gt;
Since the number of inputs and outputs to the system may change, it was decided to go with a modular approach instead of a single PCB. The following sections describe the individual modules.&lt;br /&gt;
&lt;br /&gt;
Schematics and kiCad projects for these modules can be found [https://gitlab.triumf.ca/haicu/haicu_control_electronics in the gitlab repo].&lt;br /&gt;
&lt;br /&gt;
[[File:Intlk scheme.svg|thumb|Concept scheme of the modular interlock. Columns can be used in parallel (green A configuration) or in series (red B configuration). Input modules can also be put above top dist board, but this is not currently used. &#039;&#039;Bottom dist&#039;&#039; is not actually a separate board, but a feature common to both output modules]]&lt;br /&gt;
&lt;br /&gt;
==== Power ====&lt;br /&gt;
&lt;br /&gt;
The power module generates the 3.3V needed for TTL communication and 2.2V for the LEDs out of 5V supply voltage. It also supplies 5V to the signal input of the following module.&lt;br /&gt;
&lt;br /&gt;
[[File:Intlk power conn.png|thumb|alt=Top to bottom: ground, Vdd, signal, signal, Vee, Vcc|Power module pinout for the modular interlock]]&lt;br /&gt;
&lt;br /&gt;
==== Top distribution ====&lt;br /&gt;
&lt;br /&gt;
The top distribution board distributes power and signals to columns of interlock modules.&lt;br /&gt;
&lt;br /&gt;
Manual switches can configure the signal path. The signal flow schematic is printed on the board. Note the switches are on the back of the board, since they are not meant to be changed in operation.&lt;br /&gt;
* &#039;&#039;&#039;SW2&#039;&#039;&#039; decides whether input comes from &amp;quot;global interlocks&amp;quot;, which can come from input modules above or from &#039;&#039;top dist&#039;&#039; modules to the left, switchable by &#039;&#039;&#039;SW3&#039;&#039;&#039;.&lt;br /&gt;
* &#039;&#039;&#039;SW1&#039;&#039;&#039; decides whether the next &#039;&#039;top dist&#039;&#039; module to the right gets the same input as this column, or the forwarded &#039;&#039;output&#039;&#039; of this column (requires another switch in &#039;&#039;bottom dist&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
==== Switch Input ====&lt;br /&gt;
&lt;br /&gt;
The switch input module (schematic &#039;&#039;input_moduleA&#039;&#039;) provides two-pin connectors that any switch-style sensors can be connected to. The understanding is that a closed connection signifies a satisfied interlock condition. The large LED below each connector shines green if the condition is met or red if it is not. Below each connector there is a bypass switch, which allows to deactivate that input. The small yellow LED next to the switch is on for bypassed condition. Note the large LED will be green if bypassed.&lt;br /&gt;
&lt;br /&gt;
There is a ribbon connector on the back reporting the state of each channel as a TTL level to the watchdog device described below.&lt;br /&gt;
&lt;br /&gt;
[[File:Input moduleA.png|frameless|600px|Input module for individual switch-type interlock sensors]]&lt;br /&gt;
&lt;br /&gt;
==== TTL Input ====&lt;br /&gt;
&lt;br /&gt;
The TTL input module does not connect to standard switch-style sensors, but instead expects TTL 3.3V levels, which it receives from a Teensy board measuring temperatures or flow rates. It, too, has 5 red/green LEDs indicating interlock status of each channel and 5 bypass switches with yellow LEDs. In contrast to the switch input module, the red/green LED still reflects input status, even if the bypass is active.&lt;br /&gt;
&lt;br /&gt;
This module has the same watchdog connector as the other input module.&lt;br /&gt;
&lt;br /&gt;
[[File:Intput module TTL2.png|frameless|600px|Input module for TTL interlock signals from Teensy board]]&lt;br /&gt;
&lt;br /&gt;
==== Signal booster ====&lt;br /&gt;
&lt;br /&gt;
The inexpertly designed concept of this modular interlock results in a drop in signal level if too many boards are used in series. This module brings it back up to 5V. In principle it can also be used between input modules, but it&#039;s probably wise to limit a single column to no more than 6 input modules.&lt;br /&gt;
&lt;br /&gt;
==== Bottom distribution ====&lt;br /&gt;
&lt;br /&gt;
This is not actually a separate module, but a feature common to both output modules below.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SW1&#039;&#039;&#039; switches between &#039;&#039;normal mode&#039;&#039; &#039;&#039;&#039;B&#039;&#039;&#039;, where the signal from the column above gets used to switch this output module and any below it, and &#039;&#039;daisychain mode&#039;&#039; &#039;&#039;&#039;A&#039;&#039;&#039;, where the signal from the column above gets sent back to the top to serve as the input of the next column, while this output module receives its input from the output module to its right.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 1:&#039;&#039;&#039; this requires SW1 in this column&#039;s &#039;&#039;top dist&#039;&#039; board to be in the &#039;&#039;daisychain&#039;&#039; position.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 2:&#039;&#039;&#039; only the top-most output module should ever have SW1 in position &#039;&#039;&#039;A&#039;&#039;&#039;, unless you really know what you&#039;re doing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Individual Output ====&lt;br /&gt;
&lt;br /&gt;
This module provides two-pin connectors to connect to individual devices. They behave just like if a switching sensor was directly plugged into the device, with two key differences:&lt;br /&gt;
&lt;br /&gt;
# they latch, so even if the condition that triggered the interlock gets remedied, they need to be reset manually, using a push button above each connector&lt;br /&gt;
# they can be switched between &#039;&#039;normally open&#039;&#039; (&#039;&#039;&#039;NO&#039;&#039;&#039;) mode and &#039;&#039;normally closed&#039;&#039; (&#039;&#039;&#039;NC&#039;&#039;&#039;) mode. The latter is e.g. needed for the AE Techron power supply.&lt;br /&gt;
&lt;br /&gt;
All channels trigger together but need to be reset separately. The red/green LED above each connector shows the state.&lt;br /&gt;
&lt;br /&gt;
[[File:Output general.png|600px|frameless|Individual output interlock module with per-channel latch reset buttons. Not the switches to change a channel from &#039;&#039;normally open&#039;&#039; to &#039;&#039;normally closed&#039;&#039; are on the back]]&lt;br /&gt;
&lt;br /&gt;
==== DSub Output ====&lt;br /&gt;
&lt;br /&gt;
This module is specifically designed to connect to the [[Magnet Control Box]] to provide the interlock signals for the Sorensen SGX power supplies. It has a single LED and reset button for all outputs together.&lt;br /&gt;
&lt;br /&gt;
[[File:Output dsub.png|600px|frameless|DSub interlock output module to connect to Magnet Control Box]]&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
[[File:Intlk example good.jpg|thumb|Interlock in ALL CLEAR condition: 3 sensors + 1 teensy connected and happy, other inputs bypassed. Outputs clear. See blue boxes for points of interest in these examples.]]&lt;br /&gt;
[[File:Intlk example tripped.jpg|thumb|Interlock right side tripped by sensor In1-20, right side outputs tripped ]]&lt;br /&gt;
[[File:Intlk example latched.jpg|thumb|Interlock after sensor recovery, inputs are happy, but outputs remain latched. Push Reset to resume operation.]]&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Interlock_System&amp;diff=114</id>
		<title>Interlock System</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Interlock_System&amp;diff=114"/>
		<updated>2026-07-27T23:27:55Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* User Guide */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General ==&lt;br /&gt;
=== Hazards and degrees of malfunction ===&lt;br /&gt;
&lt;br /&gt;
The HAICU trap contains several hazards to personnel and equipment safety. The main hazards to personnel are posed by the high power magnet power supplies, while the main hazards to equipment also include leaks/faults in the water cooling system leading to magnet overheating and local flooding.&lt;br /&gt;
&lt;br /&gt;
For mitigation purposes it is useful to separate three different degrees of malfunction: noticeable, concerning, and catastrophic. While this latter term is a little dramatic, the real distinction is between gradual changes in behaviour (e.g. the cooling water flow gradually decreases over time, indicating material buildup in the lines), and drastic changes (e.g. water flow on one of the output lines drops to zero, indicating a burst tube, spraying water, or significant reduction one of the small lines, indicating a local clog).&lt;br /&gt;
&lt;br /&gt;
Naturally these need to be handled differently:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type A:&#039;&#039;&#039; &#039;&#039;Catastrophic&#039;&#039; changes are simple thresholds that can be handled entirely in hardware, and trigger and emergency shutdown (&#039;&#039;crowbar&#039;&#039;). They must &#039;&#039;&#039;NEVER&#039;&#039;&#039; go unnoticed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type B:&#039;&#039;&#039; &#039;&#039;Concerning&#039;&#039; changes are also simple thresholds, but typically have finer granularity and adjustability and can benefit from some simple logic, (e.g. &amp;quot;more than 3 flowmeters read low&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type C:&#039;&#039;&#039; &#039;&#039;Noticeable&#039;&#039; changes require some level of analysis of observables over time, and are used to trigger gentle system ramp-downs to prevent more serious damage. These are a first line of defense and thus somewhat redundant. Should one get missed, overall safety (and most importantly &#039;&#039;personnel&#039;&#039; safety) is not compromised.&lt;br /&gt;
&lt;br /&gt;
The interlock system only handles type &#039;&#039;&#039;A&#039;&#039;&#039; and &#039;&#039;&#039;B&#039;&#039;&#039; events, type &#039;&#039;&#039;C&#039;&#039;&#039; is handled in MIDAS.&lt;br /&gt;
&lt;br /&gt;
=== Sensors ===&lt;br /&gt;
&lt;br /&gt;
The main concern for hazardous events in this setup is a malfunction or inadequacy in the water cooling system, which could lead to flooding or overheating.&lt;br /&gt;
&lt;br /&gt;
The system is monitored for malfunctions or abnormalities by a variety of sensing systems targeting different observables:&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Flowmeters:&#039;&#039;&#039; these small paddle-wheel flowmeters monitor the flow in all individual cooling water branches and provide a quantitative readout to a microcontroller and from there to MIDAS (&#039;&#039;&#039;B, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Flow Switches:&#039;&#039;&#039; these bulkier flowmeters sit in main water lines and have in-built threshold detection that can directly connect to an interlock system (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermistors:&#039;&#039;&#039; small thermistors are attached in key locations of the magnets and provide a quantitative readout to a microcontroller, much like the flowmeters (&#039;&#039;&#039;B, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermal Switches:&#039;&#039;&#039; bi-metal switches that provide no quantitative information but can directly connect to an interlock system, they can be placed in strategic locations (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermal Monitor Switch:&#039;&#039;&#039; thermistor- or thermocouple-reading box that provides a quantitative readout and and internal threshold, low granularity (&#039;&#039;optional&#039;&#039;, &#039;&#039;&#039;A, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Level Switches:&#039;&#039;&#039; simple float switches that trigger if the water in the leak-catching enclosure rises too high (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Leak Sensors:&#039;&#039;&#039; resistive wetness-sensing switches that can connect directly to an interlock system and can be placed on the floor in strategic locations (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
=== Output/Switching ===&lt;br /&gt;
&lt;br /&gt;
The main two things the interlock system needs to control are the magnet power supplies and the main water supply. Most interlock conditions that do not indicate a leak will simply turn off the magnet power supplies to prevent overheating, while leak detection additionally closes the main water valve to minimize flooding, and shuts down other sensitive electronics.&lt;br /&gt;
&lt;br /&gt;
Technically this is typically achieved by opening or closing a switch connecting two control pins on the device in question.&lt;br /&gt;
&lt;br /&gt;
== User Guide ==&lt;br /&gt;
&lt;br /&gt;
=== Panel sections ===&lt;br /&gt;
[[File:Interlock overview.svg|thumb|Sections of the currently assembled interlock: output sections are controlled by input sections above and to the left, i.e. Out0 is controlled by In0 only, Out1 is controlled by In0 and In1]]&lt;br /&gt;
&lt;br /&gt;
While the technical documentation below explains the function of the individual modules, necessary to assemble a new interlock setup, this user guide simply explains how to use the one currently in use in the HAICU area. The overview picture shows the four distinct areas of the interlock assembly:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;In0:&#039;&#039;&#039; inputs from individual sensors that, upon triggering, should shut down the entire setup, i.e. both water and magnet power (e.g. water spill sensors)&lt;br /&gt;
* &#039;&#039;&#039;In1:&#039;&#039;&#039; inputs from teensy boards and individual sensors, that, upon triggering, should shut down magnet power, but not water supply (e.g. magnet temperature sensors)&lt;br /&gt;
* &#039;&#039;&#039;Out0:&#039;&#039;&#039; outputs to devices that should &#039;&#039;only&#039;&#039; shut down when &#039;&#039;In0&#039;&#039; inputs trigger (e.g. main water valves)&lt;br /&gt;
* &#039;&#039;&#039;Out1:&#039;&#039;&#039; outputs to devices that should shut down when &#039;&#039;any&#039; inputs trigger (e.g. magnet power supplies)&lt;br /&gt;
&lt;br /&gt;
=== Inputs ===&lt;br /&gt;
&lt;br /&gt;
[[File:InputA.svg|thumb|Elements of an individual type input]]&lt;br /&gt;
&lt;br /&gt;
There are two different input modules, those with individual sensor connectors and those with a DSub9 connector to a teensy board, but from a user perspective they are very similar. Their elements are:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Connector:&#039;&#039;&#039; input from individual sensor/switch or teensy board&lt;br /&gt;
* &#039;&#039;&#039;Bypass switch:&#039;&#039;&#039; slider switch to bypass input (1 per channel, right for bypass)&lt;br /&gt;
* &#039;&#039;&#039;Bypass LED:&#039;&#039;&#039; lights up orange if input is bypassed&lt;br /&gt;
* &#039;&#039;&#039;Status LED:&#039;&#039;&#039; green if interlock condition satisfied, red if not&lt;br /&gt;
&lt;br /&gt;
Note that the status LED behaves differently for the two different input modules: for individual inputs, bypass turns status green, while for teensy input the LED continues to show the signal status even when bypassed.&lt;br /&gt;
&lt;br /&gt;
=== Outputs ===&lt;br /&gt;
&lt;br /&gt;
[[File:OutputA.svg|thumb|Elements of individual type output]]&lt;br /&gt;
&lt;br /&gt;
There are two different output modules, those with individual switch connectors and those with a DSub connector to the piBox, but from a user perspective they are very similar. Their elements are:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Reset button:&#039;&#039;&#039; push to clear the interlock latch for associated output&lt;br /&gt;
* &#039;&#039;&#039;Status LED:&#039;&#039;&#039; green if interlock in good condition, red if latched&lt;br /&gt;
* &#039;&#039;&#039;Connector:&#039;&#039;&#039; output to individual device or piBox&lt;br /&gt;
&lt;br /&gt;
== Operation ==&lt;br /&gt;
&lt;br /&gt;
In order for any interlock output to be brought into the operational &#039;&#039;green&#039;&#039; condition, all inputs in associated input sections (&#039;&#039;In0&#039;&#039; or &#039;&#039;In0 and In1&#039;&#039;) must be satisfied or bypassed. Once that is assured, the reset button can clear the lock on an output. Two main things to consider:&lt;br /&gt;
&lt;br /&gt;
# Only bypass interlock channels if they&#039;re not in use, or bypassed temporarily according to proper procedure. A bypassed interlock is obviously no longer a safety feature.&lt;br /&gt;
# You must individually reset any output you&#039;re using. Some outputs should only be reset if other required outputs are also reset.&lt;br /&gt;
&lt;br /&gt;
== Modular Interlock System (Technical documentation) ==&lt;br /&gt;
&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
&lt;br /&gt;
One big requirement for an interlock system like this is, that it &#039;&#039;fails safe&#039;&#039;, i.e. a loss of power in the interlock system itself, or the cutting or disconnection of a wire, leads to the safe &#039;&#039;&#039;locked&#039;&#039;&#039; condition, rather than the &#039;&#039;&#039;all clear&#039;&#039;&#039;. Additionally the core interlock system should require no programming to minimize the possibility of bugs.&lt;br /&gt;
&lt;br /&gt;
In the HAICU interlock system, the interlock logic is modeled by relays in series. In order for the &#039;&#039;&#039;all clear&#039;&#039;&#039; to be given, voltage must pass through a series of &#039;&#039;normally open&#039;&#039; relays that each actively get switched closed by one of the above sensors. Each input has a manual bypass switch do allow for the manual deactivation of individual inputs.&lt;br /&gt;
&lt;br /&gt;
Finally the interlock system &#039;&#039;&#039;must&#039;&#039;&#039; latch. This means that, once triggered, the system does not go back into the &#039;&#039;&#039;all clear&#039;&#039;&#039; condition without human intervention. This is achieved by a separate output module.&lt;br /&gt;
&lt;br /&gt;
=== Modules ===&lt;br /&gt;
&lt;br /&gt;
Since the number of inputs and outputs to the system may change, it was decided to go with a modular approach instead of a single PCB. The following sections describe the individual modules.&lt;br /&gt;
&lt;br /&gt;
Schematics and kiCad projects for these modules can be found [https://gitlab.triumf.ca/haicu/haicu_control_electronics in the gitlab repo].&lt;br /&gt;
&lt;br /&gt;
[[File:Intlk scheme.svg|thumb|Concept scheme of the modular interlock. Columns can be used in parallel (green A configuration) or in series (red B configuration). Input modules can also be put above top dist board, but this is not currently used. &#039;&#039;Bottom dist&#039;&#039; is not actually a separate board, but a feature common to both output modules]]&lt;br /&gt;
&lt;br /&gt;
==== Power ====&lt;br /&gt;
&lt;br /&gt;
The power module generates the 3.3V needed for TTL communication and 2.2V for the LEDs out of 5V supply voltage. It also supplies 5V to the signal input of the following module.&lt;br /&gt;
&lt;br /&gt;
[[File:Intlk power conn.png|thumb|alt=Top to bottom: ground, Vdd, signal, signal, Vee, Vcc|Power module pinout for the modular interlock]]&lt;br /&gt;
&lt;br /&gt;
==== Top distribution ====&lt;br /&gt;
&lt;br /&gt;
The top distribution board distributes power and signals to columns of interlock modules.&lt;br /&gt;
&lt;br /&gt;
Manual switches can configure the signal path. The signal flow schematic is printed on the board. Note the switches are on the back of the board, since they are not meant to be changed in operation.&lt;br /&gt;
* &#039;&#039;&#039;SW2&#039;&#039;&#039; decides whether input comes from &amp;quot;global interlocks&amp;quot;, which can come from input modules above or from &#039;&#039;top dist&#039;&#039; modules to the left, switchable by &#039;&#039;&#039;SW3&#039;&#039;&#039;.&lt;br /&gt;
* &#039;&#039;&#039;SW1&#039;&#039;&#039; decides whether the next &#039;&#039;top dist&#039;&#039; module to the right gets the same input as this column, or the forwarded &#039;&#039;output&#039;&#039; of this column (requires another switch in &#039;&#039;bottom dist&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
==== Switch Input ====&lt;br /&gt;
&lt;br /&gt;
The switch input module (schematic &#039;&#039;input_moduleA&#039;&#039;) provides two-pin connectors that any switch-style sensors can be connected to. The understanding is that a closed connection signifies a satisfied interlock condition. The large LED below each connector shines green if the condition is met or red if it is not. Below each connector there is a bypass switch, which allows to deactivate that input. The small yellow LED next to the switch is on for bypassed condition. Note the large LED will be green if bypassed.&lt;br /&gt;
&lt;br /&gt;
There is a ribbon connector on the back reporting the state of each channel as a TTL level to the watchdog device described below.&lt;br /&gt;
&lt;br /&gt;
[[File:Input moduleA.png|frameless|600px|Input module for individual switch-type interlock sensors]]&lt;br /&gt;
&lt;br /&gt;
==== TTL Input ====&lt;br /&gt;
&lt;br /&gt;
The TTL input module does not connect to standard switch-style sensors, but instead expects TTL 3.3V levels, which it receives from a Teensy board measuring temperatures or flow rates. It, too, has 5 red/green LEDs indicating interlock status of each channel and 5 bypass switches with yellow LEDs. In contrast to the switch input module, the red/green LED still reflects input status, even if the bypass is active.&lt;br /&gt;
&lt;br /&gt;
This module has the same watchdog connector as the other input module.&lt;br /&gt;
&lt;br /&gt;
[[File:Intput module TTL2.png|frameless|600px|Input module for TTL interlock signals from Teensy board]]&lt;br /&gt;
&lt;br /&gt;
==== Signal booster ====&lt;br /&gt;
&lt;br /&gt;
The inexpertly designed concept of this modular interlock results in a drop in signal level if too many boards are used in series. This module brings it back up to 5V. In principle it can also be used between input modules, but it&#039;s probably wise to limit a single column to no more than 6 input modules.&lt;br /&gt;
&lt;br /&gt;
==== Bottom distribution ====&lt;br /&gt;
&lt;br /&gt;
This is not actually a separate module, but a feature common to both output modules below.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SW1&#039;&#039;&#039; switches between &#039;&#039;normal mode&#039;&#039; &#039;&#039;&#039;B&#039;&#039;&#039;, where the signal from the column above gets used to switch this output module and any below it, and &#039;&#039;daisychain mode&#039;&#039; &#039;&#039;&#039;A&#039;&#039;&#039;, where the signal from the column above gets sent back to the top to serve as the input of the next column, while this output module receives its input from the output module to its right.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 1:&#039;&#039;&#039; this requires SW1 in this column&#039;s &#039;&#039;top dist&#039;&#039; board to be in the &#039;&#039;daisychain&#039;&#039; position.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 2:&#039;&#039;&#039; only the top-most output module should ever have SW1 in position &#039;&#039;&#039;A&#039;&#039;&#039;, unless you really know what you&#039;re doing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Individual Output ====&lt;br /&gt;
&lt;br /&gt;
This module provides two-pin connectors to connect to individual devices. They behave just like if a switching sensor was directly plugged into the device, with two key differences:&lt;br /&gt;
&lt;br /&gt;
# they latch, so even if the condition that triggered the interlock gets remedied, they need to be reset manually, using a push button above each connector&lt;br /&gt;
# they can be switched between &#039;&#039;normally open&#039;&#039; (&#039;&#039;&#039;NO&#039;&#039;&#039;) mode and &#039;&#039;normally closed&#039;&#039; (&#039;&#039;&#039;NC&#039;&#039;&#039;) mode. The latter is e.g. needed for the AE Techron power supply.&lt;br /&gt;
&lt;br /&gt;
All channels trigger together but need to be reset separately. The red/green LED above each connector shows the state.&lt;br /&gt;
&lt;br /&gt;
[[File:Output general.png|600px|frameless|Individual output interlock module with per-channel latch reset buttons. Not the switches to change a channel from &#039;&#039;normally open&#039;&#039; to &#039;&#039;normally closed&#039;&#039; are on the back]]&lt;br /&gt;
&lt;br /&gt;
==== DSub Output ====&lt;br /&gt;
&lt;br /&gt;
This module is specifically designed to connect to the [[Magnet Control Box]] to provide the interlock signals for the Sorensen SGX power supplies. It has a single LED and reset button for all outputs together.&lt;br /&gt;
&lt;br /&gt;
[[File:Output dsub.png|600px|frameless|DSub interlock output module to connect to Magnet Control Box]]&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
[[File:Intlk example good.jpg|thumb|Interlock in ALL CLEAR condition: 3 sensors + 1 teensy connected and happy, other inputs bypassed. Outputs clear. See blue boxes for points of interest in these examples.]]&lt;br /&gt;
[[File:Intlk example tripped.jpg|thumb|Interlock right side tripped by sensor In1-20, right side outputs tripped ]]&lt;br /&gt;
[[File:Intlk example latched.jpg|thumb|Interlock after sensor recovery, inputs are happy, but outputs remain latched. Push Reset to resume operation.]]&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Interlock_System&amp;diff=113</id>
		<title>Interlock System</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Interlock_System&amp;diff=113"/>
		<updated>2026-07-27T23:24:53Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* User Guide */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General ==&lt;br /&gt;
=== Hazards and degrees of malfunction ===&lt;br /&gt;
&lt;br /&gt;
The HAICU trap contains several hazards to personnel and equipment safety. The main hazards to personnel are posed by the high power magnet power supplies, while the main hazards to equipment also include leaks/faults in the water cooling system leading to magnet overheating and local flooding.&lt;br /&gt;
&lt;br /&gt;
For mitigation purposes it is useful to separate three different degrees of malfunction: noticeable, concerning, and catastrophic. While this latter term is a little dramatic, the real distinction is between gradual changes in behaviour (e.g. the cooling water flow gradually decreases over time, indicating material buildup in the lines), and drastic changes (e.g. water flow on one of the output lines drops to zero, indicating a burst tube, spraying water, or significant reduction one of the small lines, indicating a local clog).&lt;br /&gt;
&lt;br /&gt;
Naturally these need to be handled differently:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type A:&#039;&#039;&#039; &#039;&#039;Catastrophic&#039;&#039; changes are simple thresholds that can be handled entirely in hardware, and trigger and emergency shutdown (&#039;&#039;crowbar&#039;&#039;). They must &#039;&#039;&#039;NEVER&#039;&#039;&#039; go unnoticed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type B:&#039;&#039;&#039; &#039;&#039;Concerning&#039;&#039; changes are also simple thresholds, but typically have finer granularity and adjustability and can benefit from some simple logic, (e.g. &amp;quot;more than 3 flowmeters read low&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type C:&#039;&#039;&#039; &#039;&#039;Noticeable&#039;&#039; changes require some level of analysis of observables over time, and are used to trigger gentle system ramp-downs to prevent more serious damage. These are a first line of defense and thus somewhat redundant. Should one get missed, overall safety (and most importantly &#039;&#039;personnel&#039;&#039; safety) is not compromised.&lt;br /&gt;
&lt;br /&gt;
The interlock system only handles type &#039;&#039;&#039;A&#039;&#039;&#039; and &#039;&#039;&#039;B&#039;&#039;&#039; events, type &#039;&#039;&#039;C&#039;&#039;&#039; is handled in MIDAS.&lt;br /&gt;
&lt;br /&gt;
=== Sensors ===&lt;br /&gt;
&lt;br /&gt;
The main concern for hazardous events in this setup is a malfunction or inadequacy in the water cooling system, which could lead to flooding or overheating.&lt;br /&gt;
&lt;br /&gt;
The system is monitored for malfunctions or abnormalities by a variety of sensing systems targeting different observables:&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Flowmeters:&#039;&#039;&#039; these small paddle-wheel flowmeters monitor the flow in all individual cooling water branches and provide a quantitative readout to a microcontroller and from there to MIDAS (&#039;&#039;&#039;B, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Flow Switches:&#039;&#039;&#039; these bulkier flowmeters sit in main water lines and have in-built threshold detection that can directly connect to an interlock system (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermistors:&#039;&#039;&#039; small thermistors are attached in key locations of the magnets and provide a quantitative readout to a microcontroller, much like the flowmeters (&#039;&#039;&#039;B, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermal Switches:&#039;&#039;&#039; bi-metal switches that provide no quantitative information but can directly connect to an interlock system, they can be placed in strategic locations (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermal Monitor Switch:&#039;&#039;&#039; thermistor- or thermocouple-reading box that provides a quantitative readout and and internal threshold, low granularity (&#039;&#039;optional&#039;&#039;, &#039;&#039;&#039;A, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Level Switches:&#039;&#039;&#039; simple float switches that trigger if the water in the leak-catching enclosure rises too high (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Leak Sensors:&#039;&#039;&#039; resistive wetness-sensing switches that can connect directly to an interlock system and can be placed on the floor in strategic locations (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
=== Output/Switching ===&lt;br /&gt;
&lt;br /&gt;
The main two things the interlock system needs to control are the magnet power supplies and the main water supply. Most interlock conditions that do not indicate a leak will simply turn off the magnet power supplies to prevent overheating, while leak detection additionally closes the main water valve to minimize flooding, and shuts down other sensitive electronics.&lt;br /&gt;
&lt;br /&gt;
Technically this is typically achieved by opening or closing a switch connecting two control pins on the device in question.&lt;br /&gt;
&lt;br /&gt;
== User Guide ==&lt;br /&gt;
&lt;br /&gt;
=== Panel sections ===&lt;br /&gt;
&lt;br /&gt;
While the technical documentation below explains the function of the individual modules, necessary to assemble a new interlock setup, this user guide simply explains how to use the one currently in use in the HAICU area. The overview picture shows the four distinct areas of the interlock assembly:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;In0:&#039;&#039;&#039; inputs from individual sensors that, upon triggering, should shut down the entire setup, i.e. both water and magnet power (e.g. water spill sensors)&lt;br /&gt;
* &#039;&#039;&#039;In1:&#039;&#039;&#039; inputs from teensy boards and individual sensors, that, upon triggering, should shut down magnet power, but not water supply (e.g. magnet temperature sensors)&lt;br /&gt;
* &#039;&#039;&#039;Out0:&#039;&#039;&#039; outputs to devices that should &#039;&#039;only&#039;&#039; shut down when &#039;&#039;In0&#039;&#039; inputs trigger (e.g. main water valves)&lt;br /&gt;
* &#039;&#039;&#039;Out1:&#039;&#039;&#039; outputs to devices that should shut down when &#039;&#039;any&#039; inputs trigger (e.g. magnet power supplies)&lt;br /&gt;
&lt;br /&gt;
[[File:Interlock overview.svg|thumb|Sections of the currently assembled interlock: output sections are controlled by input sections above and to the left, i.e. Out0 is controlled by In0 only, Out1 is controlled by In0 and In1]]&lt;br /&gt;
&lt;br /&gt;
=== Inputs ===&lt;br /&gt;
&lt;br /&gt;
There are two different input modules, those with individual sensor connectors and those with a DSub9 connector to a teensy board, but from a user perspective they are very similar. Their elements are:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Connector:&#039;&#039;&#039; input from individual sensor/switch or teensy board&lt;br /&gt;
* &#039;&#039;&#039;Bypass switch:&#039;&#039;&#039; slider switch to bypass input (1 per channel, right for bypass)&lt;br /&gt;
* &#039;&#039;&#039;Bypass LED:&#039;&#039;&#039; lights up orange if input is bypassed&lt;br /&gt;
* &#039;&#039;&#039;Status LED:&#039;&#039;&#039; green if interlock condition satisfied, red if not&lt;br /&gt;
&lt;br /&gt;
Note that the status LED behaves differently for the two different input modules: for individual inputs, bypass turns status green, while for teensy input the LED continues to show the signal status even when bypassed.&lt;br /&gt;
&lt;br /&gt;
[[File:InputA.svg|thumb|Elements of an individual type input]]&lt;br /&gt;
&lt;br /&gt;
=== Outputs ===&lt;br /&gt;
&lt;br /&gt;
There are two different output modules, those with individual switch connectors and those with a DSub connector to the piBox, but from a user perspective they are very similar. Their elements are:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Reset button:&#039;&#039;&#039; push to clear the interlock latch for associated output&lt;br /&gt;
* &#039;&#039;&#039;Status LED:&#039;&#039;&#039; green if interlock in good condition, red if latched&lt;br /&gt;
* &#039;&#039;&#039;Connector:&#039;&#039;&#039; output to individual device or piBox&lt;br /&gt;
&lt;br /&gt;
[[File:OutputA.svg|thumb|Elements of individual type output]]&lt;br /&gt;
&lt;br /&gt;
== Operation ==&lt;br /&gt;
&lt;br /&gt;
In order for any interlock output to be brought into the operational &#039;&#039;green&#039;&#039; condition, all inputs in associated input sections (&#039;&#039;In0&#039;&#039; or &#039;&#039;In0 and In1&#039;&#039;) must be satisfied or bypassed. Once that is assured, the reset button can clear the lock on an output. Two main things to consider:&lt;br /&gt;
&lt;br /&gt;
# Only bypass interlock channels if they&#039;re not in use, or bypassed temporarily according to proper procedure. A bypassed interlock is obviously no longer a safety feature.&lt;br /&gt;
# You must individually reset any output you&#039;re using. Some outputs should only be reset if other required outputs are also reset.&lt;br /&gt;
&lt;br /&gt;
== Modular Interlock System (Technical documentation) ==&lt;br /&gt;
&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
&lt;br /&gt;
One big requirement for an interlock system like this is, that it &#039;&#039;fails safe&#039;&#039;, i.e. a loss of power in the interlock system itself, or the cutting or disconnection of a wire, leads to the safe &#039;&#039;&#039;locked&#039;&#039;&#039; condition, rather than the &#039;&#039;&#039;all clear&#039;&#039;&#039;. Additionally the core interlock system should require no programming to minimize the possibility of bugs.&lt;br /&gt;
&lt;br /&gt;
In the HAICU interlock system, the interlock logic is modeled by relays in series. In order for the &#039;&#039;&#039;all clear&#039;&#039;&#039; to be given, voltage must pass through a series of &#039;&#039;normally open&#039;&#039; relays that each actively get switched closed by one of the above sensors. Each input has a manual bypass switch do allow for the manual deactivation of individual inputs.&lt;br /&gt;
&lt;br /&gt;
Finally the interlock system &#039;&#039;&#039;must&#039;&#039;&#039; latch. This means that, once triggered, the system does not go back into the &#039;&#039;&#039;all clear&#039;&#039;&#039; condition without human intervention. This is achieved by a separate output module.&lt;br /&gt;
&lt;br /&gt;
=== Modules ===&lt;br /&gt;
&lt;br /&gt;
Since the number of inputs and outputs to the system may change, it was decided to go with a modular approach instead of a single PCB. The following sections describe the individual modules.&lt;br /&gt;
&lt;br /&gt;
Schematics and kiCad projects for these modules can be found [https://gitlab.triumf.ca/haicu/haicu_control_electronics in the gitlab repo].&lt;br /&gt;
&lt;br /&gt;
[[File:Intlk scheme.svg|thumb|Concept scheme of the modular interlock. Columns can be used in parallel (green A configuration) or in series (red B configuration). Input modules can also be put above top dist board, but this is not currently used. &#039;&#039;Bottom dist&#039;&#039; is not actually a separate board, but a feature common to both output modules]]&lt;br /&gt;
&lt;br /&gt;
==== Power ====&lt;br /&gt;
&lt;br /&gt;
The power module generates the 3.3V needed for TTL communication and 2.2V for the LEDs out of 5V supply voltage. It also supplies 5V to the signal input of the following module.&lt;br /&gt;
&lt;br /&gt;
[[File:Intlk power conn.png|thumb|alt=Top to bottom: ground, Vdd, signal, signal, Vee, Vcc|Power module pinout for the modular interlock]]&lt;br /&gt;
&lt;br /&gt;
==== Top distribution ====&lt;br /&gt;
&lt;br /&gt;
The top distribution board distributes power and signals to columns of interlock modules.&lt;br /&gt;
&lt;br /&gt;
Manual switches can configure the signal path. The signal flow schematic is printed on the board. Note the switches are on the back of the board, since they are not meant to be changed in operation.&lt;br /&gt;
* &#039;&#039;&#039;SW2&#039;&#039;&#039; decides whether input comes from &amp;quot;global interlocks&amp;quot;, which can come from input modules above or from &#039;&#039;top dist&#039;&#039; modules to the left, switchable by &#039;&#039;&#039;SW3&#039;&#039;&#039;.&lt;br /&gt;
* &#039;&#039;&#039;SW1&#039;&#039;&#039; decides whether the next &#039;&#039;top dist&#039;&#039; module to the right gets the same input as this column, or the forwarded &#039;&#039;output&#039;&#039; of this column (requires another switch in &#039;&#039;bottom dist&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
==== Switch Input ====&lt;br /&gt;
&lt;br /&gt;
The switch input module (schematic &#039;&#039;input_moduleA&#039;&#039;) provides two-pin connectors that any switch-style sensors can be connected to. The understanding is that a closed connection signifies a satisfied interlock condition. The large LED below each connector shines green if the condition is met or red if it is not. Below each connector there is a bypass switch, which allows to deactivate that input. The small yellow LED next to the switch is on for bypassed condition. Note the large LED will be green if bypassed.&lt;br /&gt;
&lt;br /&gt;
There is a ribbon connector on the back reporting the state of each channel as a TTL level to the watchdog device described below.&lt;br /&gt;
&lt;br /&gt;
[[File:Input moduleA.png|frameless|600px|Input module for individual switch-type interlock sensors]]&lt;br /&gt;
&lt;br /&gt;
==== TTL Input ====&lt;br /&gt;
&lt;br /&gt;
The TTL input module does not connect to standard switch-style sensors, but instead expects TTL 3.3V levels, which it receives from a Teensy board measuring temperatures or flow rates. It, too, has 5 red/green LEDs indicating interlock status of each channel and 5 bypass switches with yellow LEDs. In contrast to the switch input module, the red/green LED still reflects input status, even if the bypass is active.&lt;br /&gt;
&lt;br /&gt;
This module has the same watchdog connector as the other input module.&lt;br /&gt;
&lt;br /&gt;
[[File:Intput module TTL2.png|frameless|600px|Input module for TTL interlock signals from Teensy board]]&lt;br /&gt;
&lt;br /&gt;
==== Signal booster ====&lt;br /&gt;
&lt;br /&gt;
The inexpertly designed concept of this modular interlock results in a drop in signal level if too many boards are used in series. This module brings it back up to 5V. In principle it can also be used between input modules, but it&#039;s probably wise to limit a single column to no more than 6 input modules.&lt;br /&gt;
&lt;br /&gt;
==== Bottom distribution ====&lt;br /&gt;
&lt;br /&gt;
This is not actually a separate module, but a feature common to both output modules below.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SW1&#039;&#039;&#039; switches between &#039;&#039;normal mode&#039;&#039; &#039;&#039;&#039;B&#039;&#039;&#039;, where the signal from the column above gets used to switch this output module and any below it, and &#039;&#039;daisychain mode&#039;&#039; &#039;&#039;&#039;A&#039;&#039;&#039;, where the signal from the column above gets sent back to the top to serve as the input of the next column, while this output module receives its input from the output module to its right.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 1:&#039;&#039;&#039; this requires SW1 in this column&#039;s &#039;&#039;top dist&#039;&#039; board to be in the &#039;&#039;daisychain&#039;&#039; position.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 2:&#039;&#039;&#039; only the top-most output module should ever have SW1 in position &#039;&#039;&#039;A&#039;&#039;&#039;, unless you really know what you&#039;re doing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Individual Output ====&lt;br /&gt;
&lt;br /&gt;
This module provides two-pin connectors to connect to individual devices. They behave just like if a switching sensor was directly plugged into the device, with two key differences:&lt;br /&gt;
&lt;br /&gt;
# they latch, so even if the condition that triggered the interlock gets remedied, they need to be reset manually, using a push button above each connector&lt;br /&gt;
# they can be switched between &#039;&#039;normally open&#039;&#039; (&#039;&#039;&#039;NO&#039;&#039;&#039;) mode and &#039;&#039;normally closed&#039;&#039; (&#039;&#039;&#039;NC&#039;&#039;&#039;) mode. The latter is e.g. needed for the AE Techron power supply.&lt;br /&gt;
&lt;br /&gt;
All channels trigger together but need to be reset separately. The red/green LED above each connector shows the state.&lt;br /&gt;
&lt;br /&gt;
[[File:Output general.png|600px|frameless|Individual output interlock module with per-channel latch reset buttons. Not the switches to change a channel from &#039;&#039;normally open&#039;&#039; to &#039;&#039;normally closed&#039;&#039; are on the back]]&lt;br /&gt;
&lt;br /&gt;
==== DSub Output ====&lt;br /&gt;
&lt;br /&gt;
This module is specifically designed to connect to the [[Magnet Control Box]] to provide the interlock signals for the Sorensen SGX power supplies. It has a single LED and reset button for all outputs together.&lt;br /&gt;
&lt;br /&gt;
[[File:Output dsub.png|600px|frameless|DSub interlock output module to connect to Magnet Control Box]]&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
[[File:Intlk example good.jpg|thumb|Interlock in ALL CLEAR condition: 3 sensors + 1 teensy connected and happy, other inputs bypassed. Outputs clear. See blue boxes for points of interest in these examples.]]&lt;br /&gt;
[[File:Intlk example tripped.jpg|thumb|Interlock right side tripped by sensor In1-20, right side outputs tripped ]]&lt;br /&gt;
[[File:Intlk example latched.jpg|thumb|Interlock after sensor recovery, inputs are happy, but outputs remain latched. Push Reset to resume operation.]]&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=File:OutputA.svg&amp;diff=112</id>
		<title>File:OutputA.svg</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=File:OutputA.svg&amp;diff=112"/>
		<updated>2026-07-27T23:16:33Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;interlock individual style output&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Interlock_System&amp;diff=111</id>
		<title>Interlock System</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Interlock_System&amp;diff=111"/>
		<updated>2026-07-27T23:10:46Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: Working on user guide section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General ==&lt;br /&gt;
=== Hazards and degrees of malfunction ===&lt;br /&gt;
&lt;br /&gt;
The HAICU trap contains several hazards to personnel and equipment safety. The main hazards to personnel are posed by the high power magnet power supplies, while the main hazards to equipment also include leaks/faults in the water cooling system leading to magnet overheating and local flooding.&lt;br /&gt;
&lt;br /&gt;
For mitigation purposes it is useful to separate three different degrees of malfunction: noticeable, concerning, and catastrophic. While this latter term is a little dramatic, the real distinction is between gradual changes in behaviour (e.g. the cooling water flow gradually decreases over time, indicating material buildup in the lines), and drastic changes (e.g. water flow on one of the output lines drops to zero, indicating a burst tube, spraying water, or significant reduction one of the small lines, indicating a local clog).&lt;br /&gt;
&lt;br /&gt;
Naturally these need to be handled differently:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type A:&#039;&#039;&#039; &#039;&#039;Catastrophic&#039;&#039; changes are simple thresholds that can be handled entirely in hardware, and trigger and emergency shutdown (&#039;&#039;crowbar&#039;&#039;). They must &#039;&#039;&#039;NEVER&#039;&#039;&#039; go unnoticed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type B:&#039;&#039;&#039; &#039;&#039;Concerning&#039;&#039; changes are also simple thresholds, but typically have finer granularity and adjustability and can benefit from some simple logic, (e.g. &amp;quot;more than 3 flowmeters read low&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type C:&#039;&#039;&#039; &#039;&#039;Noticeable&#039;&#039; changes require some level of analysis of observables over time, and are used to trigger gentle system ramp-downs to prevent more serious damage. These are a first line of defense and thus somewhat redundant. Should one get missed, overall safety (and most importantly &#039;&#039;personnel&#039;&#039; safety) is not compromised.&lt;br /&gt;
&lt;br /&gt;
The interlock system only handles type &#039;&#039;&#039;A&#039;&#039;&#039; and &#039;&#039;&#039;B&#039;&#039;&#039; events, type &#039;&#039;&#039;C&#039;&#039;&#039; is handled in MIDAS.&lt;br /&gt;
&lt;br /&gt;
=== Sensors ===&lt;br /&gt;
&lt;br /&gt;
The main concern for hazardous events in this setup is a malfunction or inadequacy in the water cooling system, which could lead to flooding or overheating.&lt;br /&gt;
&lt;br /&gt;
The system is monitored for malfunctions or abnormalities by a variety of sensing systems targeting different observables:&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Flowmeters:&#039;&#039;&#039; these small paddle-wheel flowmeters monitor the flow in all individual cooling water branches and provide a quantitative readout to a microcontroller and from there to MIDAS (&#039;&#039;&#039;B, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Flow Switches:&#039;&#039;&#039; these bulkier flowmeters sit in main water lines and have in-built threshold detection that can directly connect to an interlock system (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermistors:&#039;&#039;&#039; small thermistors are attached in key locations of the magnets and provide a quantitative readout to a microcontroller, much like the flowmeters (&#039;&#039;&#039;B, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermal Switches:&#039;&#039;&#039; bi-metal switches that provide no quantitative information but can directly connect to an interlock system, they can be placed in strategic locations (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermal Monitor Switch:&#039;&#039;&#039; thermistor- or thermocouple-reading box that provides a quantitative readout and and internal threshold, low granularity (&#039;&#039;optional&#039;&#039;, &#039;&#039;&#039;A, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Level Switches:&#039;&#039;&#039; simple float switches that trigger if the water in the leak-catching enclosure rises too high (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Leak Sensors:&#039;&#039;&#039; resistive wetness-sensing switches that can connect directly to an interlock system and can be placed on the floor in strategic locations (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
=== Output/Switching ===&lt;br /&gt;
&lt;br /&gt;
The main two things the interlock system needs to control are the magnet power supplies and the main water supply. Most interlock conditions that do not indicate a leak will simply turn off the magnet power supplies to prevent overheating, while leak detection additionally closes the main water valve to minimize flooding, and shuts down other sensitive electronics.&lt;br /&gt;
&lt;br /&gt;
Technically this is typically achieved by opening or closing a switch connecting two control pins on the device in question.&lt;br /&gt;
&lt;br /&gt;
== User Guide ==&lt;br /&gt;
&lt;br /&gt;
=== Panel sections ===&lt;br /&gt;
&lt;br /&gt;
While the technical documentation below explains the function of the individual modules, necessary to assemble a new interlock setup, this user guide simply explains how to use the one currently in use in the HAICU area. The overview picture shows the four distinct areas of the interlock assembly:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;In0:&#039;&#039;&#039; inputs from individual sensors that, upon triggering, should shut down the entire setup, i.e. both water and magnet power (e.g. water spill sensors)&lt;br /&gt;
* &#039;&#039;&#039;In1:&#039;&#039;&#039; inputs from teensy boards and individual sensors, that, upon triggering, should shut down magnet power, but not water supply (e.g. magnet temperature sensors)&lt;br /&gt;
* &#039;&#039;&#039;Out0:&#039;&#039;&#039; outputs to devices that should &#039;&#039;only&#039;&#039; shut down when &#039;&#039;In0&#039;&#039; inputs trigger (e.g. main water valves)&lt;br /&gt;
* &#039;&#039;&#039;Out1:&#039;&#039;&#039; outputs to devices that should shut down when &#039;&#039;any&#039; inputs trigger (e.g. magnet power supplies)&lt;br /&gt;
&lt;br /&gt;
[[File:Interlock overview.svg|thumb|Sections of the currently assembled interlock: output sections are controlled by input sections above and to the left, i.e. Out0 is controlled by In0 only, Out1 is controlled by In0 and In1]]&lt;br /&gt;
&lt;br /&gt;
=== Inputs ===&lt;br /&gt;
&lt;br /&gt;
There are two different input modules, those with individual sensor connectors and those with a DSub9 connector to a teensy board, but from a user perspective they are very similar. Their elements are:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Connector:&#039;&#039;&#039; input from individual sensor/switch or teensy board&lt;br /&gt;
* &#039;&#039;&#039;Bypass switch:&#039;&#039;&#039; slider switch to bypass input (1 per channel, right for bypass)&lt;br /&gt;
* &#039;&#039;&#039;Bypass LED:&#039;&#039;&#039; lights up orange if input is bypassed&lt;br /&gt;
* &#039;&#039;&#039;Status LED:&#039;&#039;&#039; green if interlock condition satisfied, red if not &amp;lt;ref&amp;gt;note that this LED behaves differently for the two different input modules: for individual inputs, bypass turns status green, while for teensy input the LED continues to show the signal status even when bypassed.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:InputA.svg|thumb|Elements of an individual type input]]&lt;br /&gt;
&lt;br /&gt;
=== Outputs ===&lt;br /&gt;
&lt;br /&gt;
== Modular Interlock System (Technical documentation) ==&lt;br /&gt;
&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
&lt;br /&gt;
One big requirement for an interlock system like this is, that it &#039;&#039;fails safe&#039;&#039;, i.e. a loss of power in the interlock system itself, or the cutting or disconnection of a wire, leads to the safe &#039;&#039;&#039;locked&#039;&#039;&#039; condition, rather than the &#039;&#039;&#039;all clear&#039;&#039;&#039;. Additionally the core interlock system should require no programming to minimize the possibility of bugs.&lt;br /&gt;
&lt;br /&gt;
In the HAICU interlock system, the interlock logic is modeled by relays in series. In order for the &#039;&#039;&#039;all clear&#039;&#039;&#039; to be given, voltage must pass through a series of &#039;&#039;normally open&#039;&#039; relays that each actively get switched closed by one of the above sensors. Each input has a manual bypass switch do allow for the manual deactivation of individual inputs.&lt;br /&gt;
&lt;br /&gt;
Finally the interlock system &#039;&#039;&#039;must&#039;&#039;&#039; latch. This means that, once triggered, the system does not go back into the &#039;&#039;&#039;all clear&#039;&#039;&#039; condition without human intervention. This is achieved by a separate output module.&lt;br /&gt;
&lt;br /&gt;
=== Modules ===&lt;br /&gt;
&lt;br /&gt;
Since the number of inputs and outputs to the system may change, it was decided to go with a modular approach instead of a single PCB. The following sections describe the individual modules.&lt;br /&gt;
&lt;br /&gt;
Schematics and kiCad projects for these modules can be found [https://gitlab.triumf.ca/haicu/haicu_control_electronics in the gitlab repo].&lt;br /&gt;
&lt;br /&gt;
[[File:Intlk scheme.svg|thumb|Concept scheme of the modular interlock. Columns can be used in parallel (green A configuration) or in series (red B configuration). Input modules can also be put above top dist board, but this is not currently used. &#039;&#039;Bottom dist&#039;&#039; is not actually a separate board, but a feature common to both output modules]]&lt;br /&gt;
&lt;br /&gt;
==== Power ====&lt;br /&gt;
&lt;br /&gt;
The power module generates the 3.3V needed for TTL communication and 2.2V for the LEDs out of 5V supply voltage. It also supplies 5V to the signal input of the following module.&lt;br /&gt;
&lt;br /&gt;
[[File:Intlk power conn.png|thumb|alt=Top to bottom: ground, Vdd, signal, signal, Vee, Vcc|Power module pinout for the modular interlock]]&lt;br /&gt;
&lt;br /&gt;
==== Top distribution ====&lt;br /&gt;
&lt;br /&gt;
The top distribution board distributes power and signals to columns of interlock modules.&lt;br /&gt;
&lt;br /&gt;
Manual switches can configure the signal path. The signal flow schematic is printed on the board. Note the switches are on the back of the board, since they are not meant to be changed in operation.&lt;br /&gt;
* &#039;&#039;&#039;SW2&#039;&#039;&#039; decides whether input comes from &amp;quot;global interlocks&amp;quot;, which can come from input modules above or from &#039;&#039;top dist&#039;&#039; modules to the left, switchable by &#039;&#039;&#039;SW3&#039;&#039;&#039;.&lt;br /&gt;
* &#039;&#039;&#039;SW1&#039;&#039;&#039; decides whether the next &#039;&#039;top dist&#039;&#039; module to the right gets the same input as this column, or the forwarded &#039;&#039;output&#039;&#039; of this column (requires another switch in &#039;&#039;bottom dist&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
==== Switch Input ====&lt;br /&gt;
&lt;br /&gt;
The switch input module (schematic &#039;&#039;input_moduleA&#039;&#039;) provides two-pin connectors that any switch-style sensors can be connected to. The understanding is that a closed connection signifies a satisfied interlock condition. The large LED below each connector shines green if the condition is met or red if it is not. Below each connector there is a bypass switch, which allows to deactivate that input. The small yellow LED next to the switch is on for bypassed condition. Note the large LED will be green if bypassed.&lt;br /&gt;
&lt;br /&gt;
There is a ribbon connector on the back reporting the state of each channel as a TTL level to the watchdog device described below.&lt;br /&gt;
&lt;br /&gt;
[[File:Input moduleA.png|frameless|600px|Input module for individual switch-type interlock sensors]]&lt;br /&gt;
&lt;br /&gt;
==== TTL Input ====&lt;br /&gt;
&lt;br /&gt;
The TTL input module does not connect to standard switch-style sensors, but instead expects TTL 3.3V levels, which it receives from a Teensy board measuring temperatures or flow rates. It, too, has 5 red/green LEDs indicating interlock status of each channel and 5 bypass switches with yellow LEDs. In contrast to the switch input module, the red/green LED still reflects input status, even if the bypass is active.&lt;br /&gt;
&lt;br /&gt;
This module has the same watchdog connector as the other input module.&lt;br /&gt;
&lt;br /&gt;
[[File:Intput module TTL2.png|frameless|600px|Input module for TTL interlock signals from Teensy board]]&lt;br /&gt;
&lt;br /&gt;
==== Signal booster ====&lt;br /&gt;
&lt;br /&gt;
The inexpertly designed concept of this modular interlock results in a drop in signal level if too many boards are used in series. This module brings it back up to 5V. In principle it can also be used between input modules, but it&#039;s probably wise to limit a single column to no more than 6 input modules.&lt;br /&gt;
&lt;br /&gt;
==== Bottom distribution ====&lt;br /&gt;
&lt;br /&gt;
This is not actually a separate module, but a feature common to both output modules below.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SW1&#039;&#039;&#039; switches between &#039;&#039;normal mode&#039;&#039; &#039;&#039;&#039;B&#039;&#039;&#039;, where the signal from the column above gets used to switch this output module and any below it, and &#039;&#039;daisychain mode&#039;&#039; &#039;&#039;&#039;A&#039;&#039;&#039;, where the signal from the column above gets sent back to the top to serve as the input of the next column, while this output module receives its input from the output module to its right.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 1:&#039;&#039;&#039; this requires SW1 in this column&#039;s &#039;&#039;top dist&#039;&#039; board to be in the &#039;&#039;daisychain&#039;&#039; position.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 2:&#039;&#039;&#039; only the top-most output module should ever have SW1 in position &#039;&#039;&#039;A&#039;&#039;&#039;, unless you really know what you&#039;re doing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Individual Output ====&lt;br /&gt;
&lt;br /&gt;
This module provides two-pin connectors to connect to individual devices. They behave just like if a switching sensor was directly plugged into the device, with two key differences:&lt;br /&gt;
&lt;br /&gt;
# they latch, so even if the condition that triggered the interlock gets remedied, they need to be reset manually, using a push button above each connector&lt;br /&gt;
# they can be switched between &#039;&#039;normally open&#039;&#039; (&#039;&#039;&#039;NO&#039;&#039;&#039;) mode and &#039;&#039;normally closed&#039;&#039; (&#039;&#039;&#039;NC&#039;&#039;&#039;) mode. The latter is e.g. needed for the AE Techron power supply.&lt;br /&gt;
&lt;br /&gt;
All channels trigger together but need to be reset separately. The red/green LED above each connector shows the state.&lt;br /&gt;
&lt;br /&gt;
[[File:Output general.png|600px|frameless|Individual output interlock module with per-channel latch reset buttons. Not the switches to change a channel from &#039;&#039;normally open&#039;&#039; to &#039;&#039;normally closed&#039;&#039; are on the back]]&lt;br /&gt;
&lt;br /&gt;
==== DSub Output ====&lt;br /&gt;
&lt;br /&gt;
This module is specifically designed to connect to the [[Magnet Control Box]] to provide the interlock signals for the Sorensen SGX power supplies. It has a single LED and reset button for all outputs together.&lt;br /&gt;
&lt;br /&gt;
[[File:Output dsub.png|600px|frameless|DSub interlock output module to connect to Magnet Control Box]]&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
[[File:Intlk example good.jpg|thumb|Interlock in ALL CLEAR condition: 3 sensors + 1 teensy connected and happy, other inputs bypassed. Outputs clear. See blue boxes for points of interest in these examples.]]&lt;br /&gt;
[[File:Intlk example tripped.jpg|thumb|Interlock right side tripped by sensor In1-20, right side outputs tripped ]]&lt;br /&gt;
[[File:Intlk example latched.jpg|thumb|Interlock after sensor recovery, inputs are happy, but outputs remain latched. Push Reset to resume operation.]]&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=File:InputA.svg&amp;diff=110</id>
		<title>File:InputA.svg</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=File:InputA.svg&amp;diff=110"/>
		<updated>2026-07-27T23:01:22Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Input elements&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Interlock_overview.svg&amp;diff=109</id>
		<title>File:Interlock overview.svg</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Interlock_overview.svg&amp;diff=109"/>
		<updated>2026-07-27T22:47:22Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Sections of the assembled interlock&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=108</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=108"/>
		<updated>2026-07-24T17:18:05Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Water TURN ON procedure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= General =&lt;br /&gt;
HAICU (Hydrogen Antihydrogen Infrastructure at Canadian Universities) is an experimental facility designed for research and development of techniques relating to the trapping of atomic Hydrogen and Antihydrogen. This wiki is the definitive repository of documentation regarding this setup.&lt;br /&gt;
&lt;br /&gt;
[[File:HAICU vector.svg|300x300px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Experimental Setup =&lt;br /&gt;
&lt;br /&gt;
* [[Hydrogen Source]]&lt;br /&gt;
* [[Magnetic Decelerator]]&lt;br /&gt;
* [[Halbach Bender]]&lt;br /&gt;
* [[Electromagnetic Bender]]&lt;br /&gt;
* [[Lasers]]&lt;br /&gt;
* [[Magnetic Trap]]&lt;br /&gt;
* [[Detectors]]&lt;br /&gt;
* [[Interlock System]]&lt;br /&gt;
&lt;br /&gt;
= Software =&lt;br /&gt;
== Git Repositories ==&lt;br /&gt;
(Most of) the various software packages used for the control and monitoring of the HAICU setup are kept in the TRIUMF gitlab at https://gitlab.triumf.ca/groups/haicu/. In general, each repository should have a README file as well as Doxygen documentation accessible from the &amp;quot;Gitlab Pages&amp;quot; link or from a link at the start of the README. Specifically the software packages are:&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/magnet_control magnet_control], which contains the drivers, test code, and frontends for Raspberry Pi box controlling the magnet power supplies&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_client PPG Client], which contains the code to load and run sequences on the Programmable Pulse Generator (or sequencer)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_cb_firmware PPG Firmware], which contains the Quartus project of the PPG-Chronobox FPGA code&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/vacuum-control-software Vacuum Control Software], which contains frontends for the Agilent gauges and turbopumps&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/teensy_software Teensy Software], which contains both firmware and Midas frontends for the flow and temperature monitoring Teensy boards&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/caen-dt5533en-hvps HV supply], which controls the CAEN DT5533 high voltage supply&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/lolxboardctrl SiPM bias], which controls the SiPM bias distribution and amplification box (LolX-box)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/intlck-watchdog Interlock Watchdog Firmware], which contains the firmware for the Arduino Due &amp;quot;Watchdog&amp;quot;&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/watchdog-frontend Interlock Watchdog Frontend], which contains the MIDAS frontend to interact with the watchdog&lt;br /&gt;
&lt;br /&gt;
= Procedures =&lt;br /&gt;
== Cooling Water Valves ==&lt;br /&gt;
As of now, this procedure applies to the quadrupole test stand in the HAICU area, it will likely be amended for the final setup. Plumbing schematics should also be added.&lt;br /&gt;
&lt;br /&gt;
=== Water TURN ON procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Ensure the interlock input labelled &amp;quot;Flow&amp;quot; is bypassed (yellow LED on)&lt;br /&gt;
# Check function of &#039;&#039;&#039;both&#039;&#039;&#039; solenoid valves connecting the manifold in the magnet testing area to the cooling lines via the interlock:&lt;br /&gt;
#* If open (yellow arrows point along flow direction), manually lift float switch in overflow bucket to trip interlock, observe valves closing, then reset &amp;quot;water mains&amp;quot; interlock output, observe them opening&lt;br /&gt;
#* If closed, reset &amp;quot;water mains&amp;quot; interlock output, then follow above procedure&lt;br /&gt;
# walk up to or call main control room (7333) and let them know you&#039;ll turn on HAICU cooling water and they might see a pressure drop&lt;br /&gt;
# &#039;&#039;&#039;Ensure&#039;&#039;&#039; the pressure release valve on the red line near the AE Techron and the coil test stand is &#039;&#039;&#039;closed&#039;&#039;&#039;&lt;br /&gt;
# Open manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole is starting to leak water (this is very subtle now and not vital)&lt;br /&gt;
# Reset water return pump interlock&lt;br /&gt;
# Open manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
# Confirm LEDs on both flow switches on the manifold turn green&lt;br /&gt;
#* If they do not, manual valves on the individual branches may not be fully open, check&lt;br /&gt;
# Arm flow switch interlock by turning off bypass on &amp;quot;Flow&amp;quot; input&lt;br /&gt;
# Confirm water return pump turns on and off regularly&lt;br /&gt;
&lt;br /&gt;
=== Water TURN OFF procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Close manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
#* This should trip the interlock, with a hiss right next to your head&lt;br /&gt;
# Close manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole stops leaking water&lt;br /&gt;
&lt;br /&gt;
= Resources and Manuals =&lt;br /&gt;
&lt;br /&gt;
* [[Equipment Manuals]]&lt;br /&gt;
* [[Miscellaneous Resources]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
= MediaWiki default blurb =&lt;br /&gt;
&amp;lt;strong&amp;gt;MediaWiki has been installed.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User&#039;s Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=107</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=107"/>
		<updated>2026-07-17T00:19:30Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Water TURN ON procedure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= General =&lt;br /&gt;
HAICU (Hydrogen Antihydrogen Infrastructure at Canadian Universities) is an experimental facility designed for research and development of techniques relating to the trapping of atomic Hydrogen and Antihydrogen. This wiki is the definitive repository of documentation regarding this setup.&lt;br /&gt;
&lt;br /&gt;
[[File:HAICU vector.svg|300x300px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Experimental Setup =&lt;br /&gt;
&lt;br /&gt;
* [[Hydrogen Source]]&lt;br /&gt;
* [[Magnetic Decelerator]]&lt;br /&gt;
* [[Halbach Bender]]&lt;br /&gt;
* [[Electromagnetic Bender]]&lt;br /&gt;
* [[Lasers]]&lt;br /&gt;
* [[Magnetic Trap]]&lt;br /&gt;
* [[Detectors]]&lt;br /&gt;
* [[Interlock System]]&lt;br /&gt;
&lt;br /&gt;
= Software =&lt;br /&gt;
== Git Repositories ==&lt;br /&gt;
(Most of) the various software packages used for the control and monitoring of the HAICU setup are kept in the TRIUMF gitlab at https://gitlab.triumf.ca/groups/haicu/. In general, each repository should have a README file as well as Doxygen documentation accessible from the &amp;quot;Gitlab Pages&amp;quot; link or from a link at the start of the README. Specifically the software packages are:&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/magnet_control magnet_control], which contains the drivers, test code, and frontends for Raspberry Pi box controlling the magnet power supplies&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_client PPG Client], which contains the code to load and run sequences on the Programmable Pulse Generator (or sequencer)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_cb_firmware PPG Firmware], which contains the Quartus project of the PPG-Chronobox FPGA code&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/vacuum-control-software Vacuum Control Software], which contains frontends for the Agilent gauges and turbopumps&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/teensy_software Teensy Software], which contains both firmware and Midas frontends for the flow and temperature monitoring Teensy boards&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/caen-dt5533en-hvps HV supply], which controls the CAEN DT5533 high voltage supply&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/lolxboardctrl SiPM bias], which controls the SiPM bias distribution and amplification box (LolX-box)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/intlck-watchdog Interlock Watchdog Firmware], which contains the firmware for the Arduino Due &amp;quot;Watchdog&amp;quot;&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/watchdog-frontend Interlock Watchdog Frontend], which contains the MIDAS frontend to interact with the watchdog&lt;br /&gt;
&lt;br /&gt;
= Procedures =&lt;br /&gt;
== Cooling Water Valves ==&lt;br /&gt;
As of now, this procedure applies to the quadrupole test stand in the HAICU area, it will likely be amended for the final setup. Plumbing schematics should also be added.&lt;br /&gt;
&lt;br /&gt;
=== Water TURN ON procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Ensure the interlock input labelled &amp;quot;Flow&amp;quot; is bypassed (yellow LED on)&lt;br /&gt;
# Check function of &#039;&#039;&#039;both&#039;&#039;&#039; solenoid valves connecting the manifold in the magnet testing area to the cooling lines via the interlock:&lt;br /&gt;
#* If open (yellow arrows point along flow direction), manually lift float switch in overflow bucket to trip interlock, observe valves closing, then reset &amp;quot;water mains&amp;quot; interlock output, observe them opening&lt;br /&gt;
#* If closed, reset &amp;quot;water mains&amp;quot; interlock output, then follow above procedure&lt;br /&gt;
# walk up to or call main control room (7333) and let them know you&#039;ll turn on HAICU cooling water and they might see a pressure drop&lt;br /&gt;
# Open manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole is starting to leak water (this is very subtle now and not vital)&lt;br /&gt;
# Reset water return pump interlock&lt;br /&gt;
# Open manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
# Confirm LEDs on both flow switches on the manifold turn green&lt;br /&gt;
#* If they do not, manual valves on the individual branches may not be fully open, check&lt;br /&gt;
# Arm flow switch interlock by turning off bypass on &amp;quot;Flow&amp;quot; input&lt;br /&gt;
# Confirm water return pump turns on and off regularly&lt;br /&gt;
&lt;br /&gt;
=== Water TURN OFF procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Close manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
#* This should trip the interlock, with a hiss right next to your head&lt;br /&gt;
# Close manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole stops leaking water&lt;br /&gt;
&lt;br /&gt;
= Resources and Manuals =&lt;br /&gt;
&lt;br /&gt;
* [[Equipment Manuals]]&lt;br /&gt;
* [[Miscellaneous Resources]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
= MediaWiki default blurb =&lt;br /&gt;
&amp;lt;strong&amp;gt;MediaWiki has been installed.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User&#039;s Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=106</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=106"/>
		<updated>2026-07-17T00:09:59Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Cooling Water Valves */ return pump interlocked&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= General =&lt;br /&gt;
HAICU (Hydrogen Antihydrogen Infrastructure at Canadian Universities) is an experimental facility designed for research and development of techniques relating to the trapping of atomic Hydrogen and Antihydrogen. This wiki is the definitive repository of documentation regarding this setup.&lt;br /&gt;
&lt;br /&gt;
[[File:HAICU vector.svg|300x300px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Experimental Setup =&lt;br /&gt;
&lt;br /&gt;
* [[Hydrogen Source]]&lt;br /&gt;
* [[Magnetic Decelerator]]&lt;br /&gt;
* [[Halbach Bender]]&lt;br /&gt;
* [[Electromagnetic Bender]]&lt;br /&gt;
* [[Lasers]]&lt;br /&gt;
* [[Magnetic Trap]]&lt;br /&gt;
* [[Detectors]]&lt;br /&gt;
* [[Interlock System]]&lt;br /&gt;
&lt;br /&gt;
= Software =&lt;br /&gt;
== Git Repositories ==&lt;br /&gt;
(Most of) the various software packages used for the control and monitoring of the HAICU setup are kept in the TRIUMF gitlab at https://gitlab.triumf.ca/groups/haicu/. In general, each repository should have a README file as well as Doxygen documentation accessible from the &amp;quot;Gitlab Pages&amp;quot; link or from a link at the start of the README. Specifically the software packages are:&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/magnet_control magnet_control], which contains the drivers, test code, and frontends for Raspberry Pi box controlling the magnet power supplies&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_client PPG Client], which contains the code to load and run sequences on the Programmable Pulse Generator (or sequencer)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_cb_firmware PPG Firmware], which contains the Quartus project of the PPG-Chronobox FPGA code&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/vacuum-control-software Vacuum Control Software], which contains frontends for the Agilent gauges and turbopumps&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/teensy_software Teensy Software], which contains both firmware and Midas frontends for the flow and temperature monitoring Teensy boards&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/caen-dt5533en-hvps HV supply], which controls the CAEN DT5533 high voltage supply&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/lolxboardctrl SiPM bias], which controls the SiPM bias distribution and amplification box (LolX-box)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/intlck-watchdog Interlock Watchdog Firmware], which contains the firmware for the Arduino Due &amp;quot;Watchdog&amp;quot;&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/watchdog-frontend Interlock Watchdog Frontend], which contains the MIDAS frontend to interact with the watchdog&lt;br /&gt;
&lt;br /&gt;
= Procedures =&lt;br /&gt;
== Cooling Water Valves ==&lt;br /&gt;
As of now, this procedure applies to the quadrupole test stand in the HAICU area, it will likely be amended for the final setup. Plumbing schematics should also be added.&lt;br /&gt;
&lt;br /&gt;
=== Water TURN ON procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Ensure the interlock input labelled &amp;quot;Flow&amp;quot; is bypassed (yellow LED on)&lt;br /&gt;
# Check function of &#039;&#039;&#039;both&#039;&#039;&#039; solenoid valves connecting the manifold in the magnet testing area to the cooling lines via the interlock:&lt;br /&gt;
#* If open (yellow arrows point along flow direction), manually lift float switch in overflow bucket to trip interlock, observe valves closing, then reset &amp;quot;water mains&amp;quot; interlock output, observe them opening&lt;br /&gt;
#* If closed, reset &amp;quot;water mains&amp;quot; interlock output, then follow above procedure&lt;br /&gt;
# walk up to or call main control room (7333) and let them know you&#039;ll turn on HAICU cooling water and they might see a pressure drop&lt;br /&gt;
# Open manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole is starting to leak water (this is very subtle now and not vital)&lt;br /&gt;
# Reset water return pump interlock&lt;br /&gt;
# Open manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
# Confirm LEDs on the flow switches on the manifold turn green&lt;br /&gt;
# Arm flow switch interlock by turning off bypass on &amp;quot;Flow&amp;quot; input&lt;br /&gt;
# Confirm water return pump turns on and off regularly&lt;br /&gt;
&lt;br /&gt;
=== Water TURN OFF procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Close manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
#* This should trip the interlock, with a hiss right next to your head&lt;br /&gt;
# Close manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole stops leaking water&lt;br /&gt;
&lt;br /&gt;
= Resources and Manuals =&lt;br /&gt;
&lt;br /&gt;
* [[Equipment Manuals]]&lt;br /&gt;
* [[Miscellaneous Resources]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
= MediaWiki default blurb =&lt;br /&gt;
&amp;lt;strong&amp;gt;MediaWiki has been installed.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User&#039;s Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=105</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=105"/>
		<updated>2026-07-09T04:15:13Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Water TURN OFF procedure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= General =&lt;br /&gt;
HAICU (Hydrogen Antihydrogen Infrastructure at Canadian Universities) is an experimental facility designed for research and development of techniques relating to the trapping of atomic Hydrogen and Antihydrogen. This wiki is the definitive repository of documentation regarding this setup.&lt;br /&gt;
&lt;br /&gt;
[[File:HAICU vector.svg|300x300px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Experimental Setup =&lt;br /&gt;
&lt;br /&gt;
* [[Hydrogen Source]]&lt;br /&gt;
* [[Magnetic Decelerator]]&lt;br /&gt;
* [[Halbach Bender]]&lt;br /&gt;
* [[Electromagnetic Bender]]&lt;br /&gt;
* [[Lasers]]&lt;br /&gt;
* [[Magnetic Trap]]&lt;br /&gt;
* [[Detectors]]&lt;br /&gt;
* [[Interlock System]]&lt;br /&gt;
&lt;br /&gt;
= Software =&lt;br /&gt;
== Git Repositories ==&lt;br /&gt;
(Most of) the various software packages used for the control and monitoring of the HAICU setup are kept in the TRIUMF gitlab at https://gitlab.triumf.ca/groups/haicu/. In general, each repository should have a README file as well as Doxygen documentation accessible from the &amp;quot;Gitlab Pages&amp;quot; link or from a link at the start of the README. Specifically the software packages are:&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/magnet_control magnet_control], which contains the drivers, test code, and frontends for Raspberry Pi box controlling the magnet power supplies&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_client PPG Client], which contains the code to load and run sequences on the Programmable Pulse Generator (or sequencer)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_cb_firmware PPG Firmware], which contains the Quartus project of the PPG-Chronobox FPGA code&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/vacuum-control-software Vacuum Control Software], which contains frontends for the Agilent gauges and turbopumps&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/teensy_software Teensy Software], which contains both firmware and Midas frontends for the flow and temperature monitoring Teensy boards&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/caen-dt5533en-hvps HV supply], which controls the CAEN DT5533 high voltage supply&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/lolxboardctrl SiPM bias], which controls the SiPM bias distribution and amplification box (LolX-box)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/intlck-watchdog Interlock Watchdog Firmware], which contains the firmware for the Arduino Due &amp;quot;Watchdog&amp;quot;&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/watchdog-frontend Interlock Watchdog Frontend], which contains the MIDAS frontend to interact with the watchdog&lt;br /&gt;
&lt;br /&gt;
= Procedures =&lt;br /&gt;
== Cooling Water Valves ==&lt;br /&gt;
As of now, this procedure applies to the quadrupole test stand in the HAICU area, it will likely be amended for the final setup. Plumbing schematics should also be added.&lt;br /&gt;
&lt;br /&gt;
=== Water TURN ON procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Ensure the interlock input labelled &amp;quot;Flow&amp;quot; is bypassed (yellow LED on)&lt;br /&gt;
# Check function of &#039;&#039;&#039;both&#039;&#039;&#039; solenoid valves connecting the manifold in the magnet testing area to the cooling lines via the interlock:&lt;br /&gt;
#* If open (yellow arrows point along flow direction), manually lift float switch in overflow bucket to trip interlock, observe valves closing, then reset &amp;quot;water mains&amp;quot; interlock output, observe them opening&lt;br /&gt;
#* If closed, reset &amp;quot;water mains&amp;quot; interlock output, then follow above procedure&lt;br /&gt;
# walk up to or call main control room (7333) and let them know you&#039;ll turn on HAICU cooling water and they might see a pressure drop&lt;br /&gt;
# Open manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole is starting to leak water (this is very subtle now and not vital)&lt;br /&gt;
# Plug in water return pump&lt;br /&gt;
# Open manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
# Confirm LEDs on the flow switches on the manifold turn green&lt;br /&gt;
# Arm flow switch interlock by turning off bypass on &amp;quot;Flow&amp;quot; input&lt;br /&gt;
# Confirm water return pump turns on and off regularly&lt;br /&gt;
&lt;br /&gt;
=== Water TURN OFF procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Unplug water return pump&lt;br /&gt;
# Close manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
#* This should trip the interlock, with a loud hiss right next to your head&lt;br /&gt;
# Close manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole stops leaking water&lt;br /&gt;
&lt;br /&gt;
= Resources and Manuals =&lt;br /&gt;
&lt;br /&gt;
* [[Equipment Manuals]]&lt;br /&gt;
* [[Miscellaneous Resources]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
= MediaWiki default blurb =&lt;br /&gt;
&amp;lt;strong&amp;gt;MediaWiki has been installed.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User&#039;s Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=104</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=104"/>
		<updated>2026-07-09T04:11:45Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Water TURN ON procedure */ Added flow switch instructions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= General =&lt;br /&gt;
HAICU (Hydrogen Antihydrogen Infrastructure at Canadian Universities) is an experimental facility designed for research and development of techniques relating to the trapping of atomic Hydrogen and Antihydrogen. This wiki is the definitive repository of documentation regarding this setup.&lt;br /&gt;
&lt;br /&gt;
[[File:HAICU vector.svg|300x300px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Experimental Setup =&lt;br /&gt;
&lt;br /&gt;
* [[Hydrogen Source]]&lt;br /&gt;
* [[Magnetic Decelerator]]&lt;br /&gt;
* [[Halbach Bender]]&lt;br /&gt;
* [[Electromagnetic Bender]]&lt;br /&gt;
* [[Lasers]]&lt;br /&gt;
* [[Magnetic Trap]]&lt;br /&gt;
* [[Detectors]]&lt;br /&gt;
* [[Interlock System]]&lt;br /&gt;
&lt;br /&gt;
= Software =&lt;br /&gt;
== Git Repositories ==&lt;br /&gt;
(Most of) the various software packages used for the control and monitoring of the HAICU setup are kept in the TRIUMF gitlab at https://gitlab.triumf.ca/groups/haicu/. In general, each repository should have a README file as well as Doxygen documentation accessible from the &amp;quot;Gitlab Pages&amp;quot; link or from a link at the start of the README. Specifically the software packages are:&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/magnet_control magnet_control], which contains the drivers, test code, and frontends for Raspberry Pi box controlling the magnet power supplies&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_client PPG Client], which contains the code to load and run sequences on the Programmable Pulse Generator (or sequencer)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_cb_firmware PPG Firmware], which contains the Quartus project of the PPG-Chronobox FPGA code&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/vacuum-control-software Vacuum Control Software], which contains frontends for the Agilent gauges and turbopumps&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/teensy_software Teensy Software], which contains both firmware and Midas frontends for the flow and temperature monitoring Teensy boards&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/caen-dt5533en-hvps HV supply], which controls the CAEN DT5533 high voltage supply&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/lolxboardctrl SiPM bias], which controls the SiPM bias distribution and amplification box (LolX-box)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/intlck-watchdog Interlock Watchdog Firmware], which contains the firmware for the Arduino Due &amp;quot;Watchdog&amp;quot;&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/watchdog-frontend Interlock Watchdog Frontend], which contains the MIDAS frontend to interact with the watchdog&lt;br /&gt;
&lt;br /&gt;
= Procedures =&lt;br /&gt;
== Cooling Water Valves ==&lt;br /&gt;
As of now, this procedure applies to the quadrupole test stand in the HAICU area, it will likely be amended for the final setup. Plumbing schematics should also be added.&lt;br /&gt;
&lt;br /&gt;
=== Water TURN ON procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Ensure the interlock input labelled &amp;quot;Flow&amp;quot; is bypassed (yellow LED on)&lt;br /&gt;
# Check function of &#039;&#039;&#039;both&#039;&#039;&#039; solenoid valves connecting the manifold in the magnet testing area to the cooling lines via the interlock:&lt;br /&gt;
#* If open (yellow arrows point along flow direction), manually lift float switch in overflow bucket to trip interlock, observe valves closing, then reset &amp;quot;water mains&amp;quot; interlock output, observe them opening&lt;br /&gt;
#* If closed, reset &amp;quot;water mains&amp;quot; interlock output, then follow above procedure&lt;br /&gt;
# walk up to or call main control room (7333) and let them know you&#039;ll turn on HAICU cooling water and they might see a pressure drop&lt;br /&gt;
# Open manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole is starting to leak water (this is very subtle now and not vital)&lt;br /&gt;
# Plug in water return pump&lt;br /&gt;
# Open manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
# Confirm LEDs on the flow switches on the manifold turn green&lt;br /&gt;
# Arm flow switch interlock by turning off bypass on &amp;quot;Flow&amp;quot; input&lt;br /&gt;
# Confirm water return pump turns on and off regularly&lt;br /&gt;
&lt;br /&gt;
=== Water TURN OFF procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Close manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
# Unplug water return pump&lt;br /&gt;
# Close manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole stops leaking water&lt;br /&gt;
# Manually lift float switch in overflow bucket to trip interlock&lt;br /&gt;
&lt;br /&gt;
= Resources and Manuals =&lt;br /&gt;
&lt;br /&gt;
* [[Equipment Manuals]]&lt;br /&gt;
* [[Miscellaneous Resources]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
= MediaWiki default blurb =&lt;br /&gt;
&amp;lt;strong&amp;gt;MediaWiki has been installed.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User&#039;s Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Equipment_Manuals&amp;diff=103</id>
		<title>Equipment Manuals</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Equipment_Manuals&amp;diff=103"/>
		<updated>2026-06-29T22:20:10Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Miscellaneous */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Control Electronics = &lt;br /&gt;
== CONTEC CPI-AO-1602LC ==&lt;br /&gt;
&lt;br /&gt;
This product is an expansion card (&amp;quot;hat&amp;quot;) that adds an analog output interface to the Raspberry Pi. It gets used in the Raspberry Pi magnet control box.&lt;br /&gt;
&lt;br /&gt;
Datasheet: [[File:Cpiao1602lc en.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:Cpiao1602lc reference manual.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
== Waveshare AD/DA hat ==&lt;br /&gt;
&lt;br /&gt;
This product is an expansion card (&amp;quot;hat&amp;quot;) that adds analog input and output interfaces to the Raspberry Pi. The analog input gets used in the Raspberry Pi magnet control box.&lt;br /&gt;
&lt;br /&gt;
Schematic: [[File:High-Precision-AD-DA-board.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
Manual:  [[File:High-Precision-AD-DA-User-Manual.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
== DE10-Nano ==&lt;br /&gt;
&lt;br /&gt;
Cyclone 5 FPGA evaluation board, used as platform for chronobox and PPG.&lt;br /&gt;
&lt;br /&gt;
Manual: [[DE10-Nano_User_manual_a_b.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
= Power Supplies =&lt;br /&gt;
&lt;br /&gt;
== Sorensen SGX10X1200 ==&lt;br /&gt;
&lt;br /&gt;
10V 1200A Magnet power supply used for &amp;quot;slow&amp;quot; trap magnets, i.e. quad, top gate, booster.&lt;br /&gt;
&lt;br /&gt;
Datasheet: [[File:Sorensen_sgx_datasheet-3u-6u_rev2b.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:Sgx-operation-manual-m551600-01-rev-e.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
Programming Manual: [[File:Programming-manual-sgx_m551601-01.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
== AE Techron 8500 ==&lt;br /&gt;
&lt;br /&gt;
High-power amplifier used as fast power supply for bottom gate magnet.&lt;br /&gt;
&lt;br /&gt;
System Manual: [[File:8500manual.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
Module Manual: [[File:8504-OpManual.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
Compensation Network Tuning Guide: [[File:AET8500_Controlled_Current_Mode_-_Compensation_Network_Tuning_Guide.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
== R&amp;amp;S HMC8043 LVPS ==&lt;br /&gt;
&lt;br /&gt;
Low voltage power supply, used in HAICU for SiPM bias.&lt;br /&gt;
&lt;br /&gt;
Datasheet: [[File:HMC804x dat de en 3607-0169-3x v0200.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:HMC804x_UserManual_de_en_05.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
Programming Manual: [[File:HMC804x_SCPI_ProgrammersManual_en_02.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
== CAEN DT5533EN HVPS ==&lt;br /&gt;
&lt;br /&gt;
High voltage power supply, used in HAICU for MCP bias.&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:WEB DT55xxE r14.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
= DAQ =&lt;br /&gt;
&lt;br /&gt;
== CAEN DT5730S Digitizer ==&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:WEB UMDT5730-DT5725 rev8.pdf|thumb|Manual]]&lt;br /&gt;
&lt;br /&gt;
= Vacuum =&lt;br /&gt;
&lt;br /&gt;
== Agilent TwisTorr 74FS ==&lt;br /&gt;
&lt;br /&gt;
Small turbo pump and controller.&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:TwisTorr_74_FS_AG_Rack_Controller.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
== Agilent XGS-600 Gauge Controller ==&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:XGS-600_Gauge_Controller.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
== Agilent TV551 Navigator ==&lt;br /&gt;
&lt;br /&gt;
Large (DN160CF) turbo pump.&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:TV551-701_NAVIGATOR.PDF|thumb]]&lt;br /&gt;
&lt;br /&gt;
= Miscellaneous =&lt;br /&gt;
&lt;br /&gt;
== R&amp;amp;S RTM3004 Oscilloscope ==&lt;br /&gt;
&lt;br /&gt;
Datasheet: [[File:RTM3000_specs_en_5214-9144-22_v1300.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:R%26S_RTM3000_User_Manual.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
== AFG1022 function generator ==&lt;br /&gt;
&lt;br /&gt;
Signal generator / pulser.&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:AFG1022-Quick-Start-User-Manual-EN.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
== Agilent 34410a desktop multimeter ==&lt;br /&gt;
&lt;br /&gt;
Programmers Reference: [[File:Agilent_34410a_Programmers_Reference.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== INSTEC LN2 Valve Box ==&lt;br /&gt;
&lt;br /&gt;
This is used for the SiPM cooling system instead of the pump.&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:Quick_Start_Guide_LN2_VC2L_V12.04.00.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
== INSTEC MK2000 Temperature Controller ==&lt;br /&gt;
&lt;br /&gt;
Manual: [[File:mK2000B_Temperature_Controller_User&#039;s_Manual-V3.10.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
Software Development Resources: [[File:MK2000B_software_development_resources.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
Pin out diagram: [[File:DB15_Connector_Pinout_Diagram.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
SCPI reference: [[File:MK2000B_SCPI_cmd_v3.16.pdf|thumb]]&lt;br /&gt;
&lt;br /&gt;
== Allegro ACS70310LKATN-001B5-C Hall Probe ==&lt;br /&gt;
&lt;br /&gt;
Giulia&#039;s probe we use for magnetometry&lt;br /&gt;
&lt;br /&gt;
Datasheet: [[File:ACS70310-11-Datasheet.pdf|thumb]]&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=File:ACS70310-11-Datasheet.pdf&amp;diff=102</id>
		<title>File:ACS70310-11-Datasheet.pdf</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=File:ACS70310-11-Datasheet.pdf&amp;diff=102"/>
		<updated>2026-06-29T22:19:32Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=101</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=101"/>
		<updated>2026-06-29T21:00:47Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Water TURN ON procedure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= General =&lt;br /&gt;
HAICU (Hydrogen Antihydrogen Infrastructure at Canadian Universities) is an experimental facility designed for research and development of techniques relating to the trapping of atomic Hydrogen and Antihydrogen. This wiki is the definitive repository of documentation regarding this setup.&lt;br /&gt;
&lt;br /&gt;
[[File:HAICU vector.svg|300x300px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Experimental Setup =&lt;br /&gt;
&lt;br /&gt;
* [[Hydrogen Source]]&lt;br /&gt;
* [[Magnetic Decelerator]]&lt;br /&gt;
* [[Halbach Bender]]&lt;br /&gt;
* [[Electromagnetic Bender]]&lt;br /&gt;
* [[Lasers]]&lt;br /&gt;
* [[Magnetic Trap]]&lt;br /&gt;
* [[Detectors]]&lt;br /&gt;
* [[Interlock System]]&lt;br /&gt;
&lt;br /&gt;
= Software =&lt;br /&gt;
== Git Repositories ==&lt;br /&gt;
(Most of) the various software packages used for the control and monitoring of the HAICU setup are kept in the TRIUMF gitlab at https://gitlab.triumf.ca/groups/haicu/. In general, each repository should have a README file as well as Doxygen documentation accessible from the &amp;quot;Gitlab Pages&amp;quot; link or from a link at the start of the README. Specifically the software packages are:&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/magnet_control magnet_control], which contains the drivers, test code, and frontends for Raspberry Pi box controlling the magnet power supplies&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_client PPG Client], which contains the code to load and run sequences on the Programmable Pulse Generator (or sequencer)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_cb_firmware PPG Firmware], which contains the Quartus project of the PPG-Chronobox FPGA code&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/vacuum-control-software Vacuum Control Software], which contains frontends for the Agilent gauges and turbopumps&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/teensy_software Teensy Software], which contains both firmware and Midas frontends for the flow and temperature monitoring Teensy boards&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/caen-dt5533en-hvps HV supply], which controls the CAEN DT5533 high voltage supply&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/lolxboardctrl SiPM bias], which controls the SiPM bias distribution and amplification box (LolX-box)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/intlck-watchdog Interlock Watchdog Firmware], which contains the firmware for the Arduino Due &amp;quot;Watchdog&amp;quot;&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/watchdog-frontend Interlock Watchdog Frontend], which contains the MIDAS frontend to interact with the watchdog&lt;br /&gt;
&lt;br /&gt;
= Procedures =&lt;br /&gt;
== Cooling Water Valves ==&lt;br /&gt;
As of now, this procedure applies to the quadrupole test stand in the HAICU area, it will likely be amended for the final setup. Plumbing schematics should also be added.&lt;br /&gt;
&lt;br /&gt;
=== Water TURN ON procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Check function of &#039;&#039;&#039;both&#039;&#039;&#039; solenoid valves connecting the manifold in the magnet testing area to the cooling lines via the interlock:&lt;br /&gt;
#* If open (yellow arrows point along flow direction), manually lift float switch in overflow bucket to trip interlock, observe valves closing, then reset &amp;quot;water mains&amp;quot; interlock output, observe them opening&lt;br /&gt;
#* If closed, reset &amp;quot;water mains&amp;quot; interlock output, then follow above procedure&lt;br /&gt;
# walk up to or call main control room (7333) and let them know you&#039;ll turn on HAICU cooling water and they might see a pressure drop&lt;br /&gt;
# Open manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole is starting to leak water (this might change if a one-way valve is installed at some point)&lt;br /&gt;
# Plug in water return pump&lt;br /&gt;
# Open manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
# Confirm water return pump turns on and off regularly&lt;br /&gt;
&lt;br /&gt;
=== Water TURN OFF procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Close manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
# Unplug water return pump&lt;br /&gt;
# Close manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole stops leaking water&lt;br /&gt;
# Manually lift float switch in overflow bucket to trip interlock&lt;br /&gt;
&lt;br /&gt;
= Resources and Manuals =&lt;br /&gt;
&lt;br /&gt;
* [[Equipment Manuals]]&lt;br /&gt;
* [[Miscellaneous Resources]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
= MediaWiki default blurb =&lt;br /&gt;
&amp;lt;strong&amp;gt;MediaWiki has been installed.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User&#039;s Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=100</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=100"/>
		<updated>2026-06-29T21:00:27Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Water TURN ON procedure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= General =&lt;br /&gt;
HAICU (Hydrogen Antihydrogen Infrastructure at Canadian Universities) is an experimental facility designed for research and development of techniques relating to the trapping of atomic Hydrogen and Antihydrogen. This wiki is the definitive repository of documentation regarding this setup.&lt;br /&gt;
&lt;br /&gt;
[[File:HAICU vector.svg|300x300px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Experimental Setup =&lt;br /&gt;
&lt;br /&gt;
* [[Hydrogen Source]]&lt;br /&gt;
* [[Magnetic Decelerator]]&lt;br /&gt;
* [[Halbach Bender]]&lt;br /&gt;
* [[Electromagnetic Bender]]&lt;br /&gt;
* [[Lasers]]&lt;br /&gt;
* [[Magnetic Trap]]&lt;br /&gt;
* [[Detectors]]&lt;br /&gt;
* [[Interlock System]]&lt;br /&gt;
&lt;br /&gt;
= Software =&lt;br /&gt;
== Git Repositories ==&lt;br /&gt;
(Most of) the various software packages used for the control and monitoring of the HAICU setup are kept in the TRIUMF gitlab at https://gitlab.triumf.ca/groups/haicu/. In general, each repository should have a README file as well as Doxygen documentation accessible from the &amp;quot;Gitlab Pages&amp;quot; link or from a link at the start of the README. Specifically the software packages are:&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/magnet_control magnet_control], which contains the drivers, test code, and frontends for Raspberry Pi box controlling the magnet power supplies&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_client PPG Client], which contains the code to load and run sequences on the Programmable Pulse Generator (or sequencer)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_cb_firmware PPG Firmware], which contains the Quartus project of the PPG-Chronobox FPGA code&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/vacuum-control-software Vacuum Control Software], which contains frontends for the Agilent gauges and turbopumps&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/teensy_software Teensy Software], which contains both firmware and Midas frontends for the flow and temperature monitoring Teensy boards&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/caen-dt5533en-hvps HV supply], which controls the CAEN DT5533 high voltage supply&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/lolxboardctrl SiPM bias], which controls the SiPM bias distribution and amplification box (LolX-box)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/intlck-watchdog Interlock Watchdog Firmware], which contains the firmware for the Arduino Due &amp;quot;Watchdog&amp;quot;&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/watchdog-frontend Interlock Watchdog Frontend], which contains the MIDAS frontend to interact with the watchdog&lt;br /&gt;
&lt;br /&gt;
= Procedures =&lt;br /&gt;
== Cooling Water Valves ==&lt;br /&gt;
As of now, this procedure applies to the quadrupole test stand in the HAICU area, it will likely be amended for the final setup. Plumbing schematics should also be added.&lt;br /&gt;
&lt;br /&gt;
=== Water TURN ON procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Check function of &#039;&#039;&#039;both&#039;&#039;&#039; solenoid valves connecting the manifold in the magnet testing area to the cooling lines via the interlock:&lt;br /&gt;
#* If open (yellow arrows point along flow direction), manually lift float switch in overflow bucket to trip interlock, observe valves closing, then reset &amp;quot;water mains&amp;quot; interlock output, observe them opening&lt;br /&gt;
#* If closed, reset &amp;quot;water mains&amp;quot; interlock output, then follow above procedure&lt;br /&gt;
# walk up to or call main control room and let them know you&#039;ll turn on HAICU cooling water and they might see a pressure drop&lt;br /&gt;
# Open manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole is starting to leak water (this might change if a one-way valve is installed at some point)&lt;br /&gt;
# Plug in water return pump&lt;br /&gt;
# Open manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
# Confirm water return pump turns on and off regularly&lt;br /&gt;
&lt;br /&gt;
=== Water TURN OFF procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Close manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
# Unplug water return pump&lt;br /&gt;
# Close manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole stops leaking water&lt;br /&gt;
# Manually lift float switch in overflow bucket to trip interlock&lt;br /&gt;
&lt;br /&gt;
= Resources and Manuals =&lt;br /&gt;
&lt;br /&gt;
* [[Equipment Manuals]]&lt;br /&gt;
* [[Miscellaneous Resources]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
= MediaWiki default blurb =&lt;br /&gt;
&amp;lt;strong&amp;gt;MediaWiki has been installed.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User&#039;s Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Interlock_System&amp;diff=99</id>
		<title>Interlock System</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Interlock_System&amp;diff=99"/>
		<updated>2026-06-26T18:46:31Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Hazards and degrees of malfunction ==&lt;br /&gt;
&lt;br /&gt;
The HAICU trap contains several hazards to personnel and equipment safety. The main hazards to personnel are posed by the high power magnet power supplies, while the main hazards to equipment also include leaks/faults in the water cooling system leading to magnet overheating and local flooding.&lt;br /&gt;
&lt;br /&gt;
For mitigation purposes it is useful to separate three different degrees of malfunction: noticeable, concerning, and catastrophic. While this latter term is a little dramatic, the real distinction is between gradual changes in behaviour (e.g. the cooling water flow gradually decreases over time, indicating material buildup in the lines), and drastic changes (e.g. water flow on one of the output lines drops to zero, indicating a burst tube, spraying water, or significant reduction one of the small lines, indicating a local clog).&lt;br /&gt;
&lt;br /&gt;
Naturally these need to be handled differently:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type A:&#039;&#039;&#039; &#039;&#039;Catastrophic&#039;&#039; changes are simple thresholds that can be handled entirely in hardware, and trigger and emergency shutdown (&#039;&#039;crowbar&#039;&#039;). They must &#039;&#039;&#039;NEVER&#039;&#039;&#039; go unnoticed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type B:&#039;&#039;&#039; &#039;&#039;Concerning&#039;&#039; changes are also simple thresholds, but typically have finer granularity and adjustability and can benefit from some simple logic, (e.g. &amp;quot;more than 3 flowmeters read low&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type C:&#039;&#039;&#039; &#039;&#039;Noticeable&#039;&#039; changes require some level of analysis of observables over time, and are used to trigger gentle system ramp-downs to prevent more serious damage. These are a first line of defense and thus somewhat redundant. Should one get missed, overall safety (and most importantly &#039;&#039;personnel&#039;&#039; safety) is not compromised.&lt;br /&gt;
&lt;br /&gt;
The interlock system only handles type &#039;&#039;&#039;A&#039;&#039;&#039; and &#039;&#039;&#039;B&#039;&#039;&#039; events, type &#039;&#039;&#039;C&#039;&#039;&#039; is handled in MIDAS.&lt;br /&gt;
&lt;br /&gt;
== Sensors ==&lt;br /&gt;
&lt;br /&gt;
The main concern for hazardous events in this setup is a malfunction or inadequacy in the water cooling system, which could lead to flooding or overheating.&lt;br /&gt;
&lt;br /&gt;
The system is monitored for malfunctions or abnormalities by a variety of sensing systems targeting different observables:&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Flowmeters:&#039;&#039;&#039; these small paddle-wheel flowmeters monitor the flow in all individual cooling water branches and provide a quantitative readout to a microcontroller and from there to MIDAS (&#039;&#039;&#039;B, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Flow Switches:&#039;&#039;&#039; these bulkier flowmeters sit in main water lines and have in-built threshold detection that can directly connect to an interlock system (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermistors:&#039;&#039;&#039; small thermistors are attached in key locations of the magnets and provide a quantitative readout to a microcontroller, much like the flowmeters (&#039;&#039;&#039;B, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermal Switches:&#039;&#039;&#039; bi-metal switches that provide no quantitative information but can directly connect to an interlock system, they can be placed in strategic locations (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermal Monitor Switch:&#039;&#039;&#039; thermistor- or thermocouple-reading box that provides a quantitative readout and and internal threshold, low granularity (&#039;&#039;optional&#039;&#039;, &#039;&#039;&#039;A, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Level Switches:&#039;&#039;&#039; simple float switches that trigger if the water in the leak-catching enclosure rises too high (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Leak Sensors:&#039;&#039;&#039; resistive wetness-sensing switches that can connect directly to an interlock system and can be placed on the floor in strategic locations (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
== Output/Switching ==&lt;br /&gt;
&lt;br /&gt;
The main two things the interlock system needs to control are the magnet power supplies and the main water supply. Most interlock conditions that do not indicate a leak will simply turn off the magnet power supplies to prevent overheating, while leak detection additionally closes the main water valve to minimize flooding, and shuts down other sensitive electronics.&lt;br /&gt;
&lt;br /&gt;
Technically this is typically achieved by opening or closing a switch connecting two control pins on the device in question.&lt;br /&gt;
&lt;br /&gt;
== Modular Interlock System ==&lt;br /&gt;
&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
&lt;br /&gt;
One big requirement for an interlock system like this is, that it &#039;&#039;fails safe&#039;&#039;, i.e. a loss of power in the interlock system itself, or the cutting or disconnection of a wire, leads to the safe &#039;&#039;&#039;locked&#039;&#039;&#039; condition, rather than the &#039;&#039;&#039;all clear&#039;&#039;&#039;. Additionally the core interlock system should require no programming to minimize the possibility of bugs.&lt;br /&gt;
&lt;br /&gt;
In the HAICU interlock system, the interlock logic is modeled by relays in series. In order for the &#039;&#039;&#039;all clear&#039;&#039;&#039; to be given, voltage must pass through a series of &#039;&#039;normally open&#039;&#039; relays that each actively get switched closed by one of the above sensors. Each input has a manual bypass switch do allow for the manual deactivation of individual inputs.&lt;br /&gt;
&lt;br /&gt;
Finally the interlock system &#039;&#039;&#039;must&#039;&#039;&#039; latch. This means that, once triggered, the system does not go back into the &#039;&#039;&#039;all clear&#039;&#039;&#039; condition without human intervention. This is achieved by a separate output module.&lt;br /&gt;
&lt;br /&gt;
=== Modules ===&lt;br /&gt;
&lt;br /&gt;
Since the number of inputs and outputs to the system may change, it was decided to go with a modular approach instead of a single PCB. The following sections describe the individual modules.&lt;br /&gt;
&lt;br /&gt;
Schematics and kiCad projects for these modules can be found [https://gitlab.triumf.ca/haicu/haicu_control_electronics in the gitlab repo].&lt;br /&gt;
&lt;br /&gt;
[[File:Intlk scheme.svg|thumb|Concept scheme of the modular interlock. Columns can be used in parallel (green A configuration) or in series (red B configuration). Input modules can also be put above top dist board, but this is not currently used. &#039;&#039;Bottom dist&#039;&#039; is not actually a separate board, but a feature common to both output modules]]&lt;br /&gt;
&lt;br /&gt;
==== Power ====&lt;br /&gt;
&lt;br /&gt;
The power module generates the 3.3V needed for TTL communication and 2.2V for the LEDs out of 5V supply voltage. It also supplies 5V to the signal input of the following module.&lt;br /&gt;
&lt;br /&gt;
[[File:Intlk power conn.png|thumb|alt=Top to bottom: ground, Vdd, signal, signal, Vee, Vcc|Power module pinout for the modular interlock]]&lt;br /&gt;
&lt;br /&gt;
==== Top distribution ====&lt;br /&gt;
&lt;br /&gt;
The top distribution board distributes power and signals to columns of interlock modules.&lt;br /&gt;
&lt;br /&gt;
Manual switches can configure the signal path. The signal flow schematic is printed on the board. Note the switches are on the back of the board, since they are not meant to be changed in operation.&lt;br /&gt;
* &#039;&#039;&#039;SW2&#039;&#039;&#039; decides whether input comes from &amp;quot;global interlocks&amp;quot;, which can come from input modules above or from &#039;&#039;top dist&#039;&#039; modules to the left, switchable by &#039;&#039;&#039;SW3&#039;&#039;&#039;.&lt;br /&gt;
* &#039;&#039;&#039;SW1&#039;&#039;&#039; decides whether the next &#039;&#039;top dist&#039;&#039; module to the right gets the same input as this column, or the forwarded &#039;&#039;output&#039;&#039; of this column (requires another switch in &#039;&#039;bottom dist&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
==== Switch Input ====&lt;br /&gt;
&lt;br /&gt;
The switch input module (schematic &#039;&#039;input_moduleA&#039;&#039;) provides two-pin connectors that any switch-style sensors can be connected to. The understanding is that a closed connection signifies a satisfied interlock condition. The large LED below each connector shines green if the condition is met or red if it is not. Below each connector there is a bypass switch, which allows to deactivate that input. The small yellow LED next to the switch is on for bypassed condition. Note the large LED will be green if bypassed.&lt;br /&gt;
&lt;br /&gt;
There is a ribbon connector on the back reporting the state of each channel as a TTL level to the watchdog device described below.&lt;br /&gt;
&lt;br /&gt;
[[File:Input moduleA.png|frameless|600px|Input module for individual switch-type interlock sensors]]&lt;br /&gt;
&lt;br /&gt;
==== TTL Input ====&lt;br /&gt;
&lt;br /&gt;
The TTL input module does not connect to standard switch-style sensors, but instead expects TTL 3.3V levels, which it receives from a Teensy board measuring temperatures or flow rates. It, too, has 5 red/green LEDs indicating interlock status of each channel and 5 bypass switches with yellow LEDs. In contrast to the switch input module, the red/green LED still reflects input status, even if the bypass is active.&lt;br /&gt;
&lt;br /&gt;
This module has the same watchdog connector as the other input module.&lt;br /&gt;
&lt;br /&gt;
[[File:Intput module TTL2.png|frameless|600px|Input module for TTL interlock signals from Teensy board]]&lt;br /&gt;
&lt;br /&gt;
==== Signal booster ====&lt;br /&gt;
&lt;br /&gt;
The inexpertly designed concept of this modular interlock results in a drop in signal level if too many boards are used in series. This module brings it back up to 5V. In principle it can also be used between input modules, but it&#039;s probably wise to limit a single column to no more than 6 input modules.&lt;br /&gt;
&lt;br /&gt;
==== Bottom distribution ====&lt;br /&gt;
&lt;br /&gt;
This is not actually a separate module, but a feature common to both output modules below.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SW1&#039;&#039;&#039; switches between &#039;&#039;normal mode&#039;&#039; &#039;&#039;&#039;B&#039;&#039;&#039;, where the signal from the column above gets used to switch this output module and any below it, and &#039;&#039;daisychain mode&#039;&#039; &#039;&#039;&#039;A&#039;&#039;&#039;, where the signal from the column above gets sent back to the top to serve as the input of the next column, while this output module receives its input from the output module to its right.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 1:&#039;&#039;&#039; this requires SW1 in this column&#039;s &#039;&#039;top dist&#039;&#039; board to be in the &#039;&#039;daisychain&#039;&#039; position.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 2:&#039;&#039;&#039; only the top-most output module should ever have SW1 in position &#039;&#039;&#039;A&#039;&#039;&#039;, unless you really know what you&#039;re doing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Individual Output ====&lt;br /&gt;
&lt;br /&gt;
This module provides two-pin connectors to connect to individual devices. They behave just like if a switching sensor was directly plugged into the device, with two key differences:&lt;br /&gt;
&lt;br /&gt;
# they latch, so even if the condition that triggered the interlock gets remedied, they need to be reset manually, using a push button above each connector&lt;br /&gt;
# they can be switched between &#039;&#039;normally open&#039;&#039; (&#039;&#039;&#039;NO&#039;&#039;&#039;) mode and &#039;&#039;normally closed&#039;&#039; (&#039;&#039;&#039;NC&#039;&#039;&#039;) mode. The latter is e.g. needed for the AE Techron power supply.&lt;br /&gt;
&lt;br /&gt;
All channels trigger together but need to be reset separately. The red/green LED above each connector shows the state.&lt;br /&gt;
&lt;br /&gt;
[[File:Output general.png|600px|frameless|Individual output interlock module with per-channel latch reset buttons. Not the switches to change a channel from &#039;&#039;normally open&#039;&#039; to &#039;&#039;normally closed&#039;&#039; are on the back]]&lt;br /&gt;
&lt;br /&gt;
==== DSub Output ====&lt;br /&gt;
&lt;br /&gt;
This module is specifically designed to connect to the [[Magnet Control Box]] to provide the interlock signals for the Sorensen SGX power supplies. It has a single LED and reset button for all outputs together.&lt;br /&gt;
&lt;br /&gt;
[[File:Output dsub.png|600px|frameless|DSub interlock output module to connect to Magnet Control Box]]&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
[[File:Intlk example good.jpg|thumb|Interlock in ALL CLEAR condition: 3 sensors + 1 teensy connected and happy, other inputs bypassed. Outputs clear. See blue boxes for points of interest in these examples.]]&lt;br /&gt;
[[File:Intlk example tripped.jpg|thumb|Interlock right side tripped by sensor In1-20, right side outputs tripped ]]&lt;br /&gt;
[[File:Intlk example latched.jpg|thumb|Interlock after sensor recovery, inputs are happy, but outputs remain latched. Push Reset to resume operation.]]&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Intlk_example_good.jpg&amp;diff=98</id>
		<title>File:Intlk example good.jpg</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Intlk_example_good.jpg&amp;diff=98"/>
		<updated>2026-06-26T18:42:50Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: Lmartin uploaded a new version of File:Intlk example good.jpg&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Interlock in ALL CLEAR condition&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Intlk_example_tripped.jpg&amp;diff=97</id>
		<title>File:Intlk example tripped.jpg</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Intlk_example_tripped.jpg&amp;diff=97"/>
		<updated>2026-06-26T18:42:24Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: Lmartin uploaded a new version of File:Intlk example tripped.jpg&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Interlock right side tripped, by sensor In1-20, right side outputs tripped&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Intlk_example_latched.jpg&amp;diff=96</id>
		<title>File:Intlk example latched.jpg</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Intlk_example_latched.jpg&amp;diff=96"/>
		<updated>2026-06-26T18:40:40Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: Lmartin uploaded a new version of File:Intlk example latched.jpg&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Interlock after sensor recovery, inputs are happy, but outputs remain latched&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Interlock_System&amp;diff=95</id>
		<title>Interlock System</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Interlock_System&amp;diff=95"/>
		<updated>2026-06-26T02:20:17Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Hazards and degrees of malfunction ==&lt;br /&gt;
&lt;br /&gt;
The HAICU trap contains several hazards to personnel and equipment safety. The main hazards to personnel are posed by the high power magnet power supplies, while the main hazards to equipment also include leaks/faults in the water cooling system leading to magnet overheating and local flooding.&lt;br /&gt;
&lt;br /&gt;
For mitigation purposes it is useful to separate three different degrees of malfunction: noticeable, concerning, and catastrophic. While this latter term is a little dramatic, the real distinction is between gradual changes in behaviour (e.g. the cooling water flow gradually decreases over time, indicating material buildup in the lines), and drastic changes (e.g. water flow on one of the output lines drops to zero, indicating a burst tube, spraying water, or significant reduction one of the small lines, indicating a local clog).&lt;br /&gt;
&lt;br /&gt;
Naturally these need to be handled differently:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type A:&#039;&#039;&#039; &#039;&#039;Catastrophic&#039;&#039; changes are simple thresholds that can be handled entirely in hardware, and trigger and emergency shutdown (&#039;&#039;crowbar&#039;&#039;). They must &#039;&#039;&#039;NEVER&#039;&#039;&#039; go unnoticed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type B:&#039;&#039;&#039; &#039;&#039;Concerning&#039;&#039; changes are also simple thresholds, but typically have finer granularity and adjustability and can benefit from some simple logic, (e.g. &amp;quot;more than 3 flowmeters read low&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type C:&#039;&#039;&#039; &#039;&#039;Noticeable&#039;&#039; changes require some level of analysis of observables over time, and are used to trigger gentle system ramp-downs to prevent more serious damage. These are a first line of defense and thus somewhat redundant. Should one get missed, overall safety (and most importantly &#039;&#039;personnel&#039;&#039; safety) is not compromised.&lt;br /&gt;
&lt;br /&gt;
The interlock system only handles type &#039;&#039;&#039;A&#039;&#039;&#039; and &#039;&#039;&#039;B&#039;&#039;&#039; events, type &#039;&#039;&#039;C&#039;&#039;&#039; is handled in MIDAS.&lt;br /&gt;
&lt;br /&gt;
== Sensors ==&lt;br /&gt;
&lt;br /&gt;
The main concern for hazardous events in this setup is a malfunction or inadequacy in the water cooling system, which could lead to flooding or overheating.&lt;br /&gt;
&lt;br /&gt;
The system is monitored for malfunctions or abnormalities by a variety of sensing systems targeting different observables:&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Flowmeters:&#039;&#039;&#039; these small paddle-wheel flowmeters monitor the flow in all individual cooling water branches and provide a quantitative readout to a microcontroller and from there to MIDAS (&#039;&#039;&#039;B, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Flow Switches:&#039;&#039;&#039; these bulkier flowmeters sit in main water lines and have in-built threshold detection that can directly connect to an interlock system (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermistors:&#039;&#039;&#039; small thermistors are attached in key locations of the magnets and provide a quantitative readout to a microcontroller, much like the flowmeters (&#039;&#039;&#039;B, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermal Switches:&#039;&#039;&#039; bi-metal switches that provide no quantitative information but can directly connect to an interlock system, they can be placed in strategic locations (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermal Monitor Switch:&#039;&#039;&#039; thermistor- or thermocouple-reading box that provides a quantitative readout and and internal threshold, low granularity (&#039;&#039;optional&#039;&#039;, &#039;&#039;&#039;A, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Level Switches:&#039;&#039;&#039; simple float switches that trigger if the water in the leak-catching enclosure rises too high (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Leak Sensors:&#039;&#039;&#039; resistive wetness-sensing switches that can connect directly to an interlock system and can be placed on the floor in strategic locations (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
== Output/Switching ==&lt;br /&gt;
&lt;br /&gt;
The main two things the interlock system needs to control are the magnet power supplies and the main water supply. Most interlock conditions that do not indicate a leak will simply turn off the magnet power supplies to prevent overheating, while leak detection additionally closes the main water valve to minimize flooding, and shuts down other sensitive electronics.&lt;br /&gt;
&lt;br /&gt;
Technically this is typically achieved by opening or closing a switch connecting two control pins on the device in question.&lt;br /&gt;
&lt;br /&gt;
== Modular Interlock System ==&lt;br /&gt;
&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
&lt;br /&gt;
One big requirement for an interlock system like this is, that it &#039;&#039;fails safe&#039;&#039;, i.e. a loss of power in the interlock system itself, or the cutting or disconnection of a wire, leads to the safe &#039;&#039;&#039;locked&#039;&#039;&#039; condition, rather than the &#039;&#039;&#039;all clear&#039;&#039;&#039;. Additionally the core interlock system should require no programming to minimize the possibility of bugs.&lt;br /&gt;
&lt;br /&gt;
In the HAICU interlock system, the interlock logic is modeled by relays in series. In order for the &#039;&#039;&#039;all clear&#039;&#039;&#039; to be given, voltage must pass through a series of &#039;&#039;normally open&#039;&#039; relays that each actively get switched closed by one of the above sensors. Each input has a manual bypass switch do allow for the manual deactivation of individual inputs.&lt;br /&gt;
&lt;br /&gt;
Finally the interlock system &#039;&#039;&#039;must&#039;&#039;&#039; latch. This means that, once triggered, the system does not go back into the &#039;&#039;&#039;all clear&#039;&#039;&#039; condition without human intervention. This is achieved by a separate output module.&lt;br /&gt;
&lt;br /&gt;
=== Modules ===&lt;br /&gt;
&lt;br /&gt;
Since the number of inputs and outputs to the system may change, it was decided to go with a modular approach instead of a single PCB. The following sections describe the individual modules.&lt;br /&gt;
&lt;br /&gt;
Schematics and kiCad projects for these modules can be found [https://gitlab.triumf.ca/haicu/haicu_control_electronics in the gitlab repo].&lt;br /&gt;
&lt;br /&gt;
[[File:Intlk scheme.svg|thumb|Concept scheme of the modular interlock. Columns can be used in parallel (green A configuration) or in series (red B configuration). Input modules can also be put above top dist board, but this is not currently used. &#039;&#039;Bottom dist&#039;&#039; is not actually a separate board, but a feature common to both output modules]]&lt;br /&gt;
&lt;br /&gt;
==== Power ====&lt;br /&gt;
&lt;br /&gt;
The power module generates the 3.3V needed for TTL communication and 2.2V for the LEDs out of 5V supply voltage. It also supplies 5V to the signal input of the following module.&lt;br /&gt;
&lt;br /&gt;
[[File:Intlk power conn.png|thumb|alt=Top to bottom: ground, Vdd, signal, signal, Vee, Vcc|Power module pinout for the modular interlock]]&lt;br /&gt;
&lt;br /&gt;
==== Top distribution ====&lt;br /&gt;
&lt;br /&gt;
The top distribution board distributes power and signals to columns of interlock modules.&lt;br /&gt;
&lt;br /&gt;
Manual switches can configure the signal path. The signal flow schematic is printed on the board. Note the switches are on the back of the board, since they are not meant to be changed in operation.&lt;br /&gt;
* &#039;&#039;&#039;SW2&#039;&#039;&#039; decides whether input comes from &amp;quot;global interlocks&amp;quot;, which can come from input modules above or from &#039;&#039;top dist&#039;&#039; modules to the left, switchable by &#039;&#039;&#039;SW3&#039;&#039;&#039;.&lt;br /&gt;
* &#039;&#039;&#039;SW1&#039;&#039;&#039; decides whether the next &#039;&#039;top dist&#039;&#039; module to the right gets the same input as this column, or the forwarded &#039;&#039;output&#039;&#039; of this column (requires another switch in &#039;&#039;bottom dist&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
==== Switch Input ====&lt;br /&gt;
&lt;br /&gt;
The switch input module (schematic &#039;&#039;input_moduleA&#039;&#039;) provides two-pin connectors that any switch-style sensors can be connected to. The understanding is that a closed connection signifies a satisfied interlock condition. The large LED below each connector shines green if the condition is met or red if it is not. Below each connector there is a bypass switch, which allows to deactivate that input. The small yellow LED next to the switch is on for bypassed condition. Note the large LED will be green if bypassed.&lt;br /&gt;
&lt;br /&gt;
There is a ribbon connector on the back reporting the state of each channel as a TTL level to the watchdog device described below.&lt;br /&gt;
&lt;br /&gt;
[[File:Input moduleA.png|frameless|600px|Input module for individual switch-type interlock sensors]]&lt;br /&gt;
&lt;br /&gt;
==== TTL Input ====&lt;br /&gt;
&lt;br /&gt;
The TTL input module does not connect to standard switch-style sensors, but instead expects TTL 3.3V levels, which it receives from a Teensy board measuring temperatures or flow rates. It, too, has 5 red/green LEDs indicating interlock status of each channel and 5 bypass switches with yellow LEDs. In contrast to the switch input module, the red/green LED still reflects input status, even if the bypass is active.&lt;br /&gt;
&lt;br /&gt;
This module has the same watchdog connector as the other input module.&lt;br /&gt;
&lt;br /&gt;
[[File:Intput module TTL2.png|frameless|600px|Input module for TTL interlock signals from Teensy board]]&lt;br /&gt;
&lt;br /&gt;
==== Signal booster ====&lt;br /&gt;
&lt;br /&gt;
The inexpertly designed concept of this modular interlock results in a drop in signal level if too many boards are used in series. This module brings it back up to 5V. In principle it can also be used between input modules, but it&#039;s probably wise to limit a single column to no more than 6 input modules.&lt;br /&gt;
&lt;br /&gt;
==== Bottom distribution ====&lt;br /&gt;
&lt;br /&gt;
This is not actually a separate module, but a feature common to both output modules below.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SW1&#039;&#039;&#039; switches between &#039;&#039;normal mode&#039;&#039; &#039;&#039;&#039;B&#039;&#039;&#039;, where the signal from the column above gets used to switch this output module and any below it, and &#039;&#039;daisychain mode&#039;&#039; &#039;&#039;&#039;A&#039;&#039;&#039;, where the signal from the column above gets sent back to the top to serve as the input of the next column, while this output module receives its input from the output module to its right.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 1:&#039;&#039;&#039; this requires SW1 in this column&#039;s &#039;&#039;top dist&#039;&#039; board to be in the &#039;&#039;daisychain&#039;&#039; position.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 2:&#039;&#039;&#039; only the top-most output module should ever have SW1 in position &#039;&#039;&#039;A&#039;&#039;&#039;, unless you really know what you&#039;re doing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Individual Output ====&lt;br /&gt;
&lt;br /&gt;
This module provides two-pin connectors to connect to individual devices. They behave just like if a switching sensor was directly plugged into the device, with two key differences:&lt;br /&gt;
&lt;br /&gt;
# they latch, so even if the condition that triggered the interlock gets remedied, they need to be reset manually, using a push button above each connector&lt;br /&gt;
# they can be switched between &#039;&#039;normally open&#039;&#039; (&#039;&#039;&#039;NO&#039;&#039;&#039;) mode and &#039;&#039;normally closed&#039;&#039; (&#039;&#039;&#039;NC&#039;&#039;&#039;) mode. The latter is e.g. needed for the AE Techron power supply.&lt;br /&gt;
&lt;br /&gt;
All channels trigger together but need to be reset separately. The red/green LED above each connector shows the state.&lt;br /&gt;
&lt;br /&gt;
[[File:Output general.png|600px|frameless|Individual output interlock module with per-channel latch reset buttons. Not the switches to change a channel from &#039;&#039;normally open&#039;&#039; to &#039;&#039;normally closed&#039;&#039; are on the back]]&lt;br /&gt;
&lt;br /&gt;
==== DSub Output ====&lt;br /&gt;
&lt;br /&gt;
This module is specifically designed to connect to the [[Magnet Control Box]] to provide the interlock signals for the Sorensen SGX power supplies. It has a single LED and reset button for all outputs together.&lt;br /&gt;
&lt;br /&gt;
[[File:Output dsub.png|600px|frameless|DSub interlock output module to connect to Magnet Control Box]]&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
[[File:Intlk example good.jpg|thumb|Interlock in ALL CLEAR condition: 3 sensors + 1 teensy connected and happy, other inputs bypassed. Outputs clear.]]&lt;br /&gt;
[[File:Intlk example tripped.jpg|thumb|Interlock right side tripped by sensor In1-20, right side outputs tripped ]]&lt;br /&gt;
[[File:Intlk example latched.jpg|thumb|Interlock after sensor recovery, inputs are happy, but outputs remain latched. Push Reset to resume operation.]]&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Intlk_example_latched.jpg&amp;diff=94</id>
		<title>File:Intlk example latched.jpg</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Intlk_example_latched.jpg&amp;diff=94"/>
		<updated>2026-06-26T02:17:52Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Interlock after sensor recovery, inputs are happy, but outputs remain latched&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Intlk_example_tripped.jpg&amp;diff=93</id>
		<title>File:Intlk example tripped.jpg</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Intlk_example_tripped.jpg&amp;diff=93"/>
		<updated>2026-06-26T02:13:51Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Interlock right side tripped, by sensor In1-20, right side outputs tripped&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Intlk_example_good.jpg&amp;diff=92</id>
		<title>File:Intlk example good.jpg</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Intlk_example_good.jpg&amp;diff=92"/>
		<updated>2026-06-26T02:10:15Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Interlock in ALL CLEAR condition&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Interlock_System&amp;diff=91</id>
		<title>Interlock System</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Interlock_System&amp;diff=91"/>
		<updated>2026-06-26T02:07:07Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Hazards and degrees of malfunction ==&lt;br /&gt;
&lt;br /&gt;
The HAICU trap contains several hazards to personnel and equipment safety. The main hazards to personnel are posed by the high power magnet power supplies, while the main hazards to equipment also include leaks/faults in the water cooling system leading to magnet overheating and local flooding.&lt;br /&gt;
&lt;br /&gt;
For mitigation purposes it is useful to separate three different degrees of malfunction: noticeable, concerning, and catastrophic. While this latter term is a little dramatic, the real distinction is between gradual changes in behaviour (e.g. the cooling water flow gradually decreases over time, indicating material buildup in the lines), and drastic changes (e.g. water flow on one of the output lines drops to zero, indicating a burst tube, spraying water, or significant reduction one of the small lines, indicating a local clog).&lt;br /&gt;
&lt;br /&gt;
Naturally these need to be handled differently:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type A:&#039;&#039;&#039; &#039;&#039;Catastrophic&#039;&#039; changes are simple thresholds that can be handled entirely in hardware, and trigger and emergency shutdown (&#039;&#039;crowbar&#039;&#039;). They must &#039;&#039;&#039;NEVER&#039;&#039;&#039; go unnoticed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type B:&#039;&#039;&#039; &#039;&#039;Concerning&#039;&#039; changes are also simple thresholds, but typically have finer granularity and adjustability and can benefit from some simple logic, (e.g. &amp;quot;more than 3 flowmeters read low&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type C:&#039;&#039;&#039; &#039;&#039;Noticeable&#039;&#039; changes require some level of analysis of observables over time, and are used to trigger gentle system ramp-downs to prevent more serious damage. These are a first line of defense and thus somewhat redundant. Should one get missed, overall safety (and most importantly &#039;&#039;personnel&#039;&#039; safety) is not compromised.&lt;br /&gt;
&lt;br /&gt;
The interlock system only handles type &#039;&#039;&#039;A&#039;&#039;&#039; and &#039;&#039;&#039;B&#039;&#039;&#039; events, type &#039;&#039;&#039;C&#039;&#039;&#039; is handled in MIDAS.&lt;br /&gt;
&lt;br /&gt;
== Sensors ==&lt;br /&gt;
&lt;br /&gt;
The main concern for hazardous events in this setup is a malfunction or inadequacy in the water cooling system, which could lead to flooding or overheating.&lt;br /&gt;
&lt;br /&gt;
The system is monitored for malfunctions or abnormalities by a variety of sensing systems targeting different observables:&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Flowmeters:&#039;&#039;&#039; these small paddle-wheel flowmeters monitor the flow in all individual cooling water branches and provide a quantitative readout to a microcontroller and from there to MIDAS (&#039;&#039;&#039;B, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Flow Switches:&#039;&#039;&#039; these bulkier flowmeters sit in main water lines and have in-built threshold detection that can directly connect to an interlock system (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermistors:&#039;&#039;&#039; small thermistors are attached in key locations of the magnets and provide a quantitative readout to a microcontroller, much like the flowmeters (&#039;&#039;&#039;B, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermal Switches:&#039;&#039;&#039; bi-metal switches that provide no quantitative information but can directly connect to an interlock system, they can be placed in strategic locations (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermal Monitor Switch:&#039;&#039;&#039; thermistor- or thermocouple-reading box that provides a quantitative readout and and internal threshold, low granularity (&#039;&#039;optional&#039;&#039;, &#039;&#039;&#039;A, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Level Switches:&#039;&#039;&#039; simple float switches that trigger if the water in the leak-catching enclosure rises too high (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Leak Sensors:&#039;&#039;&#039; resistive wetness-sensing switches that can connect directly to an interlock system and can be placed on the floor in strategic locations (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
== Output/Switching ==&lt;br /&gt;
&lt;br /&gt;
The main two things the interlock system needs to control are the magnet power supplies and the main water supply. Most interlock conditions that do not indicate a leak will simply turn off the magnet power supplies to prevent overheating, while leak detection additionally closes the main water valve to minimize flooding, and shuts down other sensitive electronics.&lt;br /&gt;
&lt;br /&gt;
Technically this is typically achieved by opening or closing a switch connecting two control pins on the device in question.&lt;br /&gt;
&lt;br /&gt;
== Modular Interlock System ==&lt;br /&gt;
&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
&lt;br /&gt;
One big requirement for an interlock system like this is, that it &#039;&#039;fails safe&#039;&#039;, i.e. a loss of power in the interlock system itself, or the cutting or disconnection of a wire, leads to the safe &#039;&#039;&#039;locked&#039;&#039;&#039; condition, rather than the &#039;&#039;&#039;all clear&#039;&#039;&#039;. Additionally the core interlock system should require no programming to minimize the possibility of bugs.&lt;br /&gt;
&lt;br /&gt;
In the HAICU interlock system, the interlock logic is modeled by relays in series. In order for the &#039;&#039;&#039;all clear&#039;&#039;&#039; to be given, voltage must pass through a series of &#039;&#039;normally open&#039;&#039; relays that each actively get switched closed by one of the above sensors. Each input has a manual bypass switch do allow for the manual deactivation of individual inputs.&lt;br /&gt;
&lt;br /&gt;
Finally the interlock system &#039;&#039;&#039;must&#039;&#039;&#039; latch. This means that, once triggered, the system does not go back into the &#039;&#039;&#039;all clear&#039;&#039;&#039; condition without human intervention. This is achieved by a separate output module.&lt;br /&gt;
&lt;br /&gt;
=== Modules ===&lt;br /&gt;
&lt;br /&gt;
Since the number of inputs and outputs to the system may change, it was decided to go with a modular approach instead of a single PCB. The following sections describe the individual modules.&lt;br /&gt;
&lt;br /&gt;
Schematics and kiCad projects for these modules can be found [https://gitlab.triumf.ca/haicu/haicu_control_electronics in the gitlab repo].&lt;br /&gt;
&lt;br /&gt;
[[File:Intlk scheme.svg|thumb|Concept scheme of the modular interlock. Columns can be used in parallel (green A configuration) or in series (red B configuration). Input modules can also be put above top dist board, but this is not currently used. &#039;&#039;Bottom dist&#039;&#039; is not actually a separate board, but a feature common to both output modules]]&lt;br /&gt;
&lt;br /&gt;
==== Power ====&lt;br /&gt;
&lt;br /&gt;
The power module generates the 3.3V needed for TTL communication and 2.2V for the LEDs out of 5V supply voltage. It also supplies 5V to the signal input of the following module.&lt;br /&gt;
&lt;br /&gt;
[[File:Intlk power conn.png|thumb|alt=Top to bottom: ground, Vdd, signal, signal, Vee, Vcc|Power module pinout for the modular interlock]]&lt;br /&gt;
&lt;br /&gt;
==== Top distribution ====&lt;br /&gt;
&lt;br /&gt;
The top distribution board distributes power and signals to columns of interlock modules.&lt;br /&gt;
&lt;br /&gt;
Manual switches can configure the signal path. The signal flow schematic is printed on the board. Note the switches are on the back of the board, since they are not meant to be changed in operation.&lt;br /&gt;
* &#039;&#039;&#039;SW2&#039;&#039;&#039; decides whether input comes from &amp;quot;global interlocks&amp;quot;, which can come from input modules above or from &#039;&#039;top dist&#039;&#039; modules to the left, switchable by &#039;&#039;&#039;SW3&#039;&#039;&#039;.&lt;br /&gt;
* &#039;&#039;&#039;SW1&#039;&#039;&#039; decides whether the next &#039;&#039;top dist&#039;&#039; module to the right gets the same input as this column, or the forwarded &#039;&#039;output&#039;&#039; of this column (requires another switch in &#039;&#039;bottom dist&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
==== Switch Input ====&lt;br /&gt;
&lt;br /&gt;
The switch input module (schematic &#039;&#039;input_moduleA&#039;&#039;) provides two-pin connectors that any switch-style sensors can be connected to. The understanding is that a closed connection signifies a satisfied interlock condition. The large LED below each connector shines green if the condition is met or red if it is not. Below each connector there is a bypass switch, which allows to deactivate that input. The small yellow LED next to the switch is on for bypassed condition. Note the large LED will be green if bypassed.&lt;br /&gt;
&lt;br /&gt;
There is a ribbon connector on the back reporting the state of each channel as a TTL level to the watchdog device described below.&lt;br /&gt;
&lt;br /&gt;
[[File:Input moduleA.png|frameless|600px|Input module for individual switch-type interlock sensors]]&lt;br /&gt;
&lt;br /&gt;
==== TTL Input ====&lt;br /&gt;
&lt;br /&gt;
The TTL input module does not connect to standard switch-style sensors, but instead expects TTL 3.3V levels, which it receives from a Teensy board measuring temperatures or flow rates. It, too, has 5 red/green LEDs indicating interlock status of each channel and 5 bypass switches with yellow LEDs. In contrast to the switch input module, the red/green LED still reflects input status, even if the bypass is active.&lt;br /&gt;
&lt;br /&gt;
This module has the same watchdog connector as the other input module.&lt;br /&gt;
&lt;br /&gt;
[[File:Intput module TTL2.png|frameless|600px|Input module for TTL interlock signals from Teensy board]]&lt;br /&gt;
&lt;br /&gt;
==== Signal booster ====&lt;br /&gt;
&lt;br /&gt;
The inexpertly designed concept of this modular interlock results in a drop in signal level if too many boards are used in series. This module brings it back up to 5V. In principle it can also be used between input modules, but it&#039;s probably wise to limit a single column to no more than 6 input modules.&lt;br /&gt;
&lt;br /&gt;
==== Bottom distribution ====&lt;br /&gt;
&lt;br /&gt;
This is not actually a separate module, but a feature common to both output modules below.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SW1&#039;&#039;&#039; switches between &#039;&#039;normal mode&#039;&#039; &#039;&#039;&#039;B&#039;&#039;&#039;, where the signal from the column above gets used to switch this output module and any below it, and &#039;&#039;daisychain mode&#039;&#039; &#039;&#039;&#039;A&#039;&#039;&#039;, where the signal from the column above gets sent back to the top to serve as the input of the next column, while this output module receives its input from the output module to its right.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 1:&#039;&#039;&#039; this requires SW1 in this column&#039;s &#039;&#039;top dist&#039;&#039; board to be in the &#039;&#039;daisychain&#039;&#039; position.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 2:&#039;&#039;&#039; only the top-most output module should ever have SW1 in position &#039;&#039;&#039;A&#039;&#039;&#039;, unless you really know what you&#039;re doing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Individual Output ====&lt;br /&gt;
&lt;br /&gt;
This module provides two-pin connectors to connect to individual devices. They behave just like if a switching sensor was directly plugged into the device, with two key differences:&lt;br /&gt;
&lt;br /&gt;
# they latch, so even if the condition that triggered the interlock gets remedied, they need to be reset manually, using a push button above each connector&lt;br /&gt;
# they can be switched between &#039;&#039;normally open&#039;&#039; (&#039;&#039;&#039;NO&#039;&#039;&#039;) mode and &#039;&#039;normally closed&#039;&#039; (&#039;&#039;&#039;NC&#039;&#039;&#039;) mode. The latter is e.g. needed for the AE Techron power supply.&lt;br /&gt;
&lt;br /&gt;
All channels trigger together but need to be reset separately. The red/green LED above each connector shows the state.&lt;br /&gt;
&lt;br /&gt;
[[File:Output general.png|600px|frameless|Individual output interlock module with per-channel latch reset buttons. Not the switches to change a channel from &#039;&#039;normally open&#039;&#039; to &#039;&#039;normally closed&#039;&#039; are on the back]]&lt;br /&gt;
&lt;br /&gt;
==== DSub Output ====&lt;br /&gt;
&lt;br /&gt;
This module is specifically designed to connect to the [[Magnet Control Box]] to provide the interlock signals for the Sorensen SGX power supplies. It has a single LED and reset button for all outputs together.&lt;br /&gt;
&lt;br /&gt;
[[File:Output dsub.png|600px|frameless|DSub interlock output module to connect to Magnet Control Box]]&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=90</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Main_Page&amp;diff=90"/>
		<updated>2026-06-24T23:25:37Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Procedures */ Wrote water valve procedure&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= General =&lt;br /&gt;
HAICU (Hydrogen Antihydrogen Infrastructure at Canadian Universities) is an experimental facility designed for research and development of techniques relating to the trapping of atomic Hydrogen and Antihydrogen. This wiki is the definitive repository of documentation regarding this setup.&lt;br /&gt;
&lt;br /&gt;
[[File:HAICU vector.svg|300x300px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Experimental Setup =&lt;br /&gt;
&lt;br /&gt;
* [[Hydrogen Source]]&lt;br /&gt;
* [[Magnetic Decelerator]]&lt;br /&gt;
* [[Halbach Bender]]&lt;br /&gt;
* [[Electromagnetic Bender]]&lt;br /&gt;
* [[Lasers]]&lt;br /&gt;
* [[Magnetic Trap]]&lt;br /&gt;
* [[Detectors]]&lt;br /&gt;
* [[Interlock System]]&lt;br /&gt;
&lt;br /&gt;
= Software =&lt;br /&gt;
== Git Repositories ==&lt;br /&gt;
(Most of) the various software packages used for the control and monitoring of the HAICU setup are kept in the TRIUMF gitlab at https://gitlab.triumf.ca/groups/haicu/. In general, each repository should have a README file as well as Doxygen documentation accessible from the &amp;quot;Gitlab Pages&amp;quot; link or from a link at the start of the README. Specifically the software packages are:&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/magnet_control magnet_control], which contains the drivers, test code, and frontends for Raspberry Pi box controlling the magnet power supplies&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_client PPG Client], which contains the code to load and run sequences on the Programmable Pulse Generator (or sequencer)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/ppg_cb_firmware PPG Firmware], which contains the Quartus project of the PPG-Chronobox FPGA code&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/vacuum-control-software Vacuum Control Software], which contains frontends for the Agilent gauges and turbopumps&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/teensy_software Teensy Software], which contains both firmware and Midas frontends for the flow and temperature monitoring Teensy boards&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/caen-dt5533en-hvps HV supply], which controls the CAEN DT5533 high voltage supply&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/lolxboardctrl SiPM bias], which controls the SiPM bias distribution and amplification box (LolX-box)&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/intlck-watchdog Interlock Watchdog Firmware], which contains the firmware for the Arduino Due &amp;quot;Watchdog&amp;quot;&lt;br /&gt;
* [https://gitlab.triumf.ca/haicu/watchdog-frontend Interlock Watchdog Frontend], which contains the MIDAS frontend to interact with the watchdog&lt;br /&gt;
&lt;br /&gt;
= Procedures =&lt;br /&gt;
== Cooling Water Valves ==&lt;br /&gt;
As of now, this procedure applies to the quadrupole test stand in the HAICU area, it will likely be amended for the final setup. Plumbing schematics should also be added.&lt;br /&gt;
&lt;br /&gt;
=== Water TURN ON procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Check function of &#039;&#039;&#039;both&#039;&#039;&#039; solenoid valves connecting the manifold in the magnet testing area to the cooling lines via the interlock:&lt;br /&gt;
#* If open (yellow arrows point along flow direction), manually lift float switch in overflow bucket to trip interlock, observe valves closing, then reset &amp;quot;water mains&amp;quot; interlock output, observe them opening&lt;br /&gt;
#* If closed, reset &amp;quot;water mains&amp;quot; interlock output, then follow above procedure&lt;br /&gt;
# Open manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole is starting to leak water (this might change if a one-way valve is installed at some point)&lt;br /&gt;
# Plug in water return pump&lt;br /&gt;
# Open manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
# Confirm water return pump turns on and off regularly&lt;br /&gt;
&lt;br /&gt;
=== Water TURN OFF procedure ===&lt;br /&gt;
This &#039;&#039;&#039;entire&#039;&#039;&#039; sequence should be performed step-by-step, &#039;&#039;&#039;DO NOT PROCEED&#039;&#039;&#039; if one of the steps fails.&lt;br /&gt;
&lt;br /&gt;
# Close manual supply valve (red valve above right solenoid valve, mounted in a way that cannot be fully opened)&lt;br /&gt;
# Unplug water return pump&lt;br /&gt;
# Close manual return valve (red valve above the left solenoid valve)&lt;br /&gt;
# Confirm that quadrupole stops leaking water&lt;br /&gt;
# Manually lift float switch in overflow bucket to trip interlock&lt;br /&gt;
&lt;br /&gt;
= Resources and Manuals =&lt;br /&gt;
&lt;br /&gt;
* [[Equipment Manuals]]&lt;br /&gt;
* [[Miscellaneous Resources]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
= MediaWiki default blurb =&lt;br /&gt;
&amp;lt;strong&amp;gt;MediaWiki has been installed.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User&#039;s Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Interlock_System&amp;diff=76</id>
		<title>Interlock System</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Interlock_System&amp;diff=76"/>
		<updated>2026-03-11T17:41:20Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Modules */ Added figures&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Hazards and degrees of malfunction ==&lt;br /&gt;
&lt;br /&gt;
The HAICU trap contains several hazards to personnel and equipment safety. The main hazards to personnel are posed by the high power magnet power supplies, while the main hazards to equipment also include leaks/faults in the water cooling system leading to magnet overheating and local flooding.&lt;br /&gt;
&lt;br /&gt;
For mitigation purposes it is useful to separate three different degrees of malfunction: noticeable, concerning, and catastrophic. While this latter term is a little dramatic, the real distinction is between gradual changes in behaviour (e.g. the cooling water flow gradually decreases over time, indicating material buildup in the lines), and drastic changes (e.g. water flow on one of the output lines drops to zero, indicating a burst tube, spraying water, or significant reduction one of the small lines, indicating a local clog).&lt;br /&gt;
&lt;br /&gt;
Naturally these need to be handled differently:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type A:&#039;&#039;&#039; &#039;&#039;Catastrophic&#039;&#039; changes are simple thresholds that can be handled entirely in hardware, and trigger and emergency shutdown (&#039;&#039;crowbar&#039;&#039;). They must &#039;&#039;&#039;NEVER&#039;&#039;&#039; go unnoticed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type B:&#039;&#039;&#039; &#039;&#039;Concerning&#039;&#039; changes are also simple thresholds, but typically have finer granularity and adjustability and can benefit from some simple logic, (e.g. &amp;quot;more than 3 flowmeters read low&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type C:&#039;&#039;&#039; &#039;&#039;Noticeable&#039;&#039; changes require some level of analysis of observables over time, and are used to trigger gentle system ramp-downs to prevent more serious damage. These are a first line of defense and thus somewhat redundant. Should one get missed, overall safety (and most importantly &#039;&#039;personnel&#039;&#039; safety) is not compromised.&lt;br /&gt;
&lt;br /&gt;
The interlock system only handles type &#039;&#039;&#039;A&#039;&#039;&#039; and &#039;&#039;&#039;B&#039;&#039;&#039; events, type &#039;&#039;&#039;C&#039;&#039;&#039; is handled in MIDAS.&lt;br /&gt;
&lt;br /&gt;
== Sensors ==&lt;br /&gt;
&lt;br /&gt;
The main concern for hazardous events in this setup is a malfunction or inadequacy in the water cooling system, which could lead to flooding or overheating.&lt;br /&gt;
&lt;br /&gt;
The system is monitored for malfunctions or abnormalities by a variety of sensing systems targeting different observables:&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Flowmeters:&#039;&#039;&#039; these small paddle-wheel flowmeters monitor the flow in all individual cooling water branches and provide a quantitative readout to a microcontroller and from there to MIDAS (&#039;&#039;&#039;B, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Flow Switches:&#039;&#039;&#039; these bulkier flowmeters sit in main water lines and have in-built threshold detection that can directly connect to an interlock system (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermistors:&#039;&#039;&#039; small thermistors are attached in key locations of the magnets and provide a quantitative readout to a microcontroller, much like the flowmeters (&#039;&#039;&#039;B, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermal Switches:&#039;&#039;&#039; bi-metal switches that provide no quantitative information but can directly connect to an interlock system, they can be placed in strategic locations (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermal Monitor Switch:&#039;&#039;&#039; thermistor- or thermocouple-reading box that provides a quantitative readout and and internal threshold, low granularity (&#039;&#039;optional&#039;&#039;, &#039;&#039;&#039;A, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Level Switches:&#039;&#039;&#039; simple float switches that trigger if the water in the leak-catching enclosure rises too high (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Leak Sensors:&#039;&#039;&#039; resistive wetness-sensing switches that can connect directly to an interlock system and can be placed on the floor in strategic locations (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
== Output/Switching ==&lt;br /&gt;
&lt;br /&gt;
The main two things the interlock system needs to control are the magnet power supplies and the main water supply. Most interlock conditions that do not indicate a leak will simply turn off the magnet power supplies to prevent overheating, while leak detection additionally closes the main water valve to minimize flooding, and shuts down other sensitive electronics.&lt;br /&gt;
&lt;br /&gt;
Technically this is typically achieved by opening or closing a switch connecting two control pins on the device in question.&lt;br /&gt;
&lt;br /&gt;
== Modular Interlock System ==&lt;br /&gt;
&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
&lt;br /&gt;
One big requirement for an interlock system like this is, that it &#039;&#039;fails safe&#039;&#039;, i.e. a loss of power in the interlock system itself, or the cutting or disconnection of a wire, leads to the safe &#039;&#039;&#039;locked&#039;&#039;&#039; condition, rather than the &#039;&#039;&#039;all clear&#039;&#039;&#039;. Additionally the core interlock system should require no programming to minimize the possibility of bugs.&lt;br /&gt;
&lt;br /&gt;
In the HAICU interlock system, the interlock logic is modeled by relays in series. In order for the &#039;&#039;&#039;all clear&#039;&#039;&#039; to be given, voltage must pass through a series of &#039;&#039;normally open&#039;&#039; relays that each actively get switched closed by one of the above sensors. Each input has a manual bypass switch do allow for the manual deactivation of individual inputs.&lt;br /&gt;
&lt;br /&gt;
Finally the interlock system &#039;&#039;&#039;must&#039;&#039;&#039; latch. This means that, once triggered, the system does not go back into the &#039;&#039;&#039;all clear&#039;&#039;&#039; condition without human intervention. This is achieved by a separate output module.&lt;br /&gt;
&lt;br /&gt;
=== Modules ===&lt;br /&gt;
&lt;br /&gt;
Since the number of inputs and outputs to the system may change, it was decided to go with a modular approach instead of a single PCB. The following sections describe the individual modules.&lt;br /&gt;
&lt;br /&gt;
Schematics and kiCad projects for these modules can be found [https://gitlab.triumf.ca/haicu/haicu_control_electronics in the gitlab repo].&lt;br /&gt;
&lt;br /&gt;
[[File:Intlk scheme.svg|thumb|Concept scheme of the modular interlock. Columns can be used in parallel (green A configuration) or in series (red B configuration). Input modules can also be put above top dist board, but this is not currently used. &#039;&#039;Bottom dist&#039;&#039; is not actually a separate board, but a feature common to both output modules]]&lt;br /&gt;
&lt;br /&gt;
==== Power ====&lt;br /&gt;
&lt;br /&gt;
The power module generates the 3.3V needed for TTL communication and 2.2V for the LEDs out of 5V supply voltage. It also supplies 5V to the signal input of the following module.&lt;br /&gt;
&lt;br /&gt;
[[File:Intlk power conn.png|thumb|alt=Top to bottom: ground, Vdd, signal, signal, Vee, Vcc|Power module pinout for the modular interlock]]&lt;br /&gt;
&lt;br /&gt;
==== Top distribution ====&lt;br /&gt;
&lt;br /&gt;
The top distribution board distributes power and signals to columns of interlock modules.&lt;br /&gt;
&lt;br /&gt;
Manual switches can configure the signal path. The signal flow schematic is printed on the board. Note the switches are on the back of the board, since they are not meant to be changed in operation.&lt;br /&gt;
* &#039;&#039;&#039;SW2&#039;&#039;&#039; decides whether input comes from &amp;quot;global interlocks&amp;quot;, which can come from input modules above or from &#039;&#039;top dist&#039;&#039; modules to the left, switchable by &#039;&#039;&#039;SW3&#039;&#039;&#039;.&lt;br /&gt;
* &#039;&#039;&#039;SW1&#039;&#039;&#039; decides whether the next &#039;&#039;top dist&#039;&#039; module to the right gets the same input as this column, or the forwarded &#039;&#039;output&#039;&#039; of this column (requires another switch in &#039;&#039;bottom dist&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
==== Switch Input ====&lt;br /&gt;
&lt;br /&gt;
The switch input module (schematic &#039;&#039;input_moduleA&#039;&#039;) provides two-pin connectors that any switch-style sensors can be connected to. The understanding is that a closed connection signifies a satisfied interlock condition. The large LED below each connector shines green if the condition is met or red if it is not. Below each connector there is a bypass switch, which allows to deactivate that input. The small yellow LED next to the switch is on for bypassed condition. Note the large LED will be green if bypassed.&lt;br /&gt;
&lt;br /&gt;
There is a ribbon connector on the back reporting the state of each channel as a TTL level to the watchdog device described below.&lt;br /&gt;
&lt;br /&gt;
[[File:Input moduleA.png|frameless|600px|Input module for individual switch-type interlock sensors]]&lt;br /&gt;
&lt;br /&gt;
==== TTL Input ====&lt;br /&gt;
&lt;br /&gt;
The TTL input module does not connect to standard switch-style sensors, but instead expects TTL 3.3V levels, which it receives from a Teensy board measuring temperatures or flow rates. It, too, has 5 red/green LEDs indicating interlock status of each channel and 5 bypass switches with yellow LEDs. In contrast to the switch input module, the red/green LED still reflects input status, even if the bypass is active.&lt;br /&gt;
&lt;br /&gt;
This module has the same watchdog connector as the other input module.&lt;br /&gt;
&lt;br /&gt;
[[File:Intput module TTL2.png|frameless|600px|Input module for TTL interlock signals from Teensy board]]&lt;br /&gt;
&lt;br /&gt;
==== Signal booster ====&lt;br /&gt;
&lt;br /&gt;
The inexpertly designed concept of this modular interlock results in a drop in signal level if too many boards are used in series. This module brings it back up to 5V. In principle it can also be used between input modules, but it&#039;s probably wise to limit a single column to no more than 6 input modules.&lt;br /&gt;
&lt;br /&gt;
==== Bottom distribution ====&lt;br /&gt;
&lt;br /&gt;
This is not actually a separate module, but a feature common to both output modules below.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SW1&#039;&#039;&#039; switches between &#039;&#039;normal mode&#039;&#039; &#039;&#039;&#039;B&#039;&#039;&#039;, where the signal from the column above gets used to switch this output module and any below it, and &#039;&#039;daisychain mode&#039;&#039; &#039;&#039;&#039;A&#039;&#039;&#039;, where the signal from the column above gets sent back to the top to serve as the input of the next column, while this output module receives its input from the output module to its right.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 1:&#039;&#039;&#039; this requires SW1 in this column&#039;s &#039;&#039;top dist&#039;&#039; board to be in the &#039;&#039;daisychain&#039;&#039; position.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 2:&#039;&#039;&#039; only the top-most output module should ever have SW1 in position &#039;&#039;&#039;A&#039;&#039;&#039;, unless you really know what you&#039;re doing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Individual Output ====&lt;br /&gt;
&lt;br /&gt;
This module provides two-pin connectors to connect to individual devices. They behave just like if a switching sensor was directly plugged into the device, with two key differences:&lt;br /&gt;
&lt;br /&gt;
# they latch, so even if the condition that triggered the interlock gets remedied, they need to be reset manually, using a push button above each connector&lt;br /&gt;
# they can be switched between &#039;&#039;normally open&#039;&#039; (&#039;&#039;&#039;NO&#039;&#039;&#039;) mode and &#039;&#039;normally closed&#039;&#039; (&#039;&#039;&#039;NC&#039;&#039;&#039;) mode. The latter is e.g. needed for the AE Techron power supply.&lt;br /&gt;
&lt;br /&gt;
All channels trigger together but need to be reset separately. The red/green LED above each connector shows the state.&lt;br /&gt;
&lt;br /&gt;
[[File:Output general.png|600px|frameless|Individual output interlock module with per-channel latch reset buttons. Not the switches to change a channel from &#039;&#039;normally open&#039;&#039; to &#039;&#039;normally closed&#039;&#039; are on the back]]&lt;br /&gt;
&lt;br /&gt;
==== DSub Output ====&lt;br /&gt;
&lt;br /&gt;
This module is specifically designed to connect to the [[Magnet Control Box]] to provide the interlock signals for the Sorensen SGX power supplies. It has a single LED and reset button for all outputs together.&lt;br /&gt;
&lt;br /&gt;
[[File:Output dsub.png|600px|frameless|DSub interlock output module to connect to Magnet Control Box]]&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Output_dsub.png&amp;diff=75</id>
		<title>File:Output dsub.png</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Output_dsub.png&amp;diff=75"/>
		<updated>2026-03-11T17:33:16Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;DSub interlock output module for connection to Magnet Control Box&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Output_general.png&amp;diff=74</id>
		<title>File:Output general.png</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Output_general.png&amp;diff=74"/>
		<updated>2026-03-11T17:30:39Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Individual latching switch output interlock module&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Intput_module_TTL2.png&amp;diff=73</id>
		<title>File:Intput module TTL2.png</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Intput_module_TTL2.png&amp;diff=73"/>
		<updated>2026-03-11T17:20:46Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TTL input module to receive signals from Teensy monitor board&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Input_moduleA.png&amp;diff=72</id>
		<title>File:Input moduleA.png</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Input_moduleA.png&amp;diff=72"/>
		<updated>2026-03-11T17:16:47Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Individual interlock switch input module 3d view&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Interlock_System&amp;diff=71</id>
		<title>Interlock System</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Interlock_System&amp;diff=71"/>
		<updated>2026-03-11T17:08:17Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Signal booster */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Hazards and degrees of malfunction ==&lt;br /&gt;
&lt;br /&gt;
The HAICU trap contains several hazards to personnel and equipment safety. The main hazards to personnel are posed by the high power magnet power supplies, while the main hazards to equipment also include leaks/faults in the water cooling system leading to magnet overheating and local flooding.&lt;br /&gt;
&lt;br /&gt;
For mitigation purposes it is useful to separate three different degrees of malfunction: noticeable, concerning, and catastrophic. While this latter term is a little dramatic, the real distinction is between gradual changes in behaviour (e.g. the cooling water flow gradually decreases over time, indicating material buildup in the lines), and drastic changes (e.g. water flow on one of the output lines drops to zero, indicating a burst tube, spraying water, or significant reduction one of the small lines, indicating a local clog).&lt;br /&gt;
&lt;br /&gt;
Naturally these need to be handled differently:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type A:&#039;&#039;&#039; &#039;&#039;Catastrophic&#039;&#039; changes are simple thresholds that can be handled entirely in hardware, and trigger and emergency shutdown (&#039;&#039;crowbar&#039;&#039;). They must &#039;&#039;&#039;NEVER&#039;&#039;&#039; go unnoticed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type B:&#039;&#039;&#039; &#039;&#039;Concerning&#039;&#039; changes are also simple thresholds, but typically have finer granularity and adjustability and can benefit from some simple logic, (e.g. &amp;quot;more than 3 flowmeters read low&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type C:&#039;&#039;&#039; &#039;&#039;Noticeable&#039;&#039; changes require some level of analysis of observables over time, and are used to trigger gentle system ramp-downs to prevent more serious damage. These are a first line of defense and thus somewhat redundant. Should one get missed, overall safety (and most importantly &#039;&#039;personnel&#039;&#039; safety) is not compromised.&lt;br /&gt;
&lt;br /&gt;
The interlock system only handles type &#039;&#039;&#039;A&#039;&#039;&#039; and &#039;&#039;&#039;B&#039;&#039;&#039; events, type &#039;&#039;&#039;C&#039;&#039;&#039; is handled in MIDAS.&lt;br /&gt;
&lt;br /&gt;
== Sensors ==&lt;br /&gt;
&lt;br /&gt;
The main concern for hazardous events in this setup is a malfunction or inadequacy in the water cooling system, which could lead to flooding or overheating.&lt;br /&gt;
&lt;br /&gt;
The system is monitored for malfunctions or abnormalities by a variety of sensing systems targeting different observables:&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Flowmeters:&#039;&#039;&#039; these small paddle-wheel flowmeters monitor the flow in all individual cooling water branches and provide a quantitative readout to a microcontroller and from there to MIDAS (&#039;&#039;&#039;B, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Flow Switches:&#039;&#039;&#039; these bulkier flowmeters sit in main water lines and have in-built threshold detection that can directly connect to an interlock system (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermistors:&#039;&#039;&#039; small thermistors are attached in key locations of the magnets and provide a quantitative readout to a microcontroller, much like the flowmeters (&#039;&#039;&#039;B, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermal Switches:&#039;&#039;&#039; bi-metal switches that provide no quantitative information but can directly connect to an interlock system, they can be placed in strategic locations (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermal Monitor Switch:&#039;&#039;&#039; thermistor- or thermocouple-reading box that provides a quantitative readout and and internal threshold, low granularity (&#039;&#039;optional&#039;&#039;, &#039;&#039;&#039;A, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Level Switches:&#039;&#039;&#039; simple float switches that trigger if the water in the leak-catching enclosure rises too high (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Leak Sensors:&#039;&#039;&#039; resistive wetness-sensing switches that can connect directly to an interlock system and can be placed on the floor in strategic locations (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
== Output/Switching ==&lt;br /&gt;
&lt;br /&gt;
The main two things the interlock system needs to control are the magnet power supplies and the main water supply. Most interlock conditions that do not indicate a leak will simply turn off the magnet power supplies to prevent overheating, while leak detection additionally closes the main water valve to minimize flooding, and shuts down other sensitive electronics.&lt;br /&gt;
&lt;br /&gt;
Technically this is typically achieved by opening or closing a switch connecting two control pins on the device in question.&lt;br /&gt;
&lt;br /&gt;
== Modular Interlock System ==&lt;br /&gt;
&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
&lt;br /&gt;
One big requirement for an interlock system like this is, that it &#039;&#039;fails safe&#039;&#039;, i.e. a loss of power in the interlock system itself, or the cutting or disconnection of a wire, leads to the safe &#039;&#039;&#039;locked&#039;&#039;&#039; condition, rather than the &#039;&#039;&#039;all clear&#039;&#039;&#039;. Additionally the core interlock system should require no programming to minimize the possibility of bugs.&lt;br /&gt;
&lt;br /&gt;
In the HAICU interlock system, the interlock logic is modeled by relays in series. In order for the &#039;&#039;&#039;all clear&#039;&#039;&#039; to be given, voltage must pass through a series of &#039;&#039;normally open&#039;&#039; relays that each actively get switched closed by one of the above sensors. Each input has a manual bypass switch do allow for the manual deactivation of individual inputs.&lt;br /&gt;
&lt;br /&gt;
Finally the interlock system &#039;&#039;&#039;must&#039;&#039;&#039; latch. This means that, once triggered, the system does not go back into the &#039;&#039;&#039;all clear&#039;&#039;&#039; condition without human intervention. This is achieved by a separate output module.&lt;br /&gt;
&lt;br /&gt;
=== Modules ===&lt;br /&gt;
&lt;br /&gt;
Since the number of inputs and outputs to the system may change, it was decided to go with a modular approach instead of a single PCB. The following sections describe the individual modules.&lt;br /&gt;
&lt;br /&gt;
Schematics and kiCad projects for these modules can be found [https://gitlab.triumf.ca/haicu/haicu_control_electronics in the gitlab repo].&lt;br /&gt;
&lt;br /&gt;
[[File:Intlk scheme.svg|thumb|Concept scheme of the modular interlock. Columns can be used in parallel (green A configuration) or in series (red B configuration). Input modules can also be put above top dist board, but this is not currently used. &#039;&#039;Bottom dist&#039;&#039; is not actually a separate board, but a feature common to both output modules]]&lt;br /&gt;
&lt;br /&gt;
==== Power ====&lt;br /&gt;
&lt;br /&gt;
The power module generates the 3.3V needed for TTL communication and 2.2V for the LEDs out of 5V supply voltage. It also supplies 5V to the signal input of the following module.&lt;br /&gt;
&lt;br /&gt;
[[File:Intlk power conn.png|thumb|alt=Top to bottom: ground, Vdd, signal, signal, Vee, Vcc|Power module pinout for the modular interlock]]&lt;br /&gt;
&lt;br /&gt;
==== Top distribution ====&lt;br /&gt;
&lt;br /&gt;
The top distribution board distributes power and signals to columns of interlock modules.&lt;br /&gt;
&lt;br /&gt;
Manual switches can configure the signal path. The signal flow schematic is printed on the board.&lt;br /&gt;
* &#039;&#039;&#039;SW2&#039;&#039;&#039; decides whether input comes from &amp;quot;global interlocks&amp;quot;, which can come from input modules above or from &#039;&#039;top dist&#039;&#039; modules to the left, switchable by &#039;&#039;&#039;SW3&#039;&#039;&#039;.&lt;br /&gt;
* &#039;&#039;&#039;SW1&#039;&#039;&#039; decides whether the next &#039;&#039;top dist&#039;&#039; module to the right gets the same input as this column, or the forwarded &#039;&#039;output&#039;&#039; of this column (requires another switch in &#039;&#039;bottom dist&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
==== Switch Input ====&lt;br /&gt;
&lt;br /&gt;
The switch input module (schematic &#039;&#039;input_moduleA&#039;&#039;) provides two-pin connectors that any switch-style sensors can be connected to. The understanding is that a closed connection signifies a satisfied interlock condition. The large LED below each connector shines green if the condition is met or red if it is not. Below each connector there is a bypass switch, which allows to deactivate that input. The small yellow LED next to the switch is on for bypassed condition. Note the large LED will be green if bypassed.&lt;br /&gt;
&lt;br /&gt;
There is a ribbon connector reporting the state of each channel as a TTL level to the watchdog device described below.&lt;br /&gt;
&lt;br /&gt;
==== TTL Input ====&lt;br /&gt;
&lt;br /&gt;
The TTL input module does not connect to standard switch-style sensors, but instead expects TTL 3.3V levels, which it receives from a Teensy board measuring temperatures or flow rates. It, too, has 5 red/green LEDs indicating interlock status of each channel and 5 bypass switches with yellow LEDs. In contrast to the switch input module, the red/green LED still reflects input status, even if the bypass is active.&lt;br /&gt;
&lt;br /&gt;
This module has the same watchdog connector as the other input module.&lt;br /&gt;
&lt;br /&gt;
==== Signal booster ====&lt;br /&gt;
&lt;br /&gt;
The inexpertly designed concept of this modular interlock results in a drop in signal level if too many boards are used in series. This module brings it back up to 5V. In principle it can also be used between input modules, but it&#039;s probably wise to limit a single column to no more than 6 input modules.&lt;br /&gt;
&lt;br /&gt;
==== Bottom distribution ====&lt;br /&gt;
&lt;br /&gt;
This is not actually a separate module, but a feature common to both output modules below.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SW1&#039;&#039;&#039; switches between &#039;&#039;normal mode&#039;&#039; &#039;&#039;&#039;B&#039;&#039;&#039;, where the signal from the column above gets used to switch this output module and any below it, and &#039;&#039;daisychain mode&#039;&#039; &#039;&#039;&#039;A&#039;&#039;&#039;, where the signal from the column above gets sent back to the top to serve as the input of the next column, while this output module receives its input from the output module to its right.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 1:&#039;&#039;&#039; this requires SW1 in this column&#039;s &#039;&#039;top dist&#039;&#039; board to be in the &#039;&#039;daisychain&#039;&#039; position.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 2:&#039;&#039;&#039; only the top-most output module should ever have SW1 in position &#039;&#039;&#039;A&#039;&#039;&#039;, unless you really know what you&#039;re doing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Individual Output ====&lt;br /&gt;
&lt;br /&gt;
This module provides two-pin connectors to connect to individual devices. They behave just like if a switching sensor was directly plugged into the device, with two key differences:&lt;br /&gt;
&lt;br /&gt;
# they latch, so even if the condition that triggered the interlock gets remedied, they need to be reset manually, using a push button above each connector&lt;br /&gt;
# they can be switched between &#039;&#039;normally open&#039;&#039; (&#039;&#039;&#039;NO&#039;&#039;&#039;) mode and &#039;&#039;normally closed&#039;&#039; (&#039;&#039;&#039;NC&#039;&#039;&#039;) mode. The latter is e.g. needed for the AE Techron power supply.&lt;br /&gt;
&lt;br /&gt;
All channels trigger together but need to be reset separately. The red/green LED above each connector shows the state.&lt;br /&gt;
&lt;br /&gt;
==== DSub Output ====&lt;br /&gt;
&lt;br /&gt;
This module is specifically designed to connect to the [[Magnet Control Box]] to provide the interlock signals for the Sorensen SGX power supplies. It has a single LED and reset button for all outputs together.&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=Interlock_System&amp;diff=70</id>
		<title>Interlock System</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=Interlock_System&amp;diff=70"/>
		<updated>2026-03-11T00:16:30Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: /* Modules */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Hazards and degrees of malfunction ==&lt;br /&gt;
&lt;br /&gt;
The HAICU trap contains several hazards to personnel and equipment safety. The main hazards to personnel are posed by the high power magnet power supplies, while the main hazards to equipment also include leaks/faults in the water cooling system leading to magnet overheating and local flooding.&lt;br /&gt;
&lt;br /&gt;
For mitigation purposes it is useful to separate three different degrees of malfunction: noticeable, concerning, and catastrophic. While this latter term is a little dramatic, the real distinction is between gradual changes in behaviour (e.g. the cooling water flow gradually decreases over time, indicating material buildup in the lines), and drastic changes (e.g. water flow on one of the output lines drops to zero, indicating a burst tube, spraying water, or significant reduction one of the small lines, indicating a local clog).&lt;br /&gt;
&lt;br /&gt;
Naturally these need to be handled differently:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type A:&#039;&#039;&#039; &#039;&#039;Catastrophic&#039;&#039; changes are simple thresholds that can be handled entirely in hardware, and trigger and emergency shutdown (&#039;&#039;crowbar&#039;&#039;). They must &#039;&#039;&#039;NEVER&#039;&#039;&#039; go unnoticed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type B:&#039;&#039;&#039; &#039;&#039;Concerning&#039;&#039; changes are also simple thresholds, but typically have finer granularity and adjustability and can benefit from some simple logic, (e.g. &amp;quot;more than 3 flowmeters read low&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Type C:&#039;&#039;&#039; &#039;&#039;Noticeable&#039;&#039; changes require some level of analysis of observables over time, and are used to trigger gentle system ramp-downs to prevent more serious damage. These are a first line of defense and thus somewhat redundant. Should one get missed, overall safety (and most importantly &#039;&#039;personnel&#039;&#039; safety) is not compromised.&lt;br /&gt;
&lt;br /&gt;
The interlock system only handles type &#039;&#039;&#039;A&#039;&#039;&#039; and &#039;&#039;&#039;B&#039;&#039;&#039; events, type &#039;&#039;&#039;C&#039;&#039;&#039; is handled in MIDAS.&lt;br /&gt;
&lt;br /&gt;
== Sensors ==&lt;br /&gt;
&lt;br /&gt;
The main concern for hazardous events in this setup is a malfunction or inadequacy in the water cooling system, which could lead to flooding or overheating.&lt;br /&gt;
&lt;br /&gt;
The system is monitored for malfunctions or abnormalities by a variety of sensing systems targeting different observables:&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Flowmeters:&#039;&#039;&#039; these small paddle-wheel flowmeters monitor the flow in all individual cooling water branches and provide a quantitative readout to a microcontroller and from there to MIDAS (&#039;&#039;&#039;B, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Flow Switches:&#039;&#039;&#039; these bulkier flowmeters sit in main water lines and have in-built threshold detection that can directly connect to an interlock system (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermistors:&#039;&#039;&#039; small thermistors are attached in key locations of the magnets and provide a quantitative readout to a microcontroller, much like the flowmeters (&#039;&#039;&#039;B, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermal Switches:&#039;&#039;&#039; bi-metal switches that provide no quantitative information but can directly connect to an interlock system, they can be placed in strategic locations (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Thermal Monitor Switch:&#039;&#039;&#039; thermistor- or thermocouple-reading box that provides a quantitative readout and and internal threshold, low granularity (&#039;&#039;optional&#039;&#039;, &#039;&#039;&#039;A, C&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Level Switches:&#039;&#039;&#039; simple float switches that trigger if the water in the leak-catching enclosure rises too high (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
# &#039;&#039;&#039;Leak Sensors:&#039;&#039;&#039; resistive wetness-sensing switches that can connect directly to an interlock system and can be placed on the floor in strategic locations (&#039;&#039;&#039;A&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
== Output/Switching ==&lt;br /&gt;
&lt;br /&gt;
The main two things the interlock system needs to control are the magnet power supplies and the main water supply. Most interlock conditions that do not indicate a leak will simply turn off the magnet power supplies to prevent overheating, while leak detection additionally closes the main water valve to minimize flooding, and shuts down other sensitive electronics.&lt;br /&gt;
&lt;br /&gt;
Technically this is typically achieved by opening or closing a switch connecting two control pins on the device in question.&lt;br /&gt;
&lt;br /&gt;
== Modular Interlock System ==&lt;br /&gt;
&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
&lt;br /&gt;
One big requirement for an interlock system like this is, that it &#039;&#039;fails safe&#039;&#039;, i.e. a loss of power in the interlock system itself, or the cutting or disconnection of a wire, leads to the safe &#039;&#039;&#039;locked&#039;&#039;&#039; condition, rather than the &#039;&#039;&#039;all clear&#039;&#039;&#039;. Additionally the core interlock system should require no programming to minimize the possibility of bugs.&lt;br /&gt;
&lt;br /&gt;
In the HAICU interlock system, the interlock logic is modeled by relays in series. In order for the &#039;&#039;&#039;all clear&#039;&#039;&#039; to be given, voltage must pass through a series of &#039;&#039;normally open&#039;&#039; relays that each actively get switched closed by one of the above sensors. Each input has a manual bypass switch do allow for the manual deactivation of individual inputs.&lt;br /&gt;
&lt;br /&gt;
Finally the interlock system &#039;&#039;&#039;must&#039;&#039;&#039; latch. This means that, once triggered, the system does not go back into the &#039;&#039;&#039;all clear&#039;&#039;&#039; condition without human intervention. This is achieved by a separate output module.&lt;br /&gt;
&lt;br /&gt;
=== Modules ===&lt;br /&gt;
&lt;br /&gt;
Since the number of inputs and outputs to the system may change, it was decided to go with a modular approach instead of a single PCB. The following sections describe the individual modules.&lt;br /&gt;
&lt;br /&gt;
Schematics and kiCad projects for these modules can be found [https://gitlab.triumf.ca/haicu/haicu_control_electronics in the gitlab repo].&lt;br /&gt;
&lt;br /&gt;
[[File:Intlk scheme.svg|thumb|Concept scheme of the modular interlock. Columns can be used in parallel (green A configuration) or in series (red B configuration). Input modules can also be put above top dist board, but this is not currently used. &#039;&#039;Bottom dist&#039;&#039; is not actually a separate board, but a feature common to both output modules]]&lt;br /&gt;
&lt;br /&gt;
==== Power ====&lt;br /&gt;
&lt;br /&gt;
The power module generates the 3.3V needed for TTL communication and 2.2V for the LEDs out of 5V supply voltage. It also supplies 5V to the signal input of the following module.&lt;br /&gt;
&lt;br /&gt;
[[File:Intlk power conn.png|thumb|alt=Top to bottom: ground, Vdd, signal, signal, Vee, Vcc|Power module pinout for the modular interlock]]&lt;br /&gt;
&lt;br /&gt;
==== Top distribution ====&lt;br /&gt;
&lt;br /&gt;
The top distribution board distributes power and signals to columns of interlock modules.&lt;br /&gt;
&lt;br /&gt;
Manual switches can configure the signal path. The signal flow schematic is printed on the board.&lt;br /&gt;
* &#039;&#039;&#039;SW2&#039;&#039;&#039; decides whether input comes from &amp;quot;global interlocks&amp;quot;, which can come from input modules above or from &#039;&#039;top dist&#039;&#039; modules to the left, switchable by &#039;&#039;&#039;SW3&#039;&#039;&#039;.&lt;br /&gt;
* &#039;&#039;&#039;SW1&#039;&#039;&#039; decides whether the next &#039;&#039;top dist&#039;&#039; module to the right gets the same input as this column, or the forwarded &#039;&#039;output&#039;&#039; of this column (requires another switch in &#039;&#039;bottom dist&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
==== Switch Input ====&lt;br /&gt;
&lt;br /&gt;
The switch input module (schematic &#039;&#039;input_moduleA&#039;&#039;) provides two-pin connectors that any switch-style sensors can be connected to. The understanding is that a closed connection signifies a satisfied interlock condition. The large LED below each connector shines green if the condition is met or red if it is not. Below each connector there is a bypass switch, which allows to deactivate that input. The small yellow LED next to the switch is on for bypassed condition. Note the large LED will be green if bypassed.&lt;br /&gt;
&lt;br /&gt;
There is a ribbon connector reporting the state of each channel as a TTL level to the watchdog device described below.&lt;br /&gt;
&lt;br /&gt;
==== TTL Input ====&lt;br /&gt;
&lt;br /&gt;
The TTL input module does not connect to standard switch-style sensors, but instead expects TTL 3.3V levels, which it receives from a Teensy board measuring temperatures or flow rates. It, too, has 5 red/green LEDs indicating interlock status of each channel and 5 bypass switches with yellow LEDs. In contrast to the switch input module, the red/green LED still reflects input status, even if the bypass is active.&lt;br /&gt;
&lt;br /&gt;
This module has the same watchdog connector as the other input module.&lt;br /&gt;
&lt;br /&gt;
==== Signal booster ====&lt;br /&gt;
&lt;br /&gt;
The inexpertly designed concept of this modular interlock results in a drop in signal level if too many boards are used in series. This module brings it back up to 5V.&lt;br /&gt;
&lt;br /&gt;
==== Bottom distribution ====&lt;br /&gt;
&lt;br /&gt;
This is not actually a separate module, but a feature common to both output modules below.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SW1&#039;&#039;&#039; switches between &#039;&#039;normal mode&#039;&#039; &#039;&#039;&#039;B&#039;&#039;&#039;, where the signal from the column above gets used to switch this output module and any below it, and &#039;&#039;daisychain mode&#039;&#039; &#039;&#039;&#039;A&#039;&#039;&#039;, where the signal from the column above gets sent back to the top to serve as the input of the next column, while this output module receives its input from the output module to its right.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 1:&#039;&#039;&#039; this requires SW1 in this column&#039;s &#039;&#039;top dist&#039;&#039; board to be in the &#039;&#039;daisychain&#039;&#039; position.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note 2:&#039;&#039;&#039; only the top-most output module should ever have SW1 in position &#039;&#039;&#039;A&#039;&#039;&#039;, unless you really know what you&#039;re doing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Individual Output ====&lt;br /&gt;
&lt;br /&gt;
This module provides two-pin connectors to connect to individual devices. They behave just like if a switching sensor was directly plugged into the device, with two key differences:&lt;br /&gt;
&lt;br /&gt;
# they latch, so even if the condition that triggered the interlock gets remedied, they need to be reset manually, using a push button above each connector&lt;br /&gt;
# they can be switched between &#039;&#039;normally open&#039;&#039; (&#039;&#039;&#039;NO&#039;&#039;&#039;) mode and &#039;&#039;normally closed&#039;&#039; (&#039;&#039;&#039;NC&#039;&#039;&#039;) mode. The latter is e.g. needed for the AE Techron power supply.&lt;br /&gt;
&lt;br /&gt;
All channels trigger together but need to be reset separately. The red/green LED above each connector shows the state.&lt;br /&gt;
&lt;br /&gt;
==== DSub Output ====&lt;br /&gt;
&lt;br /&gt;
This module is specifically designed to connect to the [[Magnet Control Box]] to provide the interlock signals for the Sorensen SGX power supplies. It has a single LED and reset button for all outputs together.&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Intlk_scheme.svg&amp;diff=69</id>
		<title>File:Intlk scheme.svg</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Intlk_scheme.svg&amp;diff=69"/>
		<updated>2026-03-10T23:12:48Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: Lmartin uploaded a new version of File:Intlk scheme.svg&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Modular interlock scheme&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Intlk_scheme.svg&amp;diff=68</id>
		<title>File:Intlk scheme.svg</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Intlk_scheme.svg&amp;diff=68"/>
		<updated>2026-03-10T23:10:21Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Modular interlock scheme&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
	<entry>
		<id>https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Intlk_power_conn.png&amp;diff=67</id>
		<title>File:Intlk power conn.png</title>
		<link rel="alternate" type="text/html" href="https://daq00.triumf.ca/HaicuWiki/index.php?title=File:Intlk_power_conn.png&amp;diff=67"/>
		<updated>2026-03-10T22:24:12Z</updated>

		<summary type="html">&lt;p&gt;Lmartin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Power connector pinout for the modular interlock&lt;/div&gt;</summary>
		<author><name>Lmartin</name></author>
	</entry>
</feed>