<?xml version="1.0" encoding="iso-8859-1"?>
<system type="pyramid">
	<hosts>
		<host ip="192.168.100.20" name="IG2" localhost="true" />
	</hosts>
	<loopcontrollers>
		<loopcontroller type="F460" name="F460_1" ip="192.168.100.20">
			<channels>
				<!-- The 4 current inputs on the F460. Units are in Amps -->
				<channel name="r_f460_1_ch_1" wire="analog_in_channel_1" />
				<channel name="r_f460_1_ch_2" wire="analog_in_channel_2" />
				<channel name="r_f460_1_ch_3" wire="analog_in_channel_3" />
				<channel name="r_f460_1_ch_4" wire="analog_in_channel_4" />
				<channel name="r_f460_1_cur_1" wire="analog_in_current_1" />
				<channel name="r_f460_1_cur_2" wire="analog_in_current_2" />
				<channel name="r_f460_1_cur_3" wire="analog_in_current_3" />
				<channel name="r_f460_1_cur_4" wire="analog_in_current_4" />

				<!-- The auxilary analog inputs for the F460 -->
				<channel name="r_f460_1_ADC_in_Volt1" wire="analog_in_1" />
				<channel name="r_f460_1_ADC_in_Volt2" wire="analog_in_2" />

				<!-- The auxilary analog outputs for the F460 -->
				<channel name="c_f460_1_analog_out_1" wire="analog_out_1" />
				<channel name="c_f460_1_analog_out_2" wire="analog_out_2" />
				<channel name="c_f460_1_analog_out_3" wire="analog_out_3" />
				<channel name="c_f460_1_analog_out_4" wire="analog_out_4" />

				<!-- Enables the high voltage module 1/true = enabled, 0/false = disabled -->
				<channel name="c_f460_1_bias_enable" wire="digital_out_bias_enable" />
				<!-- Commands the high voltage module to the given voltage -->
				<channel name="c_f460_1_bias_command" wire="analog_out_bias" />
				<!-- The readback for the high voltage monitor -->
				<channel name="c_f460_1_bias_readback" wire="analog_in_bias" />

				<!-- This channel commands the F460 to start acquiring data -->
				<!-- The "init" attribute is written to the channel when IG2 starts -->
				<channel name="c_f460_1_initiate" wire="digital_out_initiate" init="true"/>

				<!-- This channel relfects the device state. -->
				<!-- 0: Connected with no error -->
				<!-- 1: Not connected -->
				<!-- 2: Connected but waiting for configuration -->
				<!-- 3: Connected with active error -->
				<!-- The error state (3) does not affect device functionality and can be cleared in diagnostics -->
				<channel name="r_f460_1_device_state" wire="int_in_device_state"/>

				<!-- Channels for accessing meta-data about the device -->
				<channel name="r_f460_firmware" wire="string_in_firmware" />
				<channel name="r_f460_serial_num" wire="string_in_serial_num" />
				<channel name="r_f460_Hardware_rev" wire="string_in_hardware_rev" />
			</channels>
		</loopcontroller>
	</loopcontrollers>

	<interpreter>
		<devices>
			<!-- This node enables the EPICS server -->
			<epicscas type="epicscas" name="epics_server" />
		</devices>
	</interpreter>
</system>