<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://cmbr.phas.ubc.ca/mcewiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=154.20.80.47</id>
	<title>MCEWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://cmbr.phas.ubc.ca/mcewiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=154.20.80.47"/>
	<link rel="alternate" type="text/html" href="https://cmbr.phas.ubc.ca/mcewiki/index.php/Special:Contributions/154.20.80.47"/>
	<updated>2026-09-17T01:08:43Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.16</generator>
	<entry>
		<id>https://cmbr.phas.ubc.ca/mcewiki/index.php?title=Sync_Box&amp;diff=2146</id>
		<title>Sync Box</title>
		<link rel="alternate" type="text/html" href="https://cmbr.phas.ubc.ca/mcewiki/index.php?title=Sync_Box&amp;diff=2146"/>
		<updated>2008-07-10T01:56:27Z</updated>

		<summary type="html">&lt;p&gt;154.20.80.47: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Sync Box Firmware ==&lt;br /&gt;
Fill this in..&lt;br /&gt;
&lt;br /&gt;
== Issue commands to the Sync Box ==&lt;br /&gt;
To issue commands to a sync box over an RS-232 line, you can use a Linux program called 'MiniCom'.  To install this application, type the following:&lt;br /&gt;
 &amp;gt; apt-get install...&lt;br /&gt;
To start MiniCom:&lt;br /&gt;
 &amp;gt; sudo minicom&lt;br /&gt;
Minicom needs the following options changed for it to work properly:&lt;br /&gt;
 &amp;gt; &amp;lt;ctrl-a&amp;gt;, &amp;lt;z&amp;gt;, &amp;lt;a&amp;gt;&lt;br /&gt;
 &amp;gt; &amp;lt;ctrl-a&amp;gt;, &amp;lt;z&amp;gt;, &amp;lt;o&amp;gt;, &amp;lt;Serial port setup&amp;gt; &amp;lt;Serial Device&amp;gt; = /dev/ttyS0&lt;br /&gt;
 &amp;gt; &amp;lt;ctrl-a&amp;gt;, &amp;lt;z&amp;gt;, &amp;lt;o&amp;gt;, &amp;lt;Serial port setup&amp;gt; &amp;lt;Bps/Par/Bits&amp;gt; = 9600 8N1&lt;br /&gt;
 &amp;gt; &amp;lt;ctrl-a&amp;gt;, &amp;lt;z&amp;gt;, &amp;lt;o&amp;gt;, &amp;lt;Serial port setup&amp;gt; &amp;lt;Hardware Flow Control&amp;gt; = No&lt;br /&gt;
 &amp;gt; &amp;lt;ctrl-a&amp;gt;, &amp;lt;z&amp;gt;, &amp;lt;o&amp;gt;, &amp;lt;Serial port setup&amp;gt; &amp;lt;Software Flow Control&amp;gt; = No&lt;br /&gt;
 &amp;gt; &amp;lt;ctrl-a&amp;gt;, &amp;lt;z&amp;gt;, &amp;lt;o&amp;gt;, &amp;lt;Modem and dialing&amp;gt; &amp;lt;Modem has DCD line&amp;gt; = No&lt;br /&gt;
After you modify these settings, remember to save, exit, and restart Minicom.&lt;/div&gt;</summary>
		<author><name>154.20.80.47</name></author>
		
	</entry>
	<entry>
		<id>https://cmbr.phas.ubc.ca/mcewiki/index.php?title=MCE_firmware&amp;diff=2145</id>
		<title>MCE firmware</title>
		<link rel="alternate" type="text/html" href="https://cmbr.phas.ubc.ca/mcewiki/index.php?title=MCE_firmware&amp;diff=2145"/>
		<updated>2008-07-10T01:55:15Z</updated>

		<summary type="html">&lt;p&gt;154.20.80.47: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Always cleanly reset the MCE after a power-up or a reconfiguration!  If you do not, MCE communication with the PC may not work.  &lt;br /&gt;
 &amp;gt; mce_reset_clean&lt;br /&gt;
&lt;br /&gt;
Note that after a reset, not all of the DAC outputs are reset to zero.  In addition, values written to RAM-based registers are not reset. To reset these registers, a full reconfiguration is required.&lt;br /&gt;
 &amp;gt; rs psc cycle_pow 1&lt;br /&gt;
 &amp;gt; mce_reset_clean&lt;br /&gt;
