<root>
<document schema='101' license='50,Dev User,XDKHX7' title='' description='' target='PIC.16F.16F1937' >
	<config data='!0,fe2!10,1633%0,2%3,0%5,1%6,1%7,1%8,1%9,3%b,1%c,0%d,0%10,3%14,3%18,0%19,1%1a,1%1c,1%1d,0' clkspd='19660800' simspd='1' usewdt='0' constif='0' />
	<plugins >
		<dll_dbg_icd enabled='0' >
			<data name='debug' value='1' />
			<data name='userpins' value='0' />
			<data name='speed' value='0' />
			<data name='usev9' value='0' />
			<data name='breaks' value='8' />
			<data name='stacks' value='8' />
			<data name='clkport' value='1' />
			<data name='clkbit' value='6' />
			<data name='dataport' value='1' />
			<data name='databit' value='7' />
			<data name='ghostype' value='0' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
			<data name='anlpres' value='255' />
			<data name='digmask1' value='-1' />
			<data name='digmask2' value='-1' />
		</dll_dbg_icd>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
		<dll_webhelp enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='x' />
		<watch expr='adc' />
	</debug>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='5834f8b3-fef3-4546-b5bc-5e0614719cf0' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='mux16' description='' category='Misc' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' iconpath='' />
		<component class_type='root' codename='mux16' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events >
				<event class='Components' event='Initialise' target='Ev_Initialise' />
			</events>
			<apis >
				<api name='ReadValue' alt='ReadValueSim' type='1' proto='1' />
			</apis>
			<variables >
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='adc' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='x' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Ev_Initialise' description='Initialisation routine for the component once the component is linked to its parent' >
						<return name='Return' type='u32' description='Non-zero to prevent initialisation' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Component Macro' component='slider1' macro='SetRange' >
							<argument exp='0' />
							<argument exp='1023' />
						</command>
						<command class_type='sim' title='Call Component Macro' component='slider1' macro='ShowScale' >
							<argument exp='1' />
						</command>
						<command class_type='sim' title='Call Component Macro' component='slider2' macro='SetRange' >
							<argument exp='0' />
							<argument exp='1023' />
						</command>
						<command class_type='sim' title='Call Component Macro' component='slider2' macro='ShowScale' >
							<argument exp='1' />
						</command>
						<command class_type='sim' title='Call Component Macro' component='slider3' macro='SetRange' >
							<argument exp='0' />
							<argument exp='1023' />
						</command>
						<command class_type='sim' title='Call Component Macro' component='slider3' macro='ShowScale' >
							<argument exp='1' />
						</command>
						<command class_type='sim' title='Call Component Macro' component='slider4' macro='SetRange' >
							<argument exp='0' />
							<argument exp='1023' />
						</command>
						<command class_type='sim' title='Call Component Macro' component='slider4' macro='ShowScale' >
							<argument exp='1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ReadValueSim' description='' >
						<return name='Return' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='channel' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='fval' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
						<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='.channel' >
							<case >
								<flowline >
									<command class_type='sim' title='Call Component Macro' component='slider1' macro='GetValue' >
										<return exp='.fval' />
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='sim' title='Call Component Macro' component='slider2' macro='GetValue' >
										<return exp='.fval' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='sim' title='Call Component Macro' component='slider3' macro='GetValue' >
										<return exp='.fval' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='sim' title='Call Component Macro' component='slider4' macro='GetValue' >
										<return exp='.fval' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Return = float2int (.fval * 1024.0)' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ReadValue' description='' >
						<return name='Return' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='channel' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='output' title='Output' mode='0' port='1048578' mask='0' exp='.channel' />
						<command class_type='call' title='Call Component Macro' component='pot_color_cap1' macro='GetInt' >
							<return exp='.Return' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='0d074f2e-5ff6-45d2-a0a8-1b5c3aa34e41' vmin='1' vmaj='1' codename='slider1' x='-72' y='8' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values />
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='0d074f2e-5ff6-45d2-a0a8-1b5c3aa34e41' vmin='1' vmaj='1' codename='slider2' x='-56' y='8' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values />
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='0d074f2e-5ff6-45d2-a0a8-1b5c3aa34e41' vmin='1' vmaj='1' codename='slider3' x='-40' y='8' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values />
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='0d074f2e-5ff6-45d2-a0a8-1b5c3aa34e41' vmin='1' vmaj='1' codename='slider4' x='-24' y='8' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values />
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='14683ea8-5a08-4b3a-be2d-3dea3e17e720' vmin='3' vmaj='1' codename='pot_color_cap1' x='-24' y='64' z='0' xsz='25.1419' ysz='25.1419' zsz='18.45' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='0' interactive='1' solid='1' layer='0' poslock='1' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='cap_color' data='192' />
					<value target='point_color' data='16777215' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='0' />
					<value target='vrefvol' data='500' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='003' />
					<value target='actime' data='40' />
					<value target='bits' data='10' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='9737364' img='' style='0' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='25' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAkwMAAFQCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ReadValueSim' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAkwMAAFQCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_Initialise' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAkwMAAFQCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='GetValue' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAkwMAAFQCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ReadValue' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAkwMAAFQCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