&lt;br /&gt;
== MCE Firmware Release Information ==&lt;br /&gt;
* [[ MCE Firmware Catalog ]]&lt;br /&gt;
* [[ MCE Untested features ]]&lt;br /&gt;
* [[ MCE bugs ]]&lt;br /&gt;
&lt;br /&gt;
== MCE Features and How-To Guides ==&lt;br /&gt;
* [[ Digital 4-pole Butterworth Low-pass filter ]]&lt;br /&gt;
* [[ Flux jumping ]]&lt;br /&gt;
* [[ Raw-mode readout ]]&lt;br /&gt;
* [[ High rate acquisition ]]&lt;br /&gt;
* [[ Fast SQ2 Feedback and TES Biasing with an Address Card ]]&lt;br /&gt;
* [[ The STOP Command ]]&lt;br /&gt;
&lt;br /&gt;
== Hardware Peripherals ==&lt;br /&gt;
* [[ Using Ethernet Blaster ]]&lt;br /&gt;
* [[ USB Blaster ]]&lt;br /&gt;
* [[ Sync Box ]]&lt;br /&gt;
* [[ MCE special configurations | Information on Sync Box and Biasing AC (needs merging) ]]&lt;br /&gt;
&lt;br /&gt;
== Software Tools ==&lt;br /&gt;
All that you need to know about logging into our CVS repository can be found here:&lt;br /&gt;
* [[ CVS Firmware Repository ]]&lt;br /&gt;
* [[ Quartus II Installation ]]&lt;br /&gt;
* [[ ModelSim SE Installation ]] (from scratch)&lt;br /&gt;
&lt;br /&gt;
We decided (sadly) NOT to migrate from CVS to SVN, if we ever do here is some information:&lt;br /&gt;
* [http://svnbook.red-bean.com/en/1.4/ SVN Manual]&lt;br /&gt;
* [[ Firmware Accessing the svn repository | Accessing the SVN Repository ]]&lt;br /&gt;
* [[ Firmware svn commit guidelines | SVN Commit Guidelines ]]&lt;br /&gt;
* SVN Basic Operations&lt;br /&gt;
** [[ Firmware svn tagging | Tagging ]]&lt;br /&gt;
** [[ Firmware svn merging | Merging ]]&lt;br /&gt;
** [[ Firmware svn branching | Branching ]]&lt;br /&gt;
** [[ Firmware svn undelete | Resurrecting Deleted Items ]]&lt;br /&gt;
&lt;br /&gt;
== Firmware Testing ==&lt;br /&gt;
* [[ MAS Cheat Sheet ]]&lt;/div&gt;</summary>
		<author><name>154.20.80.47</name></author>
		
	</entry>
	<entry>
		<id>https://cmbr.phas.ubc.ca/mcewiki/index.php?title=STOP_Command&amp;diff=2144</id>
		<title>STOP Command</title>
		<link rel="alternate" type="text/html" href="https://cmbr.phas.ubc.ca/mcewiki/index.php?title=STOP_Command&amp;diff=2144"/>
		<updated>2008-07-10T01:54:30Z</updated>

		<summary type="html">&lt;p&gt;154.20.80.47: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The stop command was invented to allow users to stop data acquisitions in mid-stream.  There are a variety of reasons for wanting to do so:&lt;br /&gt;
* Malfunction of other subsystems at the telescope&lt;br /&gt;
* Not receiving any DV pulses from the Sync Box or other triggering software&lt;br /&gt;
&lt;br /&gt;
== STOP Command Replies: ==&lt;br /&gt;
The STOP command is supported as a special command in the Clock Card firmware.  Unlike for WB and RB commands, the MCE replies to the STOP command immediately. Data packets continue to be returned following the reply to the STOP command until all of the remaining ret_dat commands are flushed from the MCE.  The last data packet has the 'stop' and 'last_frame' bits set in the status frame header.&lt;br /&gt;
&lt;br /&gt;
== STOP Commands Outside of Data Runs: ==&lt;br /&gt;
When a STOP command is issued outside of a data run, no data packets are returned.  When a STOP command is issued during a data run, the timing of the last data frame does not generally follow the timing that is specified by the '&amp;gt; rb cc data_rate' parameter.  In general, the last ret_dat is queued up as quickly as possible, irrespective of the status of '&amp;gt; rb cc use_dv'.  For example, when the Clock Card is sourcing its DV pulses from the Sync Box, and a STOP command arrives, it does not wait for the next DV pulse -- instead it issues the last ret_dat immediately.  If the Clock Card waited, it might hang if the source of the DV pulses was cut off.&lt;br /&gt;
&lt;br /&gt;
== Testing Challenges ==&lt;br /&gt;
Automating the testing of STOP commands is difficult, because MAS currently blocks commands in a shell that has started a data acquisition.  This means that an automation script must either open a new shell or run mce_cmd in background mode (with an '&amp;amp;') to STOP an acquisition.  In addtion to this, MAS currently does not support commanding the Sync Box, which makes it difficult to test all the different scenarios that could happen. &lt;br /&gt;
&lt;br /&gt;
== Test Cases ==&lt;br /&gt;
The cmd_translator block on the clock card is the block that nominally runs data acquisitions.  It is a complicated piece of code, and requires simulation of at least the following cases:&lt;br /&gt;
* Acquisition of one frame of data&lt;br /&gt;
* Acquisition of multiple frames of data&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box (use_sync=2, use_dv=2, select_clk=1)&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box's input (use_sync=2, use_dv=2, select_clk=1)&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box and disconnecting the Sync Box fibre.&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box with the fibre initially disconnected&lt;br /&gt;
* Acquisition while turing the Sync Box output off and then on.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
All the cases above should be repeated in the following scenarios: &lt;br /&gt;
* a STOP command should be issued before the first frame is returned&lt;br /&gt;
* a STOP command should be issued during the acquisition&lt;br /&gt;
* a STOP command should be issued after the acquisition&lt;br /&gt;
&lt;br /&gt;
== How to Issue STOP Command ==&lt;br /&gt;
From a shell:&lt;br /&gt;
 &amp;gt; mce_cmd -x stop &amp;lt;card_addr&amp;gt; ret_dat&lt;br /&gt;
In MAS' interactive mode:&lt;br /&gt;
 &amp;gt; stop &amp;lt;card_addr&amp;gt; ret_dat&lt;br /&gt;
&lt;br /&gt;
In order to stop the MAS data process only from a shell:&lt;br /&gt;
 &amp;gt; mce_cmd -x fakestop&lt;br /&gt;
&lt;br /&gt;
== Quick Reference ==&lt;br /&gt;
* [[ MAS Cheat Sheet ]]&lt;/div&gt;</summary>
		<author><name>154.20.80.47</name></author>
		
	</entry>
	<entry>
		<id>https://cmbr.phas.ubc.ca/mcewiki/index.php?title=STOP_Command&amp;diff=2143</id>
		<title>STOP Command</title>
		<link rel="alternate" type="text/html" href="https://cmbr.phas.ubc.ca/mcewiki/index.php?title=STOP_Command&amp;diff=2143"/>
		<updated>2008-07-10T01:53:55Z</updated>

		<summary type="html">&lt;p&gt;154.20.80.47: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The stop command was invented to allow users to stop data acquisitions in mid-stream.  There are a variety of reasons for wanting to do so:&lt;br /&gt;
* Malfunction of other subsystems at the telescope&lt;br /&gt;
* Not receiving any DV pulses from the Sync Box or other triggering software&lt;br /&gt;
&lt;br /&gt;
== STOP command replies: ==&lt;br /&gt;
The STOP command is supported as a special command in the Clock Card firmware.  Unlike for WB and RB commands, the MCE replies to the STOP command immediately. Data packets continue to be returned following the reply to the STOP command until all of the remaining ret_dat commands are flushed from the MCE.  The last data packet has the 'stop' and 'last_frame' bits set in the status frame header.&lt;br /&gt;
&lt;br /&gt;
== STOP commands outside of data runs: ==&lt;br /&gt;
When a STOP command is issued outside of a data run, no data packets are returned.  When a STOP command is issued during a data run, the timing of the last data frame does not generally follow the timing that is specified by the '&amp;gt; rb cc data_rate' parameter.  In general, the last ret_dat is queued up as quickly as possible, irrespective of the status of '&amp;gt; rb cc use_dv'.  For example, when the Clock Card is sourcing its DV pulses from the Sync Box, and a STOP command arrives, it does not wait for the next DV pulse -- instead it issues the last ret_dat immediately.  If the Clock Card waited, it might hang if the source of the DV pulses was cut off.&lt;br /&gt;
&lt;br /&gt;
== Testing Challenges ==&lt;br /&gt;
Automating the testing of STOP commands is difficult, because MAS currently blocks commands in a shell that has started a data acquisition.  This means that an automation script must either open a new shell or run mce_cmd in background mode (with an '&amp;amp;') to STOP an acquisition.  In addtion to this, MAS currently does not support commanding the Sync Box, which makes it difficult to test all the different scenarios that could happen. &lt;br /&gt;
&lt;br /&gt;
== Test Cases ==&lt;br /&gt;
The cmd_translator block on the clock card is the block that nominally runs data acquisitions.  It is a complicated piece of code, and requires simulation of at least the following cases:&lt;br /&gt;
* Acquisition of one frame of data&lt;br /&gt;
* Acquisition of multiple frames of data&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box (use_sync=2, use_dv=2, select_clk=1)&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box's input (use_sync=2, use_dv=2, select_clk=1)&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box and disconnecting the Sync Box fibre.&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box with the fibre initially disconnected&lt;br /&gt;
* Acquisition while turing the Sync Box output off and then on.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
All the cases above should be repeated in the following scenarios: &lt;br /&gt;
* a STOP command should be issued before the first frame is returned&lt;br /&gt;
* a STOP command should be issued during the acquisition&lt;br /&gt;
* a STOP command should be issued after the acquisition&lt;br /&gt;
&lt;br /&gt;
== How to Issue STOP Command ==&lt;br /&gt;
From a shell:&lt;br /&gt;
 &amp;gt; mce_cmd -x stop &amp;lt;card_addr&amp;gt; ret_dat&lt;br /&gt;
In MAS' interactive mode:&lt;br /&gt;
 &amp;gt; stop &amp;lt;card_addr&amp;gt; ret_dat&lt;br /&gt;
&lt;br /&gt;
In order to stop the MAS data process only from a shell:&lt;br /&gt;
 &amp;gt; mce_cmd -x fakestop&lt;br /&gt;
&lt;br /&gt;
== Quick Reference ==&lt;br /&gt;
* [[ MAS Cheat Sheet ]]&lt;/div&gt;</summary>
		<author><name>154.20.80.47</name></author>
		
	</entry>
	<entry>
		<id>https://cmbr.phas.ubc.ca/mcewiki/index.php?title=STOP_Command&amp;diff=2142</id>
		<title>STOP Command</title>
		<link rel="alternate" type="text/html" href="https://cmbr.phas.ubc.ca/mcewiki/index.php?title=STOP_Command&amp;diff=2142"/>
		<updated>2008-07-10T01:53:11Z</updated>

		<summary type="html">&lt;p&gt;154.20.80.47: /* Testing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The stop command was invented to allow users to stop data acquisitions in mid-stream.  There are a variety of reasons for wanting to do so:&lt;br /&gt;
* Malfunction of other subsystems at the telescope&lt;br /&gt;
* Not receiving any DV pulses from the Sync Box or other triggering software&lt;br /&gt;
&lt;br /&gt;
== Features ==&lt;br /&gt;
'''STOP command replies:'''&lt;br /&gt;
&lt;br /&gt;
The STOP command is supported as a special command in the Clock Card firmware.  Unlike for WB and RB commands, the MCE replies to the STOP command immediately. Data packets continue to be returned following the reply to the STOP command until all of the remaining ret_dat commands are flushed from the MCE.  The last data packet has the 'stop' and 'last_frame' bits set in the status frame header.&lt;br /&gt;
&lt;br /&gt;
'''STOP commands outside of data runs:'''&lt;br /&gt;
&lt;br /&gt;
When a STOP command is issued outside of a data run, no data packets are returned.  When a STOP command is issued during a data run, the timing of the last data frame does not generally follow the timing that is specified by the '&amp;gt; rb cc data_rate' parameter.  In general, the last ret_dat is queued up as quickly as possible, irrespective of the status of '&amp;gt; rb cc use_dv'.  For example, when the Clock Card is sourcing its DV pulses from the Sync Box, and a STOP command arrives, it does not wait for the next DV pulse -- instead it issues the last ret_dat immediately.  If the Clock Card waited, it might hang if the source of the DV pulses was cut off.&lt;br /&gt;
&lt;br /&gt;
== Testing Challenges ==&lt;br /&gt;
Automating the testing of STOP commands is difficult, because MAS currently blocks commands in a shell that has started a data acquisition.  This means that an automation script must either open a new shell or run mce_cmd in background mode (with an '&amp;amp;') to STOP an acquisition.  In addtion to this, MAS currently does not support commanding the Sync Box, which makes it difficult to test all the different scenarios that could happen. &lt;br /&gt;
&lt;br /&gt;
== Test Cases ==&lt;br /&gt;
The cmd_translator block on the clock card is the block that nominally runs data acquisitions.  It is a complicated piece of code, and requires simulation of at least the following cases:&lt;br /&gt;
* Acquisition of one frame of data&lt;br /&gt;
* Acquisition of multiple frames of data&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box (use_sync=2, use_dv=2, select_clk=1)&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box's input (use_sync=2, use_dv=2, select_clk=1)&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box and disconnecting the Sync Box fibre.&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box with the fibre initially disconnected&lt;br /&gt;
* Acquisition while turing the Sync Box output off and then on.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
All the cases above should be repeated in the following scenarios: &lt;br /&gt;
* a STOP command should be issued before the first frame is returned&lt;br /&gt;
* a STOP command should be issued during the acquisition&lt;br /&gt;
* a STOP command should be issued after the acquisition&lt;br /&gt;
&lt;br /&gt;
== How to Issue STOP Command ==&lt;br /&gt;
From a shell:&lt;br /&gt;
 &amp;gt; mce_cmd -x stop &amp;lt;card_addr&amp;gt; ret_dat&lt;br /&gt;
In MAS' interactive mode:&lt;br /&gt;
 &amp;gt; stop &amp;lt;card_addr&amp;gt; ret_dat&lt;br /&gt;
&lt;br /&gt;
In order to stop the MAS data process only from a shell:&lt;br /&gt;
 &amp;gt; mce_cmd -x fakestop&lt;br /&gt;
&lt;br /&gt;
== Quick Reference ==&lt;br /&gt;
* [[ MAS Cheat Sheet ]]&lt;/div&gt;</summary>
		<author><name>154.20.80.47</name></author>
		
	</entry>
	<entry>
		<id>https://cmbr.phas.ubc.ca/mcewiki/index.php?title=STOP_Command&amp;diff=2141</id>
		<title>STOP Command</title>
		<link rel="alternate" type="text/html" href="https://cmbr.phas.ubc.ca/mcewiki/index.php?title=STOP_Command&amp;diff=2141"/>
		<updated>2008-07-10T01:52:15Z</updated>

		<summary type="html">&lt;p&gt;154.20.80.47: /* Testing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The stop command was invented to allow users to stop data acquisitions in mid-stream.  There are a variety of reasons for wanting to do so:&lt;br /&gt;
* Malfunction of other subsystems at the telescope&lt;br /&gt;
* Not receiving any DV pulses from the Sync Box or other triggering software&lt;br /&gt;
&lt;br /&gt;
== Features ==&lt;br /&gt;
'''STOP command replies:'''&lt;br /&gt;
&lt;br /&gt;
The STOP command is supported as a special command in the Clock Card firmware.  Unlike for WB and RB commands, the MCE replies to the STOP command immediately. Data packets continue to be returned following the reply to the STOP command until all of the remaining ret_dat commands are flushed from the MCE.  The last data packet has the 'stop' and 'last_frame' bits set in the status frame header.&lt;br /&gt;
&lt;br /&gt;
'''STOP commands outside of data runs:'''&lt;br /&gt;
&lt;br /&gt;
When a STOP command is issued outside of a data run, no data packets are returned.  When a STOP command is issued during a data run, the timing of the last data frame does not generally follow the timing that is specified by the '&amp;gt; rb cc data_rate' parameter.  In general, the last ret_dat is queued up as quickly as possible, irrespective of the status of '&amp;gt; rb cc use_dv'.  For example, when the Clock Card is sourcing its DV pulses from the Sync Box, and a STOP command arrives, it does not wait for the next DV pulse -- instead it issues the last ret_dat immediately.  If the Clock Card waited, it might hang if the source of the DV pulses was cut off.&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;br /&gt;
'''Challenges'''&lt;br /&gt;
&lt;br /&gt;
Automating the testing of STOP commands is difficult, because MAS currently blocks commands in a shell that has started a data acquisition.  This means that an automation script must either open a new shell or run mce_cmd in background mode (with an '&amp;amp;') to STOP an acquisition.  In addtion to this, MAS currently does not support commanding the Sync Box, which makes it difficult to test all the different scenarios that could happen. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cmd_translator block on the clock card is the block that nominally runs data acquisitions.  It is a complicated piece of code, and requires simulation of at least the following cases:&lt;br /&gt;
* Acquisition of one frame of data&lt;br /&gt;
* Acquisition of multiple frames of data&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box (use_sync=2, use_dv=2, select_clk=1)&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box's input (use_sync=2, use_dv=2, select_clk=1)&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box and disconnecting the Sync Box fibre.&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box with the fibre initially disconnected&lt;br /&gt;
* Acquisition while turing the Sync Box output off and then on.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
All the cases above should be repeated in the following scenarios: &lt;br /&gt;
* a STOP command should be issued before the first frame is returned&lt;br /&gt;
* a STOP command should be issued during the acquisition&lt;br /&gt;
* a STOP command should be issued after the acquisition&lt;br /&gt;
&lt;br /&gt;
== How to Issue STOP Command ==&lt;br /&gt;
From a shell:&lt;br /&gt;
 &amp;gt; mce_cmd -x stop &amp;lt;card_addr&amp;gt; ret_dat&lt;br /&gt;
In MAS' interactive mode:&lt;br /&gt;
 &amp;gt; stop &amp;lt;card_addr&amp;gt; ret_dat&lt;br /&gt;
&lt;br /&gt;
In order to stop the MAS data process only from a shell:&lt;br /&gt;
 &amp;gt; mce_cmd -x fakestop&lt;br /&gt;
&lt;br /&gt;
== Quick Reference ==&lt;br /&gt;
* [[ MAS Cheat Sheet ]]&lt;/div&gt;</summary>
		<author><name>154.20.80.47</name></author>
		
	</entry>
	<entry>
		<id>https://cmbr.phas.ubc.ca/mcewiki/index.php?title=MCE_firmware&amp;diff=2140</id>
		<title>MCE firmware</title>
		<link rel="alternate" type="text/html" href="https://cmbr.phas.ubc.ca/mcewiki/index.php?title=MCE_firmware&amp;diff=2140"/>
		<updated>2008-07-10T01:48:39Z</updated>

		<summary type="html">&lt;p&gt;154.20.80.47: /* Hardware Peripherals */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Always cleanly reset the MCE after a power-up or a reconfiguration!  If you do not, MCE communication with the PC may not work.  &lt;br /&gt;
 &amp;gt; mce_reset_clean&lt;br /&gt;
&lt;br /&gt;
Note that after a reset, not all of the DAC outputs are reset to zero.  In addition, values written to RAM-based registers are not reset. To reset these registers, a full reconfiguration is required.&lt;br /&gt;
 &amp;gt; rs psc cycle_pow 1&lt;br /&gt;
 &amp;gt; mce_reset_clean&lt;br /&gt;
&lt;br /&gt;
== MCE Firmware Release Information ==&lt;br /&gt;
* [[ MCE Firmware Catalog ]]&lt;br /&gt;
* [[ MCE Untested features ]]&lt;br /&gt;
* [[ MCE bugs ]]&lt;br /&gt;
&lt;br /&gt;
== MCE Features and How-To Guides ==&lt;br /&gt;
* [[ Digital 4-pole Butterworth Low-pass filter ]]&lt;br /&gt;
* [[ Flux jumping ]]&lt;br /&gt;
* [[ Raw-mode readout ]]&lt;br /&gt;
* [[ High rate acquisition ]]&lt;br /&gt;
* [[ Fast SQ2 Feedback and TES Biasing with an Address Card ]]&lt;br /&gt;
* [[ The STOP Command ]]&lt;br /&gt;
&lt;br /&gt;
== Hardware Peripherals ==&lt;br /&gt;
* [[ Using Ethernet Blaster ]]&lt;br /&gt;
* [[ USB Blaster ]]&lt;br /&gt;
* [[ Sync Box ]]&lt;br /&gt;
* [[ MCE special configurations | Information on Sync Box and Biasing AC (needs merging) ]]&lt;br /&gt;
&lt;br /&gt;
== Software Tools ==&lt;br /&gt;
All that you need to know about logging into our CVS repository can be found here:&lt;br /&gt;
* [[ CVS Firmware Repository ]]&lt;br /&gt;
* [[ Quartus II Installation ]]&lt;br /&gt;
* [[ ModelSim SE Installation ]] (from scratch)&lt;br /&gt;
&lt;br /&gt;
We decided (sadly) NOT to migrate from CVS to SVN, if we ever do here is some information:&lt;br /&gt;
* [http://svnbook.red-bean.com/en/1.4/ SVN Manual]&lt;br /&gt;
* [[ Firmware Accessing the svn repository | Accessing the SVN Repository ]]&lt;br /&gt;
* [[ Firmware svn commit guidelines | SVN Commit Guidelines ]]&lt;br /&gt;
* SVN Basic Operations&lt;br /&gt;
** [[ Firmware svn tagging | Tagging ]]&lt;br /&gt;
** [[ Firmware svn merging | Merging ]]&lt;br /&gt;
** [[ Firmware svn branching | Branching ]]&lt;br /&gt;
** [[ Firmware svn undelete | Resurrecting Deleted Items ]]&lt;br /&gt;
&lt;br /&gt;
== Quick Reference Guide for Firmware Testing ==&lt;br /&gt;
* [[ MAS Cheat Sheet ]]&lt;/div&gt;</summary>
		<author><name>154.20.80.47</name></author>
		
	</entry>
	<entry>
		<id>https://cmbr.phas.ubc.ca/mcewiki/index.php?title=MCE_firmware&amp;diff=2139</id>
		<title>MCE firmware</title>
		<link rel="alternate" type="text/html" href="https://cmbr.phas.ubc.ca/mcewiki/index.php?title=MCE_firmware&amp;diff=2139"/>
		<updated>2008-07-10T01:47:16Z</updated>

		<summary type="html">&lt;p&gt;154.20.80.47: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Always cleanly reset the MCE after a power-up or a reconfiguration!  If you do not, MCE communication with the PC may not work.  &lt;br /&gt;
 &amp;gt; mce_reset_clean&lt;br /&gt;
&lt;br /&gt;
Note that after a reset, not all of the DAC outputs are reset to zero.  In addition, values written to RAM-based registers are not reset. To reset these registers, a full reconfiguration is required.&lt;br /&gt;
 &amp;gt; rs psc cycle_pow 1&lt;br /&gt;
 &amp;gt; mce_reset_clean&lt;br /&gt;
&lt;br /&gt;
== MCE Firmware Release Information ==&lt;br /&gt;
* [[ MCE Firmware Catalog ]]&lt;br /&gt;
* [[ MCE Untested features ]]&lt;br /&gt;
* [[ MCE bugs ]]&lt;br /&gt;
&lt;br /&gt;
== MCE Features and How-To Guides ==&lt;br /&gt;
* [[ Digital 4-pole Butterworth Low-pass filter ]]&lt;br /&gt;
* [[ Flux jumping ]]&lt;br /&gt;
* [[ Raw-mode readout ]]&lt;br /&gt;
* [[ High rate acquisition ]]&lt;br /&gt;
* [[ Fast SQ2 Feedback and TES Biasing with an Address Card ]]&lt;br /&gt;
* [[ The STOP Command ]]&lt;br /&gt;
&lt;br /&gt;
== Hardware Peripherals ==&lt;br /&gt;
* [[ Using Ethernet Blaster ]]&lt;br /&gt;
* [[ USB Blaster ]]&lt;br /&gt;
* [[ Sync Box ]]&lt;br /&gt;
* [[ MCE special configurations ]]&lt;br /&gt;
&lt;br /&gt;
== Software Tools ==&lt;br /&gt;
All that you need to know about logging into our CVS repository can be found here:&lt;br /&gt;
* [[ CVS Firmware Repository ]]&lt;br /&gt;
* [[ Quartus II Installation ]]&lt;br /&gt;
* [[ ModelSim SE Installation ]] (from scratch)&lt;br /&gt;
&lt;br /&gt;
We decided (sadly) NOT to migrate from CVS to SVN, if we ever do here is some information:&lt;br /&gt;
* [http://svnbook.red-bean.com/en/1.4/ SVN Manual]&lt;br /&gt;
* [[ Firmware Accessing the svn repository | Accessing the SVN Repository ]]&lt;br /&gt;
* [[ Firmware svn commit guidelines | SVN Commit Guidelines ]]&lt;br /&gt;
* SVN Basic Operations&lt;br /&gt;
** [[ Firmware svn tagging | Tagging ]]&lt;br /&gt;
** [[ Firmware svn merging | Merging ]]&lt;br /&gt;
** [[ Firmware svn branching | Branching ]]&lt;br /&gt;
** [[ Firmware svn undelete | Resurrecting Deleted Items ]]&lt;br /&gt;
&lt;br /&gt;
== Quick Reference Guide for Firmware Testing ==&lt;br /&gt;
* [[ MAS Cheat Sheet ]]&lt;/div&gt;</summary>
		<author><name>154.20.80.47</name></author>
		
	</entry>
	<entry>
		<id>https://cmbr.phas.ubc.ca/mcewiki/index.php?title=Main_Page&amp;diff=2138</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://cmbr.phas.ubc.ca/mcewiki/index.php?title=Main_Page&amp;diff=2138"/>
		<updated>2008-07-10T01:46:29Z</updated>

		<summary type="html">&lt;p&gt;154.20.80.47: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This wiki is for users and developers of UBC's Multi-Channel Electronics (MCE), and the MCE Acquisition Software (MAS).&lt;br /&gt;
&lt;br /&gt;
== MCE System Components ==&lt;br /&gt;
&lt;br /&gt;
* [[ MCE firmware ]]&lt;br /&gt;
* [[ MCE hardware ]]&lt;br /&gt;
* [[ Sync Box ]]&lt;br /&gt;
* [[ PCI card firmware ]]&lt;br /&gt;
* [[ DAS | DAS (pre-MAS)]]&lt;br /&gt;
* [[ MAS ]]&lt;br /&gt;
* [[ Tuning and IV scripts ]]&lt;br /&gt;
* [[ Unix stuff ]]&lt;br /&gt;
* [[ Version history ]]&lt;br /&gt;
&lt;br /&gt;
== MediaWiki help and information ==&lt;br /&gt;
&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Help:Configuration_settings Configuration settings list]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Help:FAQ MediaWiki FAQ]&lt;br /&gt;
* [http://mail.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;/div&gt;</summary>
		<author><name>154.20.80.47</name></author>
		
	</entry>
	<entry>
		<id>https://cmbr.phas.ubc.ca/mcewiki/index.php?title=MAS&amp;diff=2137</id>
		<title>MAS</title>
		<link rel="alternate" type="text/html" href="https://cmbr.phas.ubc.ca/mcewiki/index.php?title=MAS&amp;diff=2137"/>
		<updated>2008-07-10T01:46:00Z</updated>

		<summary type="html">&lt;p&gt;154.20.80.47: /* Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Usage ==&lt;br /&gt;
&lt;br /&gt;
* System applications&lt;br /&gt;
** [[mce_cmd]]&lt;br /&gt;
** [[mce_status]]&lt;br /&gt;
** [[maslog]]&lt;br /&gt;
** [[dsp_cmd]]&lt;br /&gt;
** [[ MAS Command line how-to ]]&lt;br /&gt;
&lt;br /&gt;
* Special applications&lt;br /&gt;
** [[ sq1_servo and sq2_servo ]]&lt;br /&gt;
** [[ mce_ramp ]]&lt;br /&gt;
** [[ psc_status ]]&lt;br /&gt;
&lt;br /&gt;
* Utilities&lt;br /&gt;
&lt;br /&gt;
* MAS configuration&lt;br /&gt;
** [[ MAS start/stop ]]&lt;br /&gt;
** [[ mce.cfg ]]&lt;br /&gt;
** [[ mas.cfg ]]&lt;br /&gt;
** [[ MAS array_id and array_list | array_id and array_list ]]&lt;br /&gt;
&lt;br /&gt;
* MAS file formats&lt;br /&gt;
** [[ Runfile format v2 ]]&lt;br /&gt;
** [[ MCE flat-file format ]]&lt;br /&gt;
&lt;br /&gt;
* IDL functions&lt;br /&gt;
** [[ mas_data.pro ]]&lt;br /&gt;
** [[ mas_runfile.pro and mas_runparam.pro ]]&lt;br /&gt;
** [[ Other useful IDL routines ]]&lt;br /&gt;
&lt;br /&gt;
* Help&lt;br /&gt;
** [[ MCE: Helper programs ]]&lt;br /&gt;
** [[ MAS Cheat Sheet ]]&lt;br /&gt;
&lt;br /&gt;
== Development ==&lt;br /&gt;
&lt;br /&gt;
* [[ MAS Bug List ]]&lt;br /&gt;
* [[ MAS to-do ]]&lt;br /&gt;
* [[ MAS feature requests ]]&lt;br /&gt;
&lt;br /&gt;
== Installation / configuration ==&lt;br /&gt;
&lt;br /&gt;
* [[ MAS PC requirements and initial setup | PC requirements and initial setup]]&lt;br /&gt;
* [[ MAS OS setup | OS setup]]&lt;br /&gt;
* [[ MAS user setup ]]&lt;br /&gt;
* [[ MAS kernel patch compilation | kernel patch compilation]]&lt;br /&gt;
* [[ MAS svn repository | SVN repository]]&lt;br /&gt;
* [[ Hardware goodlist/badlist ]]&lt;br /&gt;
&lt;br /&gt;
== Trouble-shooting ==&lt;br /&gt;
&lt;br /&gt;
* [[ MAS malfunction diagnosis | diagnosis ]]&lt;/div&gt;</summary>
		<author><name>154.20.80.47</name></author>
		
	</entry>
	<entry>
		<id>https://cmbr.phas.ubc.ca/mcewiki/index.php?title=Main_Page&amp;diff=2136</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://cmbr.phas.ubc.ca/mcewiki/index.php?title=Main_Page&amp;diff=2136"/>
		<updated>2008-07-10T01:45:36Z</updated>

		<summary type="html">&lt;p&gt;154.20.80.47: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This wiki is for users and developers of UBC's Multi-Channel Electronics (MCE), and the MCE Acquisition Software (MAS).&lt;br /&gt;
&lt;br /&gt;
== MCE System Components ==&lt;br /&gt;
&lt;br /&gt;
* [[ MCE firmware ]]&lt;br /&gt;
* [[ MCE hardware ]]&lt;br /&gt;
* [[ Sync Box ]]&lt;br /&gt;
* [[ PCI card firmware ]]&lt;br /&gt;
* [[ DAS | DAS (pre-MAS)]]&lt;br /&gt;
* [[ MAS ]]&lt;br /&gt;
* [[ Tuning and IV scripts ]]&lt;br /&gt;
* [[ MCE special configurations ]]&lt;br /&gt;
* [[ Unix stuff ]]&lt;br /&gt;
* [[ Version history ]]&lt;br /&gt;
&lt;br /&gt;
== MediaWiki help and information ==&lt;br /&gt;
&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Help:Configuration_settings Configuration settings list]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Help:FAQ MediaWiki FAQ]&lt;br /&gt;
* [http://mail.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;/div&gt;</summary>
		<author><name>154.20.80.47</name></author>
		
	</entry>
	<entry>
		<id>https://cmbr.phas.ubc.ca/mcewiki/index.php?title=Sync_Box&amp;diff=2135</id>
		<title>Sync Box</title>
		<link rel="alternate" type="text/html" href="https://cmbr.phas.ubc.ca/mcewiki/index.php?title=Sync_Box&amp;diff=2135"/>
		<updated>2008-07-10T01:44:42Z</updated>

		<summary type="html">&lt;p&gt;154.20.80.47: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Sync Box Firmware ==&lt;br /&gt;
Fill this in..&lt;br /&gt;
&lt;br /&gt;
== Issue commands to the Sync Box ==&lt;br /&gt;
To issue commands to a sync box over an RS-232 line, you can use a Linux program called 'MiniCom'.  To install this application, type the following:&lt;br /&gt;
 &amp;gt; apt-get install...&lt;br /&gt;
To start MiniCom:&lt;br /&gt;
 &amp;gt; sudo minicom&lt;br /&gt;
Minicom needs the following options changed for it to work properly:&lt;br /&gt;
 &amp;gt; &amp;lt;ctrl-a&amp;gt;, &amp;lt;z&amp;gt;, &amp;lt;a&amp;gt;&lt;br /&gt;
 &amp;gt; &amp;lt;ctrl-a&amp;gt;, &amp;lt;z&amp;gt;, &amp;lt;o&amp;gt;, &amp;lt;Serial port setup&amp;gt; &amp;lt;Serial Device&amp;gt; = /dev/ttyS0&lt;br /&gt;
 &amp;gt; &amp;lt;ctrl-a&amp;gt;, &amp;lt;z&amp;gt;, &amp;lt;o&amp;gt;, &amp;lt;Serial port setup&amp;gt; &amp;lt;Bps/Par/Bits&amp;gt; = 9600 8N1&lt;br /&gt;
 &amp;gt; &amp;lt;ctrl-a&amp;gt;, &amp;lt;z&amp;gt;, &amp;lt;o&amp;gt;, &amp;lt;Serial port setup&amp;gt; &amp;lt;Hardware Flow Control&amp;gt; = No&lt;br /&gt;
 &amp;gt; &amp;lt;ctrl-a&amp;gt;, &amp;lt;z&amp;gt;, &amp;lt;o&amp;gt;, &amp;lt;Serial port setup&amp;gt; &amp;lt;Software Flow Control&amp;gt; = No&lt;br /&gt;
 &amp;gt; &amp;lt;ctrl-a&amp;gt;, &amp;lt;z&amp;gt;, &amp;lt;o&amp;gt;, &amp;lt;Modem and dialing&amp;gt; &amp;lt;Modem has DCD line&amp;gt; = No&lt;br /&gt;
After you modify these settings, remember to save, exit and restart Minicom.&lt;/div&gt;</summary>
		<author><name>154.20.80.47</name></author>
		
	</entry>
	<entry>
		<id>https://cmbr.phas.ubc.ca/mcewiki/index.php?title=Sync_Box&amp;diff=2134</id>
		<title>Sync Box</title>
		<link rel="alternate" type="text/html" href="https://cmbr.phas.ubc.ca/mcewiki/index.php?title=Sync_Box&amp;diff=2134"/>
		<updated>2008-07-10T01:44:26Z</updated>

		<summary type="html">&lt;p&gt;154.20.80.47: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Sync Box Firmware ==&lt;br /&gt;
&lt;br /&gt;
== Issue commands to the Sync Box ==&lt;br /&gt;
To issue commands to a sync box over an RS-232 line, you can use a Linux program called 'MiniCom'.  To install this application, type the following:&lt;br /&gt;
 &amp;gt; apt-get install...&lt;br /&gt;
To start MiniCom:&lt;br /&gt;
 &amp;gt; sudo minicom&lt;br /&gt;
Minicom needs the following options changed for it to work properly:&lt;br /&gt;
 &amp;gt; &amp;lt;ctrl-a&amp;gt;, &amp;lt;z&amp;gt;, &amp;lt;a&amp;gt;&lt;br /&gt;
 &amp;gt; &amp;lt;ctrl-a&amp;gt;, &amp;lt;z&amp;gt;, &amp;lt;o&amp;gt;, &amp;lt;Serial port setup&amp;gt; &amp;lt;Serial Device&amp;gt; = /dev/ttyS0&lt;br /&gt;
 &amp;gt; &amp;lt;ctrl-a&amp;gt;, &amp;lt;z&amp;gt;, &amp;lt;o&amp;gt;, &amp;lt;Serial port setup&amp;gt; &amp;lt;Bps/Par/Bits&amp;gt; = 9600 8N1&lt;br /&gt;
 &amp;gt; &amp;lt;ctrl-a&amp;gt;, &amp;lt;z&amp;gt;, &amp;lt;o&amp;gt;, &amp;lt;Serial port setup&amp;gt; &amp;lt;Hardware Flow Control&amp;gt; = No&lt;br /&gt;
 &amp;gt; &amp;lt;ctrl-a&amp;gt;, &amp;lt;z&amp;gt;, &amp;lt;o&amp;gt;, &amp;lt;Serial port setup&amp;gt; &amp;lt;Software Flow Control&amp;gt; = No&lt;br /&gt;
 &amp;gt; &amp;lt;ctrl-a&amp;gt;, &amp;lt;z&amp;gt;, &amp;lt;o&amp;gt;, &amp;lt;Modem and dialing&amp;gt; &amp;lt;Modem has DCD line&amp;gt; = No&lt;br /&gt;
After you modify these settings, remember to save, exit and restart Minicom.&lt;/div&gt;</summary>
		<author><name>154.20.80.47</name></author>
		
	</entry>
	<entry>
		<id>https://cmbr.phas.ubc.ca/mcewiki/index.php?title=Main_Page&amp;diff=2133</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://cmbr.phas.ubc.ca/mcewiki/index.php?title=Main_Page&amp;diff=2133"/>
		<updated>2008-07-10T01:43:30Z</updated>

		<summary type="html">&lt;p&gt;154.20.80.47: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This wiki is for users and developers of UBC's Multi-Channel Electronics (MCE), and the MCE Acquisition Software (MAS).&lt;br /&gt;
&lt;br /&gt;
== MCE System Components ==&lt;br /&gt;
&lt;br /&gt;
* [[ MCE firmware ]]&lt;br /&gt;
* [[ MCE hardware ]]&lt;br /&gt;
* [[ Sync Box ]]&lt;br /&gt;
* [[ PCI card firmware ]]&lt;br /&gt;
* [[ DAS | DAS (pre-MAS)]]&lt;br /&gt;
* [[ MAS ]]&lt;br /&gt;
* [[ Tuning and IV scripts ]]&lt;br /&gt;
* [[ MCE special configurations ]]&lt;br /&gt;
* [[ MCE: Helper programs ]]&lt;br /&gt;
* [[ Unix stuff ]]&lt;br /&gt;
* [[ Version history ]]&lt;br /&gt;
&lt;br /&gt;
== MediaWiki help and information ==&lt;br /&gt;
&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Help:Configuration_settings Configuration settings list]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Help:FAQ MediaWiki FAQ]&lt;br /&gt;
* [http://mail.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;/div&gt;</summary>
		<author><name>154.20.80.47</name></author>
		
	</entry>
	<entry>
		<id>https://cmbr.phas.ubc.ca/mcewiki/index.php?title=Main_Page&amp;diff=2132</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://cmbr.phas.ubc.ca/mcewiki/index.php?title=Main_Page&amp;diff=2132"/>
		<updated>2008-07-10T01:41:36Z</updated>

		<summary type="html">&lt;p&gt;154.20.80.47: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This wiki is for users and developers of UBC's Multi-Channel Electronics (MCE), and the MCE Acquisition Software (MAS).&lt;br /&gt;
&lt;br /&gt;
== MCE System Components ==&lt;br /&gt;
&lt;br /&gt;
* [[ MCE firmware ]]&lt;br /&gt;
* [[ MCE hardware ]]&lt;br /&gt;
* [[ Sync Box firmware ]]&lt;br /&gt;
* [[ PCI card firmware ]]&lt;br /&gt;
* [[ DAS | DAS (pre-MAS)]]&lt;br /&gt;
* [[ MAS ]]&lt;br /&gt;
* [[ Tuning and IV scripts ]]&lt;br /&gt;
* [[ MCE special configurations ]]&lt;br /&gt;
* [[ MCE: Helper programs ]]&lt;br /&gt;
* [[ Unix stuff ]]&lt;br /&gt;
* [[ Version history ]]&lt;br /&gt;
&lt;br /&gt;
== MediaWiki help and information ==&lt;br /&gt;
&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Help:Configuration_settings Configuration settings list]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Help:FAQ MediaWiki FAQ]&lt;br /&gt;
* [http://mail.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;/div&gt;</summary>
		<author><name>154.20.80.47</name></author>
		
	</entry>
	<entry>
		<id>https://cmbr.phas.ubc.ca/mcewiki/index.php?title=STOP_Command&amp;diff=2131</id>
		<title>STOP Command</title>
		<link rel="alternate" type="text/html" href="https://cmbr.phas.ubc.ca/mcewiki/index.php?title=STOP_Command&amp;diff=2131"/>
		<updated>2008-07-10T01:38:54Z</updated>

		<summary type="html">&lt;p&gt;154.20.80.47: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The stop command was invented to allow users to stop data acquisitions in mid-stream.  There are a variety of reasons for wanting to do so:&lt;br /&gt;
* Malfunction of other subsystems at the telescope&lt;br /&gt;
* Not receiving any DV pulses from the Sync Box or other triggering software&lt;br /&gt;
&lt;br /&gt;
== Features ==&lt;br /&gt;
'''STOP command replies:'''&lt;br /&gt;
&lt;br /&gt;
The STOP command is supported as a special command in the Clock Card firmware.  Unlike for WB and RB commands, the MCE replies to the STOP command immediately. Data packets continue to be returned following the reply to the STOP command until all of the remaining ret_dat commands are flushed from the MCE.  The last data packet has the 'stop' and 'last_frame' bits set in the status frame header.&lt;br /&gt;
&lt;br /&gt;
'''STOP commands outside of data runs:'''&lt;br /&gt;
&lt;br /&gt;
When a STOP command is issued outside of a data run, no data packets are returned.  When a STOP command is issued during a data run, the timing of the last data frame does not generally follow the timing that is specified by the '&amp;gt; rb cc data_rate' parameter.  In general, the last ret_dat is queued up as quickly as possible, irrespective of the status of '&amp;gt; rb cc use_dv'.  For example, when the Clock Card is sourcing its DV pulses from the Sync Box, and a STOP command arrives, it does not wait for the next DV pulse -- instead it issues the last ret_dat immediately.  If the Clock Card waited, it might hang if the source of the DV pulses was cut off.&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;br /&gt;
Automating the testing of STOP commands is difficult, because MAS currently blocks commands in a shell that has started a data acquisition.  This means that an automation script must either open a new shell or run mce_cmd in background mode (with an '&amp;amp;') to STOP an acquisition.  In addtion to this, MAS currently does not support commanding the Sync Box, which makes it difficult to test all the different scenarios that could happen. &lt;br /&gt;
&lt;br /&gt;
The cmd_translator block on the clock card is the block that nominally runs data acquisitions.  It is a complicated piece of code, and requires simulation of at least the following cases:&lt;br /&gt;
* Acquisition of one frame of data&lt;br /&gt;
* Acquisition of multiple frames of data&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box (use_sync=2, use_dv=2, select_clk=1)&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box's input (use_sync=2, use_dv=2, select_clk=1)&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box and disconnecting the Sync Box fibre.&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box with the fibre initially disconnected&lt;br /&gt;
* Acquisition while turing the Sync Box output off and then on.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
All the cases above should be repeated in the following scenarios: &lt;br /&gt;
* a STOP command should be issued before the first frame is returned&lt;br /&gt;
* a STOP command should be issued during the acquisition&lt;br /&gt;
* a STOP command should be issued after the acquisition&lt;br /&gt;
&lt;br /&gt;
== How to Issue STOP Command ==&lt;br /&gt;
From a shell:&lt;br /&gt;
 &amp;gt; mce_cmd -x stop &amp;lt;card_addr&amp;gt; ret_dat&lt;br /&gt;
In MAS' interactive mode:&lt;br /&gt;
 &amp;gt; stop &amp;lt;card_addr&amp;gt; ret_dat&lt;br /&gt;
&lt;br /&gt;
In order to stop the MAS data process only from a shell:&lt;br /&gt;
 &amp;gt; mce_cmd -x fakestop&lt;br /&gt;
&lt;br /&gt;
== Quick Reference ==&lt;br /&gt;
* [[ MAS Cheat Sheet ]]&lt;/div&gt;</summary>
		<author><name>154.20.80.47</name></author>
		
	</entry>
	<entry>
		<id>https://cmbr.phas.ubc.ca/mcewiki/index.php?title=STOP_Command&amp;diff=2130</id>
		<title>STOP Command</title>
		<link rel="alternate" type="text/html" href="https://cmbr.phas.ubc.ca/mcewiki/index.php?title=STOP_Command&amp;diff=2130"/>
		<updated>2008-07-10T01:38:18Z</updated>

		<summary type="html">&lt;p&gt;154.20.80.47: /* Testing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The stop command was invented to allow users to stop data acquisitions in mid-stream.  There are a variety of reasons for wanting to do so:&lt;br /&gt;
* Malfunction of other subsystems at the telescope&lt;br /&gt;
* Not receiving any DV pulses from the Sync Box or other triggering software&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Features ==&lt;br /&gt;
'''STOP command replies:'''&lt;br /&gt;
&lt;br /&gt;
The STOP command is supported as a special command in the Clock Card firmware.  Unlike for WB and RB commands, the MCE replies to the STOP command immediately. Data packets continue to be returned following the reply to the STOP command until all of the remaining ret_dat commands are flushed from the MCE.  The last data packet has the 'stop' and 'last_frame' bits set in the status frame header.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''STOP commands outside of data runs:'''&lt;br /&gt;
&lt;br /&gt;
When a STOP command is issued outside of a data run, no data packets are returned.  When a STOP command is issued during a data run, the timing of the last data frame does not generally follow the timing that is specified by the '&amp;gt; rb cc data_rate' parameter.  In general, the last ret_dat is queued up as quickly as possible, irrespective of the status of '&amp;gt; rb cc use_dv'.  For example, when the Clock Card is sourcing its DV pulses from the Sync Box, and a STOP command arrives, it does not wait for the next DV pulse -- instead it issues the last ret_dat immediately.  If the Clock Card waited, it might hang if the source of the DV pulses was cut off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;br /&gt;
Automating the testing of STOP commands is difficult, because MAS currently blocks commands in a shell that has started a data acquisition.  This means that an automation script must either open a new shell or run mce_cmd in background mode (with an '&amp;amp;') to STOP an acquisition.  In addtion to this, MAS currently does not support commanding the Sync Box, which makes it difficult to test all the different scenarios that could happen. &lt;br /&gt;
&lt;br /&gt;
The cmd_translator block on the clock card is the block that nominally runs data acquisitions.  It is a complicated piece of code, and requires simulation of at least the following cases:&lt;br /&gt;
* Acquisition of one frame of data&lt;br /&gt;
* Acquisition of multiple frames of data&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box (use_sync=2, use_dv=2, select_clk=1)&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box's input (use_sync=2, use_dv=2, select_clk=1)&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box and disconnecting the Sync Box fibre.&lt;br /&gt;
* Acquisition while sourcing the DV from the Sync Box with the fibre initially disconnected&lt;br /&gt;
* Acquisition while turing the Sync Box output off and then on.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
All the cases above should be repeated in the following scenarios: &lt;br /&gt;
* a STOP command should be issued before the first frame is returned&lt;br /&gt;
* a STOP command should be issued during the acquisition&lt;br /&gt;
* a STOP command should be issued after the acquisition&lt;br /&gt;
&lt;br /&gt;
== How to Issue STOP Command ==&lt;br /&gt;
From a shell:&lt;br /&gt;
 &amp;gt; mce_cmd -x stop &amp;lt;card_addr&amp;gt; ret_dat&lt;br /&gt;
In MAS' interactive mode:&lt;br /&gt;
 &amp;gt; stop &amp;lt;card_addr&amp;gt; ret_dat&lt;br /&gt;
&lt;br /&gt;
In order to stop the MAS data process only from a shell:&lt;br /&gt;
 &amp;gt; mce_cmd -x fakestop&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Quick Reference ==&lt;br /&gt;
* [[ MAS Cheat Sheet ]]&lt;/div&gt;</summary>
		<author><name>154.20.80.47</name></author>
		
	</entry>
</feed>