{"id":127,"date":"2020-03-07T03:11:54","date_gmt":"2020-03-07T03:11:44","guid":{"rendered":"http:\/\/www.nuclearphysicslab.com\/npl\/?page_id=127"},"modified":"2024-03-16T17:51:01","modified_gmt":"2024-03-16T21:51:01","slug":"diy-canberra-system","status":"publish","type":"page","link":"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/","title":{"rendered":"Amateur Canberra Spectroscopy System"},"content":{"rendered":"\n<p class=\"has-text-align-center\"><em>Author: Jay<\/em> Howson<br>Date: March-2019<br><br>Updated: July-2022<br>Updated: March-2024<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_33_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">Quick Links<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" style=\"display: none;\"><label for=\"item\" aria-label=\"Table of Content\"><i class=\"ez-toc-glyphicon ez-toc-icon-toggle\"><\/i><\/label><input type=\"checkbox\" id=\"item\"><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1'><ul class='ez-toc-list-level-3'><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#Intro\" title=\"Intro\">Intro<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#Special_Thanks\" title=\"Special Thanks\">Special Thanks<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#Getting_Started\" title=\"Getting Started\">Getting Started<\/a><ul class='ez-toc-list-level-3'><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#The_minimum_hardware_you_will_need\" title=\"The minimum hardware you will need\">The minimum hardware you will need<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#Software_you_should_download\" title=\"Software you should download\">Software you should download<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#Set_up_your_NIM-Bin_and_modules\" title=\"Set up your NIM-Bin and modules\">Set up your NIM-Bin and modules<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#Install_Software_and_configure_computer\" title=\"Install Software and configure computer\">Install Software and configure computer<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#Add_EPICS_Window_Tools_to_your_system_PATH\" title=\" Add EPICS Window Tools to your system PATH \"> Add EPICS Window Tools to your system PATH <\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#Modifying_Max_Bytes\" title=\"Modifying Max_Bytes\">Modifying Max_Bytes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#IDL_path_variable\" title=\"IDL path variable\">IDL path variable<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#Extract_the_Standalone_Epics_MCA_Application\" title=\"Extract the Standalone Epics MCA Application \">Extract the Standalone Epics MCA Application <\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#Testing_Epics_Windows_Tools\" title=\"Testing Epics Windows Tools\">Testing Epics Windows Tools<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#Run_MobaXterm\" title=\"Run MobaXterm\">Run MobaXterm<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#Testing_Medm\" title=\"Testing Medm\">Testing Medm<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#Test_EPICS_itself\" title=\"Test EPICS itself\">Test EPICS itself<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#Create_AutoSave_Folder\" title=\"Create AutoSave Folder\">Create AutoSave Folder<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#Configure_the_EnvPaths_File\" title=\"Configure the EnvPaths File\">Configure the EnvPaths File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#Prepare_stcmd\" title=\"Prepare st.cmd\">Prepare st.cmd<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#The_Ethernet_Device_ID\" title=\"The Ethernet_Device_ID\">The Ethernet_Device_ID<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#Adjusting_Max_Channels\" title=\"Adjusting Max Channels\">Adjusting Max Channels<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#Setting_the_ICB_bus_settings_in_stcmd\" title=\"Setting the ICB bus settings in st.cmd\">Setting the ICB bus settings in st.cmd<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#DSA-2000_stcmd\" title=\"DSA-2000 st.cmd\">DSA-2000 st.cmd<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#Save_Restore_Setup\" title=\"Save Restore Setup\">Save Restore Setup<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#Issuing_your_First_Commands\" title=\" Issuing your First Commands \"> Issuing your First Commands <\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-25\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#CAClient_Exception\" title=\"CA.Client Exception\">CA.Client Exception<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-26\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#Using_the_built_in_MCA_medm\" title=\"Using the built in MCA, medm\">Using the built in MCA, medm<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-27\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#The_IDL_MCA\" title=\"The IDL MCA\">The IDL MCA<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-28\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/#The_DIY_method\" title=\"The DIY method\">The DIY method<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Intro\"><\/span>Intro<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Canberra (now Mirion) is a maker of high end spectroscopy equipment, radiation detection equipment, and associated software. Much like ORTEC they have a wide selection of NIM instrumentation and standalone products. <\/p>\n\n\n\n<p> One of the downsides to amateurs using Canberra products at home for spectroscopy; Is the inability to easily interface a computer with Canberra&#8217;s modules. This feat is easily accomplished if you happen to be lucky enough to afford their software. (Canberra if you are reading; a lite version of the software would be nice&#8230;) In-fact an entire product line (the 96** series NIM modules) is almost completely off limits to an amateur user, because they don&#8217;t have front panel controls at all, instead being controlled digitally by the Instrument Control Bus (ICB). <\/p>\n\n\n\n<p>While there are a few individuals (Countable on one hand) who have found ways to utilize the Canberra technology, while you can find the occasional mention on the internet. They have not yet written a comprehensive document explaining how they did it. My hope is that this page will serve as that document and help many others get the Canberra modules going. <\/p>\n\n\n\n<p>The key component is EPICS, which stands for Experimental Physics and Industrial Control System. It is a very powerful piece of software made available by Argonne national labs. You can read more about it here  <a href=\"https:\/\/epics.anl.gov\/\">https:\/\/epics.anl.gov\/<\/a> . We will be using a smaller subset of this software to control the Canberra NIM modules, found here  <a href=\"https:\/\/cars9.uchicago.edu\/software\/epics\/mca.html\">https:\/\/cars9.uchicago.edu\/software\/epics\/mca.html<\/a> . I encourage users to check out the MCA page, as it includes alot of information not covered here. <\/p>\n\n\n\n<h3><span class=\"ez-toc-section\" id=\"Special_Thanks\"><\/span>Special Thanks<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Before we continue, I would like to give a special shout out to <a href=\"https:\/\/www3.aps.anl.gov\/News\/Conferences\/2003\/12um\/rivers.htm\">Mark Rivers<\/a> at the Argonne National Lab. His knowledge and patience with my limited computer abilities is the only reason I was able to get this working. <\/p>\n\n\n\n<p>Another shout out to our friend Jim. whom provided me with my first set of Canberra modules, and jump started this effort. Following suit, A shout out to <a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/about-us\/tim\/\">Tim<\/a> who gave up trying to make the Canberra modules work and gave them to Jim many years ago. <\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h2><span class=\"ez-toc-section\" id=\"Getting_Started\"><\/span>Getting Started<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3><span class=\"ez-toc-section\" id=\"The_minimum_hardware_you_will_need\"><\/span>The minimum hardware you will need<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul><li>A computer<ul><li>With a free Ethernet port (<s>you cannot use a switch, it must be a direct connect Ethernet port<\/s>)<ul><li>Edit in March 2024: According to Mr. Mark Rivers, Apparently you can use a switch (but not a router). I have not yet tired to use a switch, thus I am unaware if it comes with any special caveats. <\/li><li>Edit in March 2024: One individual who has followed this tutorial and confirmed that a USB ethernet dongle will function for this purpose as well. <\/li><\/ul><\/li><\/ul><\/li><li>A <a rel=\"noreferrer noopener\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/Canberra_2100_NIM_Bin_Power_Supply_Manual.pdf\" target=\"_blank\">NIM-BIN<\/a><\/li><li>A <a rel=\"noreferrer noopener\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/canberra_556.pdf\" target=\"_blank\">Canberra 556 Acquisition Interface Module<\/a><\/li><li>A Canberra Analog Digital Converter (ADC) <ul><li><a rel=\"noreferrer noopener\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/canberra_8713_Analog_Digital_Converter.pdf\" target=\"_blank\">Canberra 8713<\/a> or <a rel=\"noreferrer noopener\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/canberra_9635_ICB_Analog_Digital_Converter.pdf\" target=\"_blank\">Canberra 9635<\/a> for example<\/li><\/ul><\/li><li>Alternatively you can use a DSA series standalone unit as well. <ul><li>I tested with a DSA-2000<\/li><li>I have not tested with a TCA unit (if anyone has one they would like to donate to the cause, let me know)<\/li><\/ul><\/li><li>An ethernet Tranceiver <ul><li><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.google.com\/search?ei=FHhxXvvILZyrytMPldmRuAY&amp;q=o%09CentreCOM+201TS+twisted+pair+transceiver+IEEE+802.3+10+BASE+T+%28MAU%29&amp;oq=o%09CentreCOM+201TS+twisted+pair+transceiver+IEEE+802.3+10+BASE+T+%28MAU%29&amp;gs_l=psy-ab.12...3971.3971..5240...0.1..0.139.139.0j1......0....2j1..gws-wiz.......0i71.upVDJVih0-s&amp;ved=0ahUKEwj7oqq07qLoAhWclXIEHZVsBGcQ4dUDCAs\" target=\"_blank\">CentreCOM 201TS twisted pair transceiver IEEE 802.3 10 BASE T (MAU)<\/a><\/li><\/ul><\/li><li>A 34 Pin Ribbon Cable (2&#215;17 2.54 Pitch Female-Female)<ul><li>A 6 Inch Should be fine<\/li><\/ul><\/li><li>A 20 Pin Ribbon Cable (2&#215;10 2.54 Pitch Male-Male-Male-Male-etc)<ul><li>Its better to just buy a few feet of cable\\connectors and make your own<\/li><\/ul><\/li><li>A standard Ethernet cable<\/li><li>Associated Coax Cables, BNC, MHV, etc<\/li><li>Detector\/Preamplifier, HV Supply, and Amplifier of your choice<ul><li>I use the <a rel=\"noreferrer noopener\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/canberra_9641_HV_Power_Supply.pdf\" target=\"_blank\">Canberra 1641 2KV HV Supply<\/a> and <a rel=\"noreferrer noopener\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/canberra_9615_ICB_Amplifier.pdf\" target=\"_blank\">Canberra 9615 Amplifier<\/a> with a <a rel=\"noreferrer noopener\" aria-label=\"Scionix 38B57 scintillator (opens in a new tab)\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/38B57_1.5M-E1-X.pdf\" target=\"_blank\">Scionix 38B57 scintillator<\/a><\/li><\/ul><\/li><\/ul>\n\n\n\n<h3><span class=\"ez-toc-section\" id=\"Software_you_should_download\"><\/span>Software you should download<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n\n\n<ul><li>The Standalone Epics MCA application<ul><li>Documentation<ul><li><a rel=\"noreferrer noopener\" aria-label=\"http:\/\/cars9.uchicago.edu\/software\/epics\/mcaDoc.html (opens in a new tab)\" href=\"http:\/\/cars9.uchicago.edu\/software\/epics\/mcaDoc.html\" target=\"_blank\">http:\/\/cars9.uchicago.edu\/software\/epics\/mcaDoc.html<\/a><\/li><\/ul><\/li><li>Zip Download<ul><li> <a href=\"https:\/\/cars.uchicago.edu\/software\/pub\/\">https:\/\/cars.uchicago.edu\/software\/pub\/<\/a> <\/li><li>Win7, right click, download <a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/mcaStandalone_R7-7-1.zip\">mcaStandalone_R7-7.zip<\/a>  <\/li><li>Win11, right click, download  <a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/mcaStandalone_R7-10.zip\">mcaStandalone_R7-10<\/a> <\/li><\/ul><\/li><\/ul><\/li><li>Epics Windows Tools<ul><li> Provides windows with the tools necessary to run the EPICS software GUI\u2019s (MEDM) and allow command line interfacing to the Canberra AIM <ul><li> <a rel=\"noreferrer noopener\" href=\"https:\/\/epics.anl.gov\/distributions\/win32\/index.php\" target=\"_blank\">https:\/\/epics.anl.gov\/distributions\/win32\/index.php<\/a> <\/li><\/ul><\/li><\/ul><\/li><li> Windows Packet Capture Library<ul><li><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.winpcap.org\/\" target=\"_blank\">https:\/\/www.winpcap.org\/<\/a>  &#8211; If using windows 7<\/li><li><a rel=\"noreferrer noopener\" aria-label=\"https:\/\/npcap.com\/ (opens in a new tab)\" href=\"https:\/\/npcap.com\/\" target=\"_blank\">https:\/\/npcap.com\/<\/a> &#8211; if using windows 11<\/li><\/ul><\/li><li>MobaXTerm <ul><li><a href=\"https:\/\/mobaxterm.mobatek.net\/\">https:\/\/mobaxterm.mobatek.net\/<\/a><\/li><\/ul><\/li><li>Notepad++<ul><li>Not Really Necessary, but you wont regret it<\/li><li>Essentially the standard windows notepad, but 1000 times better<ul><li><a href=\"https:\/\/notepad-plus-plus.org\/\">https:\/\/notepad-plus-plus.org\/<\/a><\/li><\/ul><\/li><\/ul><\/li><li>7-Zip<ul><li>If you don&#8217;t already have this i would be surpised<\/li><li>basically WinZip, except 1000% better<ul><li> <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.7-zip.org\/\" target=\"_blank\">https:\/\/www.7-zip.org\/<\/a> <\/li><\/ul><\/li><\/ul><\/li><li>IDL_MCA<ul><li>This only if you intend to use the IDL enviroment (see the IDL MCA section for why you may not want to download right away)<ul><li> <a href=\"https:\/\/cars.uchicago.edu\/software\/pub\/\">https:\/\/cars.uchicago.edu\/software\/pub\/<\/a>   <\/li><li>right click, download <a rel=\"noreferrer noopener\" target=\"_blank\" href=\"http:\/\/cars.uchicago.edu\/software\/pub\/idl_mca.tar\">http:\/\/cars.uchicago.edu\/software\/pub\/idl_mca.tar<\/a> <\/li><li>A .tar file is like a .zip file. 7-zip will take care of you<\/li><\/ul><\/li><\/ul><\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h3><span class=\"ez-toc-section\" id=\"Set_up_your_NIM-Bin_and_modules\"><\/span>Set up your NIM-Bin and modules<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul><li>Acquire your Min-Bin<ul><li>if this is your first time, it is wise to plug in, power up and test each of the voltages to make sure everything is fine before plugging in your modules. <\/li><\/ul><\/li><li>With Power off, insert your modules<ul><li>it is prudent to place your AIM module in slot 2 and the ADC module into slot 3<\/li><\/ul><\/li><li>Connect your 34pin ribbon cable between the ADC and AIM<\/li><li>Connect your 20pin ICB cables if you are using the ICB functionality<\/li><li>connect the Ethernet transceiver to the AIM<ul><li>There is some degree of strangeness with this step.<\/li><li>Jim tried to get his 556A working recently (via this tutorial) and found that he needed to use a crossover Ethernet cable. <\/li><li>He believes this is because he is using his computers only LAN port, while I am using a PCIe LAN port I added to the computer. <\/li><li>at time of writing, I do not know if my cable is a crossover or not, but one of these days I will try and figure that out \/ update this text. <\/li><\/ul><\/li><li>connect the Ethernet cable to the transceiver and the computers Ethernet port (which must be on the computer, a switch or breakout will not work)<\/li><li>Also set up your other modules if you wish, the amplifier, HV supply, your detector, etc. <\/li><li>With everything connected power up your NIM bin and modules<\/li><li>The AIM should run thru a test sequence, an reach a steady state with the OK light illuminated green. <\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/34pin-ribbon-cable.png\"><img loading=\"lazy\" width=\"1429\" height=\"526\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/34pin-ribbon-cable.png\" alt=\"\" class=\"wp-image-2216\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/34pin-ribbon-cable.png 1429w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/34pin-ribbon-cable-768x283.png 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/34pin-ribbon-cable-604x222.png 604w\" sizes=\"(max-width: 1429px) 100vw, 1429px\" \/><\/a><figcaption>AIM and ADC rear with ribbon cables<\/figcaption><\/figure>\n\n\n\n<div class=\"wp-container-3 wp-block-columns\">\n<div class=\"wp-container-1 wp-block-column\"><div class=\"wp-block-image\">\n<figure class=\"alignleft size-large is-resized\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/34pin-ribbon-and-ethernet.png\"><img loading=\"lazy\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/34pin-ribbon-and-ethernet.png\" alt=\"\" class=\"wp-image-2215\" width=\"248\" height=\"316\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/34pin-ribbon-and-ethernet.png 730w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/34pin-ribbon-and-ethernet-211x270.png 211w\" sizes=\"(max-width: 248px) 100vw, 248px\" \/><\/a><figcaption>AIM and ADC rear, Showing Ethernet transceiver and 34pin ribbon cable between them.<br>Note, the ICB ribbon cable which would connect from the AIM and ICB compatible modules is not shown. <\/figcaption><\/figure><\/div><\/div>\n\n\n\n<div class=\"wp-container-2 wp-block-column\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/DSA-2000_coms_link-rotated.jpg\"><img loading=\"lazy\" width=\"3024\" height=\"4032\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/DSA-2000_coms_link-rotated.jpg\" alt=\"\" class=\"wp-image-2849\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/DSA-2000_coms_link-rotated.jpg 3024w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/DSA-2000_coms_link-1875x2500.jpg 1875w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/DSA-2000_coms_link-768x1024.jpg 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/DSA-2000_coms_link-1152x1536.jpg 1152w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/DSA-2000_coms_link-1536x2048.jpg 1536w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/DSA-2000_coms_link-203x270.jpg 203w\" sizes=\"(max-width: 3024px) 100vw, 3024px\" \/><\/a><figcaption>Ethernet Transceiver on a DSA-2000<\/figcaption><\/figure>\n<\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h3><span class=\"ez-toc-section\" id=\"Install_Software_and_configure_computer\"><\/span>Install Software and configure computer<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Honestly, once the process was explained to me, it really wasn&#8217;t that hard. I&#8217;m not a computer person, so things really needed to be spelled out for me at some points. I will do the same for you. I apologize if the level of detail is just too much for some. <\/p>\n\n\n\n<p>A note: Initially I performed these operations on Windows 7-64 bit. I and subsequently performed an install on windows 11 as well, and have distributed some minor updates into the below text as a result. over all the two installs were pretty much the same. <\/p>\n\n\n\n<p> It might be worth performing a full backup of your computer before you start&#8230;<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h4>Install The following<\/h4>\n\n\n\n<ul><li>EPICS windows tools<\/li><li>WinPCAP<\/li><li>MobaXterm<\/li><li>Notepad++<\/li><\/ul>\n\n\n\n<h3><span class=\"ez-toc-section\" id=\"Add_EPICS_Window_Tools_to_your_system_PATH\"><\/span> Add EPICS Window Tools to your system PATH <span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul><li>Note: This is slightly different on windows 11, but what needs to be done is the same, it was actually a little easier. <br><\/li><li>Open &#8220;Computer&#8221;, also known as &#8220;My Computer&#8221; <\/li><li>Click &#8220;System Properties&#8221; in the upper left<\/li><li>In the window that opened, Click &#8220;Advanced System Settings&#8221;<\/li><li>In yet another window, Click &#8220;Environment Variables&#8221;<\/li><li>Again in the new window, Under &#8220;System Variables&#8221; locate and select &#8220;Path&#8221; and click &#8220;Edit&#8221;<\/li><li>Now, this is <strong>VERY IMPORTANT-DO NOT DELETE ANYTHING IN THIS BOX<\/strong>, I will not admit to knowing why this is important&#8230;<ul><li>You want to find the end of the variable, <\/li><li>Add a semicolon &#8220;;&#8221;<\/li><li>Type the path to which you installed &#8220;EPICS Windows Tools&#8221;<ul><li>In my case the path was &#8220;C:\\Program Files\\EPICS Windows Tools&#8221;<\/li><\/ul><\/li><li>Click &#8220;Ok&#8221;<\/li><\/ul><\/li><li>to Check that you did it correctly<ul><li>Open the command Prompt (CMD)<ul><li>Type &#8220;PATH&#8221;<\/li><li>The Output should now include the EPICS windows Tools Path you just added<\/li><\/ul><\/li><\/ul><\/li><\/ul>\n\n\n\n<p>Here are some Pics to help you along<\/p>\n\n\n\n<div class=\"wp-container-7 wp-block-columns\">\n<div class=\"wp-container-4 wp-block-column\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/system-Properties.png\"><img loading=\"lazy\" width=\"821\" height=\"621\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/system-Properties.png\" alt=\"\" class=\"wp-image-2178\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/system-Properties.png 821w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/system-Properties-768x581.png 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/system-Properties-357x270.png 357w\" sizes=\"(max-width: 821px) 100vw, 821px\" \/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-container-5 wp-block-column\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/advanced-System-Settings.png\"><img loading=\"lazy\" width=\"822\" height=\"679\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/advanced-System-Settings.png\" alt=\"\" class=\"wp-image-2175\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/advanced-System-Settings.png 822w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/advanced-System-Settings-768x634.png 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/advanced-System-Settings-327x270.png 327w\" sizes=\"(max-width: 822px) 100vw, 822px\" \/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-container-6 wp-block-column\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/Enviroment-Variables.png\"><img loading=\"lazy\" width=\"422\" height=\"472\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/Enviroment-Variables.png\" alt=\"\" class=\"wp-image-2176\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/Enviroment-Variables.png 422w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/Enviroment-Variables-241x270.png 241w\" sizes=\"(max-width: 422px) 100vw, 422px\" \/><\/a><\/figure>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-container-11 wp-block-columns\">\n<div class=\"wp-container-8 wp-block-column\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/Path-Variable.png\"><img loading=\"lazy\" width=\"423\" height=\"470\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/Path-Variable.png\" alt=\"\" class=\"wp-image-2177\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/Path-Variable.png 423w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/Path-Variable-243x270.png 243w\" sizes=\"(max-width: 423px) 100vw, 423px\" \/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-container-9 wp-block-column\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/ThePathVariableMod.png\"><img loading=\"lazy\" width=\"358\" height=\"152\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/ThePathVariableMod.png\" alt=\"\" class=\"wp-image-2180\"\/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-container-10 wp-block-column\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/TestforPath.png\"><img loading=\"lazy\" width=\"988\" height=\"155\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/TestforPath.png\" alt=\"\" class=\"wp-image-2179\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/TestforPath.png 988w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/TestforPath-768x120.png 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/TestforPath-604x95.png 604w\" sizes=\"(max-width: 988px) 100vw, 988px\" \/><\/a><\/figure>\n<\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h3><span class=\"ez-toc-section\" id=\"Modifying_Max_Bytes\"><\/span>Modifying Max_Bytes<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If you try to use epics for more than 2048 channels.  You will find that you cant read all the data due to a Max Bytes limit. This will fix that. <\/p>\n\n\n\n<ul><li>Follow instructions in &#8220;Add EPICS Window Tools to your system PATH&#8221; to access system variables (above)<\/li><li>Under system variables Click New<ul><li>type &#8220;EPICS_CA_MAX_ARRAY_BYTES&#8221; for variable name<\/li><li>make the variable value, something large. <ul><li>I chose &#8220;10000000&#8221;<\/li><\/ul><\/li><\/ul><\/li><\/ul>\n\n\n\n<div class=\"wp-container-14 wp-block-columns\">\n<div class=\"wp-container-12 wp-block-column\"><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/New-Enviroment-Variable-copy.png\" alt=\"\" class=\"wp-image-2842\" width=\"197\" height=\"217\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/New-Enviroment-Variable-copy.png 394w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/New-Enviroment-Variable-copy-245x270.png 245w\" sizes=\"(max-width: 197px) 100vw, 197px\" \/><\/figure><\/div><\/div>\n\n\n\n<div class=\"wp-container-13 wp-block-column\"><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/Max_Bytes_Variable.png\"><img loading=\"lazy\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/Max_Bytes_Variable.png\" alt=\"\" class=\"wp-image-2834\" width=\"181\" height=\"80\"\/><\/a><\/figure><\/div><\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h3><span class=\"ez-toc-section\" id=\"IDL_path_variable\"><\/span>IDL path variable<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>You should only need to do this step if you plan to use the IDL MCA, otherwise just ignore it<\/p>\n\n\n\n<ul><li> Follow instructions in &#8220;Add EPICS Window Tools to your system PATH&#8221; to access system variables (above)<ul><li>Under system variables Click New<\/li><li>type &#8220;EZCA_IDL_SHARE&#8221; for variable name<\/li><li>The varible value is the path to &#8220;ezcaIDL.dll_Win32_x86_64&#8221;<ul><li>in my case &#8220;C:\\EPICS\\idl_mca\\epics\\ezcaIDL.dll_Win32_x86_64&#8221;<\/li><li>obviously pick the x86 version only if your on a 32 bit system<\/li><\/ul><\/li><\/ul><\/li><\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/IDL-system-variable.png\"><img loading=\"lazy\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/IDL-system-variable.png\" alt=\"\" class=\"wp-image-2837\" width=\"179\" height=\"78\"\/><\/a><\/figure><\/div>\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h3><span class=\"ez-toc-section\" id=\"Extract_the_Standalone_Epics_MCA_Application\"><\/span>Extract the Standalone Epics MCA Application <span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul><li>Create a new folder under the &#8220;C:&#8221; drive (or whatever drive your OS is installed on)<ul><li>I called my folder &#8220;EPICS&#8221;<\/li><\/ul><\/li><li>Within the created folder, create 2 more folders . <ul><li>I called one new folder &#8220;ADLS&#8221; the reason will become clear later<\/li><li>The other mcaStandalone_R7-7, this name mirrors the .zip file you should have downloaded earlier<\/li><\/ul><\/li><li>Extract the mcaStandalone_R7-7.zip files into the folder you created<ul><li><a href=\"https:\/\/www.google.com\/search?ei=CJNyXoDTAbKtytMP982EYA&amp;q=how+to+extract+files&amp;oq=how+to+extract+files&amp;gs_l=psy-ab.12...0.0..2993...0.0..0.0.0.......0......gws-wiz.PszcsoenKPU&amp;ved=0ahUKEwiA95Sg_KToAhWylnIEHfcmAQwQ4dUDCAs\">if you dont know how to extract files<\/a> google will help<\/li><\/ul><\/li><li>The next step is to gather all the .adl files into one location<ul><li>Open the  &#8220;mcaStandalone_R7-7&#8221; folder<\/li><li>in the search bar type &#8220;*.adl&#8221;<ul><li>This searches for a particular file extension<\/li><\/ul><\/li><li>Copy all the files it finds and paste them into the &#8220;ADLS&#8221; file you created earlier<ul><li>ctrl-A will select all the files<\/li><li>ctrl-C will copy the files<\/li><li>ctrl-V will paste the files<\/li><\/ul><\/li><\/ul><\/li><\/ul>\n\n\n\n<p>Here are some pics to help you along<\/p>\n\n\n\n<div class=\"wp-container-18 wp-block-columns\">\n<div class=\"wp-container-15 wp-block-column\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/EPICS-folder.png\"><img loading=\"lazy\" width=\"688\" height=\"241\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/EPICS-folder.png\" alt=\"\" class=\"wp-image-2187\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/EPICS-folder.png 688w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/EPICS-folder-604x212.png 604w\" sizes=\"(max-width: 688px) 100vw, 688px\" \/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-container-16 wp-block-column\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/mcaStandalone-Folder.png\"><img loading=\"lazy\" width=\"683\" height=\"329\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/mcaStandalone-Folder.png\" alt=\"\" class=\"wp-image-2188\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/mcaStandalone-Folder.png 683w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/mcaStandalone-Folder-561x270.png 561w\" sizes=\"(max-width: 683px) 100vw, 683px\" \/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-container-17 wp-block-column\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/adls-search.png\"><img loading=\"lazy\" width=\"874\" height=\"463\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/adls-search.png\" alt=\"\" class=\"wp-image-2186\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/adls-search.png 874w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/adls-search-768x407.png 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/adls-search-510x270.png 510w\" sizes=\"(max-width: 874px) 100vw, 874px\" \/><\/a><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h3><span class=\"ez-toc-section\" id=\"Testing_Epics_Windows_Tools\"><\/span>Testing Epics Windows Tools<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul><li>Open the commands prompt (CMD) <\/li><li>Type &#8220;caget&#8221;<ul><li>You should receive a response <\/li><li>&#8220;No PV name specified. &lt;&#8216;caget -h&#8217; for help.&gt;&#8221;<\/li><\/ul><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/caget.png\"><img loading=\"lazy\" width=\"674\" height=\"159\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/caget.png\" alt=\"\" class=\"wp-image-2192\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/caget.png 674w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/caget-604x142.png 604w\" sizes=\"(max-width: 674px) 100vw, 674px\" \/><\/a><\/figure>\n\n\n\n<h3><span class=\"ez-toc-section\" id=\"Run_MobaXterm\"><\/span>Run MobaXterm<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul><li>Locate and Run &#8220;MobaXterm.exe&#8221;<ul><li>Mine was located in&#8221;C:\\Program Files (x86)\\Mobatek\\MobaXterm&#8221;<\/li><\/ul><\/li><li>A window should appear<\/li><li><strong>Minimize it<\/strong>, as we need it open, but do not need to do anything with it directly<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/moboxterm.png\"><img loading=\"lazy\" width=\"940\" height=\"525\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/moboxterm.png\" alt=\"\" class=\"wp-image-2213\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/moboxterm.png 940w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/moboxterm-768x429.png 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/moboxterm-483x270.png 483w\" sizes=\"(max-width: 940px) 100vw, 940px\" \/><\/a><\/figure>\n\n\n\n<h3><span class=\"ez-toc-section\" id=\"Testing_Medm\"><\/span>Testing Medm<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul><li>In the EPICS WINDOWS TOOLS directory, locate and run \u201cmedm.exe\u201d <\/li><li>if EPICS windows tools and the path was set correctly 2 small windows  should open<ul><li>if they only open momentarily, something is wrong<\/li><\/ul><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/medm.png\"><img loading=\"lazy\" width=\"441\" height=\"290\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/medm.png\" alt=\"\" class=\"wp-image-2219\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/medm.png 441w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/medm-411x270.png 411w\" sizes=\"(max-width: 441px) 100vw, 441px\" \/><\/a><\/figure>\n\n\n\n<h3><span class=\"ez-toc-section\" id=\"Test_EPICS_itself\"><\/span>Test EPICS itself<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul><li>Navigate to \u201cC:\\EPICS\\mcaStandalone_R7-7\\mca-7-7\\bin\\windows-x64-static\u201d <\/li><li>run \u201cmcaAIM.exe\u201d  <ul><li>the CMD should open with &#8220;epics&gt;&#8221; displayed<\/li><li>If it only opens momentarily, something is wrong<\/li><\/ul><\/li><li>type &#8220;exit&#8221; to leave EPICS<\/li><\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/epics-1.png\"><img loading=\"lazy\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/epics-1.png\" alt=\"\" class=\"wp-image-2221\" width=\"365\" height=\"184\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/epics-1.png 675w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/epics-1-536x270.png 536w\" sizes=\"(max-width: 365px) 100vw, 365px\" \/><\/a><\/figure><\/div>\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h3><span class=\"ez-toc-section\" id=\"Create_AutoSave_Folder\"><\/span>Create AutoSave Folder<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul><li>Navigate to &#8220;C:\\EPICS\\mcaStandalone_R7-7\\mca-7-7\\iocBoot\\iocWindows&#8221;<\/li><li>Create a new folder called &#8220;autosave&#8221; if one does not already exist<\/li><\/ul>\n\n\n\n<h3><span class=\"ez-toc-section\" id=\"Configure_the_EnvPaths_File\"><\/span>Configure the EnvPaths File<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul><li>Open &#8220;envPaths&#8221; with notepad++ (right click, edit with notepad++)<ul><li>Edit the paths to reflect the actual file locations (ie, change them all to be where you put all the extracted MCA folders) <\/li><li>I extracted the MCA folders into the folder we created earlier &#8220;C:\/EPICS\/mcaStandalone_R7-7&#8221;<\/li><li>NOTE: The &#8220;EPICS_BASE&#8221; path doesn\u2019t matter, but change it anyway for completeness<\/li><li>Note: Not all of the paths have folders in the mcaStandalone folder, but change all the directory\u2019s anyway. <\/li><\/ul><\/li><li>Save and close envPaths <\/li><li>Open &#8220;st.cmd&#8221; with Notepad++ (right click, edit with notepad++) <\/li><\/ul>\n\n\n\n<div class=\"wp-container-21 wp-block-columns\">\n<div class=\"wp-container-19 wp-block-column\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/iocwindows.png\"><img loading=\"lazy\" width=\"780\" height=\"351\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/iocwindows.png\" alt=\"\" class=\"wp-image-2225\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/iocwindows.png 780w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/iocwindows-768x346.png 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/iocwindows-600x270.png 600w\" sizes=\"(max-width: 780px) 100vw, 780px\" \/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-container-20 wp-block-column\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/envPaths.png\"><img loading=\"lazy\" width=\"804\" height=\"699\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/envPaths.png\" alt=\"\" class=\"wp-image-2224\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/envPaths.png 804w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/envPaths-768x668.png 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/envPaths-311x270.png 311w\" sizes=\"(max-width: 804px) 100vw, 804px\" \/><\/a><\/figure>\n<\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h3><span class=\"ez-toc-section\" id=\"Prepare_stcmd\"><\/span>Prepare st.cmd<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>This step is so important it deserved it&#8217;s own section<\/p>\n\n\n\n<p>You should still be in  &#8220;C:\\EPICS\\mcaStandalone_R7-7\\mca-7-7\\iocBoot\\iocWindows&#8221;, locate and open &#8220;st.cmd&#8221;.<\/p>\n\n\n\n<p>Note: The st.CMD files for the R_10 version needed when using Windows 11 are slightly different than the st.CMD files needed for the R_7 version. Don&#8217;t just copy this file from the other version, go thru and manually create a new one from the template. <\/p>\n\n\n\n<p>Lets start with what &#8220;st.cmd&#8221; is; effectively its a set of commands what will run in the command prompt, the commands link EPICS thru mobaXterm to the AIM<br><br>Just looking at &#8220;st.cmd&#8221;, it appears that there is a lot going on. <br>It can be broken down into several sub categories.<br><\/p>\n\n\n\n<ol><li>Initialization <\/li><li>AIM Configuration<\/li><li>Database Configuration<\/li><li>ICB configuration<\/li><\/ol>\n\n\n\n<p>st.cmd also does a good job with its own internal descriptions, which I will mirror in part on this page. <\/p>\n\n\n\n<div class=\"wp-container-24 wp-block-columns\">\n<div class=\"wp-container-22 wp-block-column\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/stcmd_open.png\"><img loading=\"lazy\" width=\"964\" height=\"667\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/stcmd_open1.png\" alt=\"\" class=\"wp-image-2240\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/stcmd_open1.png 964w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/stcmd_open1-768x531.png 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/stcmd_open1-390x270.png 390w\" sizes=\"(max-width: 964px) 100vw, 964px\" \/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-container-23 wp-block-column\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/stcmd_open2.png\"><img loading=\"lazy\" width=\"1031\" height=\"818\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/stcmd_open2.png\" alt=\"\" class=\"wp-image-2237\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/stcmd_open2.png 1031w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/stcmd_open2-768x609.png 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/stcmd_open2-340x270.png 340w\" sizes=\"(max-width: 1031px) 100vw, 1031px\" \/><\/a><\/figure>\n<\/div>\n<\/div>\n\n\n\n<ul><li> The file structures we care about look like this  <ul><li>AIMConfig(portName, ethernetAddress, PortNumber(1 or 2), maxChannels, maxSignals,maxSequences, ethernetDeviceID)<\/li><\/ul><ul><li>icbConfig(portName, module, ethernetAddress, IcbAddress, moduleType)<\/li><li>You also need to care about the NCHAN parameter in dbload records. <\/li><\/ul><\/li><\/ul>\n\n\n\n<p>Thankfully, we only need to alter a few things in the file.<br>For starters. <\/p>\n\n\n\n<ul><li>The 556&#8217;s Ethernet device address   <ul><li>This is specific to your AIM<\/li><\/ul><\/li><li>The ethernet device ID<ul><li>This is specific to your computer<\/li><\/ul><\/li><li>Whatever ICB devices you use need to be configured<ul><li>specific to your NIM modules<\/li><\/ul><\/li><li>You&#8217;ll need to set the max numbers of channels as well<\/li><\/ul>\n\n\n\n<ul><li>The first step is to get the 556&#8217;s Ethernet address  <ul><li>That&#8217;s fairly easy, as its on the front of your AIM module. <\/li><\/ul><ul><li>If its been scraped off or is absent for whatever reason there are 2 options for you<ul><li> Open the unit, and hope its printed on the chip as discovered by our good friend Jim.<ul><li>See image Below for where to look  <\/li><\/ul><\/li><li>Recover the ID via the local terminal of the 556 (port on the front of the device)<ul><li>A friend named Lucian figured out you can use software called Putty <a href=\"https:\/\/www.putty.org\/\">https:\/\/www.putty.org\/<\/a> to access the local terminal of the 556 using an RS232 protocol and recover the Ethernet address with some cable building trickery. <a href=\"https:\/\/www.madexp.com\/2021\/05\/14\/556-aim-eth\">https:\/\/www.madexp.com\/2021\/05\/14\/556-aim-eth<\/a><\/li><li>I also copied that info to a .pdf just in case his web page ever disappeared. Found here <a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/Canberra_556-AIM-Ethernet-address-recovery-procedure-1.pdf\">Canberra_556 AIM Ethernet address recovery procedure<\/a> <\/li><\/ul><\/li><\/ul><\/li><\/ul><\/li><li>Located on the rear of the DSA-2000, if you are using one of those<\/li><li>we need to replace  (the &#8220;0xA60&#8221; for example) with whatever your AIM modules address is, in both the &#8220;icbConfig&#8221; and &#8220;AIMConfig&#8221; fields<ul><li>Note: a &#8220;#&#8221; in front of a line means its commented out and inactive<\/li><li>Note: you only need to change 2 lines for AIMConfig, &#8220;AIM1\/1&#8221; and &#8220;AIM1\/2&#8221;. (this because 1 AIM has 2 ADC ports.) I picked the bottom 2 in the list to change. <\/li><li>Note: you can just delete the AIMconfig lines that you&#8217;re not using. Unless you intend to try and run multiple AIM boxes at a time&#8230; (unlikely for an at home user)<\/li><\/ul><\/li><li>Make sure the 2 lines you change are not commented out<\/li><li>You will also note other parameters in the AIMConfig fields<\/li><\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/AIM-front-hilighted.png\"><img loading=\"lazy\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/AIM-front-hilighted.png\" alt=\"\" class=\"wp-image-2242\" width=\"180\" height=\"532\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/AIM-front-hilighted.png 322w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/AIM-front-hilighted-91x270.png 91w\" sizes=\"(max-width: 180px) 100vw, 180px\" \/><\/a><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/AIM-556-internals-edited.jpg\"><img loading=\"lazy\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/AIM-556-internals-edited.jpg\" alt=\"\" class=\"wp-image-3471\" width=\"309\" height=\"412\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/AIM-556-internals-edited.jpg 3024w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/AIM-556-internals-edited-1875x2500.jpg 1875w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/AIM-556-internals-edited-768x1024.jpg 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/AIM-556-internals-edited-1152x1536.jpg 1152w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/AIM-556-internals-edited-1536x2048.jpg 1536w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/AIM-556-internals-edited-203x270.jpg 203w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/AIM-556-internals-edited-749x999.jpg 749w\" sizes=\"(max-width: 309px) 100vw, 309px\" \/><\/a><figcaption>Where to find the AIM Ethernet Address, inside the module (if you are lucky)<\/figcaption><\/figure><\/div>\n\n\n<h3><span class=\"ez-toc-section\" id=\"The_Ethernet_Device_ID\"><\/span>The Ethernet_Device_ID<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/stcmd_open3.png\"><img loading=\"lazy\" width=\"964\" height=\"667\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/stcmd_open3.png\" alt=\"\" class=\"wp-image-2238\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/stcmd_open3.png 964w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/stcmd_open3-768x531.png 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/stcmd_open3-390x270.png 390w\" sizes=\"(max-width: 964px) 100vw, 964px\" \/><\/a><\/figure>\n\n\n\n<p>Getting your Ethernet Device ID is a bit trickier. But with trickery we can find it without too much pain. We will let EPICS do the finding for us. <\/p>\n\n\n\n<ul><li>Open the command prompt<\/li><li>you will need to change the directory to the iocWindows folder<ul><li>type <\/li><li>&#8220;cd C:\\EPICS\\mcaStandalone_R7-7\\mca-7-7\\iocBoot\\iocWindows&#8221; <\/li><\/ul><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/change-directory.png\"><img loading=\"lazy\" width=\"613\" height=\"141\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/change-directory.png\" alt=\"\" class=\"wp-image-2254\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/change-directory.png 613w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/change-directory-604x139.png 604w\" sizes=\"(max-width: 613px) 100vw, 613px\" \/><\/a><\/figure>\n\n\n\n<ul><li>now you need to run the mcaAIM executable from the iocWindows folder, with the st.cmd file tacked on to the end. for me this command looks like<ul><li>&#8220;..\\..\\bin\\windows-x64-static\\mcaAIM st.cmd&#8221;<ul><li>the &#8220;..\\..\\&#8221; moves us up 2 directories and then you start going back down in directories &#8220;\\bin\\..etc&#8221; eventually calling mcaAIM<\/li><li>Putting a space and then typing &#8220;st.cmd&#8221; opens the file along with the mcaAIM.exe, executing the commands found within. <\/li><li>Note the lack of &#8220;cd&#8221; in the command set. We did not change the current directory. We simply accessed another directory from our current directory. <\/li><li>Being not a computer person, I had no idea you could do things like this&#8230; <\/li><\/ul><\/li><\/ul><\/li><li>Now a CMD window will open, and a ton of stuff is going to happen<ul><li>if it doesn&#8217;t something is wrong&#8230;<\/li><\/ul><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/mcaAIM-initialCMD-output.png\"><img loading=\"lazy\" width=\"1008\" height=\"1039\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/mcaAIM-initialCMD-output.png\" alt=\"\" class=\"wp-image-2256\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/mcaAIM-initialCMD-output.png 1008w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/mcaAIM-initialCMD-output-768x792.png 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/mcaAIM-initialCMD-output-262x270.png 262w\" sizes=\"(max-width: 1008px) 100vw, 1008px\" \/><\/a><figcaption>A ton of stuff happened<\/figcaption><\/figure>\n\n\n\n<ul><li>The only thing we really care about here is that it failed<ul><li>But failure is a good thing, as in failing it told us the available Ethernet device ID&#8217;s <\/li><\/ul><\/li><li>my computer lists 2 ID&#8217;s<ul><li>one is the Ethernet port on my motherboard which is connected to my wifi router \/ switch<\/li><li>The other is a network card I installed specifically to support the direct connect requirement the AIM needs. <\/li><\/ul><\/li><li>I Placed each ID into my st.cmd file separately and repeated the above steps to find out if it worked or not. turns out the 2nd one was correct.<ul><li>The first number showed me <\/li><\/ul><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/1st-number.png\"><img loading=\"lazy\" width=\"767\" height=\"54\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/1st-number.png\" alt=\"\" class=\"wp-image-2261\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/1st-number.png 767w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/1st-number-604x43.png 604w\" sizes=\"(max-width: 767px) 100vw, 767px\" \/><\/a><figcaption>The 1st Ethernet Device ID number<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/2nd-number.png\"><img loading=\"lazy\" width=\"973\" height=\"88\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/2nd-number.png\" alt=\"\" class=\"wp-image-2262\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/2nd-number.png 973w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/2nd-number-768x69.png 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/2nd-number-604x55.png 604w\" sizes=\"(max-width: 973px) 100vw, 973px\" \/><\/a><figcaption>the 2nd correct Ethernet Device ID number<\/figcaption><\/figure>\n\n\n\n<ul><li>A correct choice will also alter the state of the AIM unit itself, displaying an &#8220;In Use&#8221; light<\/li><\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/in-use.jpg\"><img loading=\"lazy\" width=\"417\" height=\"1230\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/in-use.jpg\" alt=\"\" class=\"wp-image-2263\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/in-use.jpg 417w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/in-use-92x270.jpg 92w\" sizes=\"(max-width: 417px) 100vw, 417px\" \/><\/a><figcaption>Yay it&#8217;s connected! <\/figcaption><\/figure><\/div>\n\n\n<h3><span class=\"ez-toc-section\" id=\"Adjusting_Max_Channels\"><\/span>Adjusting Max Channels<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul><li>You will need to specify the  channels via the  dbLoadRecords field as well as the channels field in the AIMConfig field.<\/li><li>In dbLoadRecords the &#8220;NCHAN=####&#8221; parameter<ul><li>This is the channels your AIM will  read from the ACD and display.<\/li><li>Your options are in multiples of 2 starting at 256.<\/li><\/ul><ul><li>256, 512, 1024, 2048, 4096, 8192, 16384.<ul><li>Note, the actual capability will be limited to your ADCs capability<\/li><li>Also, side note using too many channels is silly, <ul><li>Scintillators should use 1024 or 2048. <\/li><li>HPGe&#8217;s should use 4096, 8192, or in rare cases 16384.<\/li><\/ul><\/li><\/ul><\/li><li>Note, there are 2 lines of dbLoadRecords, one for each ADC port on the rear of the AIM. <\/li><\/ul><\/li><li>Similarly in the AIMConfig the Maxchannels number needs to be set<ul><li>This is where you set the max capability of your ADC. <\/li><li>Or, the max capability you intend to utilize. <\/li><\/ul><\/li><li>You will need to restart the AIM, and the software on the computer to enable these changes<\/li><\/ul>\n\n\n\n<h3><span class=\"ez-toc-section\" id=\"Setting_the_ICB_bus_settings_in_stcmd\"><\/span>Setting the ICB bus settings in st.cmd<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The instrument control bus (ICB) is a neat digital control scheme which lets you control ICB enabled modules from the computer. Its useful in that it enables remote control<\/p>\n\n\n\n<ul><li>Each ICB enabled device has a specific address<ul><li>this address is user adjustable, within a predetermined range<\/li><li>the address is found on the NIM module<\/li><\/ul><\/li><li>Look for a hole on the nim module, <ul><li>inside should be a little indexed trim pot type object <\/li><\/ul><\/li><li>The arrow points to your devices address<ul><li>Note: you cannot have 2 of the same address on one ICB bus<\/li><li>Make adjustments if necessary<\/li><\/ul><\/li><\/ul>\n\n\n\n<div class=\"wp-container-27 wp-block-columns\">\n<div class=\"wp-container-25 wp-block-column\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/20200318_221111_edit.png\"><img loading=\"lazy\" width=\"3366\" height=\"2304\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/20200318_221111_edit.png\" alt=\"\" class=\"wp-image-2282\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/20200318_221111_edit.png 3366w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/20200318_221111_edit-768x526.png 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/20200318_221111_edit-1536x1051.png 1536w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/20200318_221111_edit-2048x1402.png 2048w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/20200318_221111_edit-394x270.png 394w\" sizes=\"(max-width: 3366px) 100vw, 3366px\" \/><\/a><figcaption>An ICB NIM module<\/figcaption><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-container-26 wp-block-column\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/20200318_221224.jpg\"><img loading=\"lazy\" width=\"4032\" height=\"3024\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/20200318_221224.jpg\" alt=\"\" class=\"wp-image-2283\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/20200318_221224.jpg 4032w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/20200318_221224-768x576.jpg 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/20200318_221224-1536x1152.jpg 1536w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/20200318_221224-2048x1536.jpg 2048w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/20200318_221224-360x270.jpg 360w\" sizes=\"(max-width: 4032px) 100vw, 4032px\" \/><\/a><figcaption>Inside an ICB NIM Module<\/figcaption><\/figure>\n<\/div>\n<\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/stcmd_open-4.png\"><img loading=\"lazy\" width=\"1035\" height=\"816\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/stcmd_open-4.png\" alt=\"\" class=\"wp-image-2286\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/stcmd_open-4.png 1035w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/stcmd_open-4-768x605.png 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/stcmd_open-4-342x270.png 342w\" sizes=\"(max-width: 1035px) 100vw, 1035px\" \/><\/a><figcaption>st.cmd<\/figcaption><\/figure>\n\n\n\n<ul><li>icbConfig(&#8220;portName&#8221;, module, ethernetAddress, icbAddress, moduleType)<ul><li>portname = &#8220;icbAdc1&#8243;,&#8221;icbAmp1&#8243;,&#8221;icbHVPS1&#8221;, etc<ul><li>if you had say 2 HVPS units increment the number &#8220;icbHVPS2&#8221;<\/li><\/ul><\/li><li>ethernetAddress = the value found on the AIM<\/li><li>IcbAddress = the value found above<\/li><li>ModuleType: &#8220;0&#8221;=ADC, &#8220;1&#8221;=Amplifier,&#8221;2&#8243;=HVPS, &#8220;3&#8221;=TCA, &#8220;4&#8221;=DSP<\/li><\/ul><\/li><li>Don&#8217;t forget to uncomment active icb modules<\/li><li>You will need to restart the AIM, and the software on the computer to enable these changes <\/li><\/ul>\n\n\n\n<p>Here is some code if you need to copy (you shouldn&#8217;t, as its already in the file, you just need to change parameters)<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;no&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;solarized&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">AIMConfig(&quot;AIM1\/1&quot;, 0xA60, 1, 8192, 1, 1, &quot;\\Device\\NPF_{D3002510-F57E-485F-98D4-CDC2949E0E7F}&quot;)\nAIMConfig(&quot;AIM1\/2&quot;, 0xA60, 2, 8192, 1, 1, &quot;\\Device\\NPF_{D3002510-F57E-485F-98D4-CDC2949E0E7F}&quot;)\n\ndbLoadRecords(&quot;$(MCA)\/mcaApp\/Db\/mca.db&quot;, &quot;P=mcaTest:,M=aim_adc1,DTYP=asynMCA,INP=@asyn(AIM1\/1 0),NCHAN=4096&quot;)\ndbLoadRecords(&quot;$(MCA)\/mcaApp\/Db\/mca.db&quot;, &quot;P=mcaTest:,M=aim_adc2,DTYP=asynMCA,INP=@asyn(AIM1\/2 0),NCHAN=2048&quot;)\n\nicbConfig(&quot;icbAdc1&quot;, 0xA60, 0, 0)\ndbLoadRecords(&quot;$(MCA)\/mcaApp\/Db\/icb_adc.db&quot;, &quot;P=mcaTest:,ADC=adc1,PORT=icbAdc1&quot;)\n\nicbConfig(&quot;icbAmp1&quot;, 0xA60, 2, 1)\ndbLoadRecords(&quot;$(MCA)\/mcaApp\/Db\/icb_amp.db&quot;, &quot;P=mcaTest:,AMP=amp1,PORT=icbAmp1&quot;)\n\nicbConfig(&quot;icbHvps1&quot;, 0xA60, 4, 2)\ndbLoadRecords(&quot;$(MCA)\/mcaApp\/Db\/icb_hvps.db&quot;, &quot;P=mcaTest:,HVPS=hvps1,PORT=icbHvps1,LIMIT=2000&quot;)<\/pre><\/div>\n\n\n\n<h3><span class=\"ez-toc-section\" id=\"DSA-2000_stcmd\"><\/span>DSA-2000 st.cmd<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul><li>Preparing the st.cmd file for a DSA unit is much the same<ul><li>Read the address off the units rear, <\/li><li>get the Ethernet device ID<\/li><li>etc, refer up this page a little for more info<\/li><\/ul><\/li><li>modify stuff in the st.cmd file<ul><li>once again, refer up the page for more info<\/li><\/ul><\/li><li>You will need to specify a different HV config <ul><li>DSA2000Config(&#8220;DSA2000&#8221;, 0x829F)<\/li><li>and load the records for it<\/li><\/ul><\/li><li>As well as load a DSP specific ICB unit. <ul><li>icbConfig(&#8220;icbDsp1&#8221;, 0x829F, 0, 4)<\/li><\/ul><\/li><\/ul>\n\n\n\n<p>look at the source material if you have further questions<br> <a href=\"https:\/\/cars9.uchicago.edu\/software\/epics\/mcaCanberra.html\">https:\/\/cars9.uchicago.edu\/software\/epics\/mcaCanberra.html<\/a> <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;no&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;solarized&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">AIMConfig(&quot;AIM1\/1&quot;, 0x829F, 1, 2048, 1, 1, &quot;\\Device\\NPF_{D3002510-F57E-485F-98D4-CDC2949E0E7F}&quot;)\ndbLoadRecords(&quot;$(MCA)\/mcaApp\/Db\/mca.db&quot;, &quot;P=mcaTest:,M=aim_adc1,DTYP=asynMCA,INP=@asyn(AIM1\/1 0),NCHAN=2048&quot;)\n\nicbConfig(&quot;icbDsp1&quot;, 0x829F, 0, 4)\ndbLoadRecords(&quot;$(MCA)\/mcaApp\/Db\/icbDsp.db&quot;, &quot;P=mcaTest:,DSP=dsp1,PORT=icbDsp1&quot;)\n\nDSA2000Config(&quot;DSA2000&quot;, 0x829F)\ndbLoadRecords(&quot;$(MCA)\/mcaApp\/Db\/DSA2000_HVPS.db&quot;, &quot;P=mcaTest:,HVPS=hvps1:,PORT=DSA2000,LIMIT=2000&quot;)<\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/DSA-2000_ST_CMD.png\"><img loading=\"lazy\" width=\"991\" height=\"136\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/DSA-2000_ST_CMD.png\" alt=\"\" class=\"wp-image-2851\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/DSA-2000_ST_CMD.png 991w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/DSA-2000_ST_CMD-768x105.png 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/DSA-2000_ST_CMD-604x83.png 604w\" sizes=\"(max-width: 991px) 100vw, 991px\" \/><\/a><figcaption>DSA-2000 st.cmd commands<\/figcaption><\/figure>\n\n\n\n<h2><span class=\"ez-toc-section\" id=\"Save_Restore_Setup\"><\/span>Save Restore Setup<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>(Section Added in March of 2024)<\/p>\n\n\n\n<p>When expanding your capability beyond what is typical; using more than 1 of the same module type, using the DSA-2000, multiple AIM units, etc. You will find that you consistently get errors related to save restore not connecting for the new modules. This is because there is an additional step necessary to configure save_restore. <\/p>\n\n\n\n<ul><li>First navigate to the iocWindows folder (same folder where st.CMD is located<\/li><li>Locate auto_settings.req and open with notepad<\/li><li>Duplicate and rename the module names to reflect what you have defined in st.CMD<\/li><li>Comment out items not being used with a #<\/li><li>Your version will probably not include the DSA-2000 specific fields. I have included them below<\/li><\/ul>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;no&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;octave&quot;,&quot;mime&quot;:&quot;text\/x-octave&quot;,&quot;theme&quot;:&quot;solarized&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Octave&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;octave&quot;}\">file &quot;mca_settings.req&quot;,            P=$(P), M=aim_adc1\nfile &quot;mca_settings.req&quot;,            P=$(P), M=aim_adc2\nfile &quot;icb_amp_settings.req&quot;,        P=$(P), AMP=amp1\nfile &quot;icb_adc_settings.req&quot;,        P=$(P), ADC=adc1\nfile &quot;icb_hvps_settings.req&quot;,       P=$(P), HVPS=hvps1\n# file &quot;icb_tca_settings.req&quot;,        P=$(P), TCA=tca1\n# file &quot;icbDsp_settings.req&quot;,         P=$(P), DSP=dsp1\n# file &quot;DSA2000_HVPS_settings.req&quot;,   P=$(P), HVPS=hvps3:<\/pre><\/div>\n\n\n\n<h2><span class=\"ez-toc-section\" id=\"Issuing_your_First_Commands\"><\/span> Issuing your First Commands <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Now that you have everything working, its time to try and control the module, learn to read data. The basic method is to issue a console command. Later we will use some build in software to make it easier.<\/p>\n\n\n\n<p>Now that everything is installed, lets start up from scratch<\/p>\n\n\n\n<ul><li>Turn on both the computer and the NIM-BIN<\/li><li>run mobaXterm<\/li><li>Run the mcaAIM st.cmd as described above<ul><li>Note: I find it convenient to use a batch file to just do this for me. You will have to edit the paths, but here is an example.<\/li><li><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/ExampleCommandFiles.zip\" target=\"_blank\">exampleCommandFile.CMD<\/a> <\/li><\/ul><\/li><li>Open the command prompt (CMD)<\/li><li>type  &#8220;caput mcaTest:AIM_adc1EraseStart 1&#8221;<ul><li>You should notice that your AIM now has some more lights on, and appears to be acquiring<\/li><\/ul><\/li><li>type &#8220;caput mcaTest:AIM_adc1Stop 1&#8221;<ul><li>it should stop and return to an idle state<\/li><\/ul><\/li><li>Type &#8220;caget mcaTest:aim_adc1Read&#8221;<ul><li>you should get a flood of number, channels and counts<\/li><li>if you have opted to use a high channel number it might scroll for quite some time. <\/li><\/ul><\/li><li>You can direct the data to save file like so<ul><li>type &#8220;caget mcaTest:aim_adc1 &gt; C:\\EPICS\\mcaStandalone_R7-7\\Cs-137.txt&#8221;<\/li><li>Adjusting the path to your liking of course<\/li><\/ul><\/li><\/ul>\n\n\n\n<h2><span class=\"ez-toc-section\" id=\"CAClient_Exception\"><\/span>CA.Client Exception<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>(Section added in March 2024)<\/p>\n\n\n\n<p>Depending on the computer configuration you may encounter a specific &#8220;CA.Client.Exception Identical process variable names on multiple servers&#8221; error (which doesn&#8217;t seem to hurt anything, but is very annoying)<\/p>\n\n\n\n<p>I reached out of Mark and he indicates&#8230; <\/p>\n\n\n\n<p>That warning happens under the following circumstances:<\/p>\n\n\n\n<ul><li>The Channel Access server (the IOC) and the Channel Access client (medm, IDL, etc.) are running on the same machine.<\/li><li>The machine has more than one network card.<\/li><li>The EPICS_CA_AUTO_ADDR_LIST and EPICS_CA_ADDR_LIST environment variables are not defined or are defined to use the normal setting of searching all networks for EPICS PVs.<\/li><\/ul>\n\n\n\n<p>The problem arises because local PVs appear to be coming from multiple network adapters, so they are duplicated.<\/p>\n\n\n\n<p>The solution is easy.&nbsp; Set the environment variables as follows:<\/p>\n\n\n\n<ul><li>EPICS_CA_AUTO_ADDR_LIST set to NO<\/li><li>EPICS_CA_ADDR_LIST set to the broadcast address of one of the network cards.\u00a0 If all PVs are local (none on other machines), \u00a0then you can chose either of your network card subnets.\u00a0 If some PVs are remote then you need to use the broadcast address of the subnet that the remote machines are using.\u00a0 In your case you might set it to ###.###.#.255, assuming that subnet has a mask of 255.255.255.0<\/li><\/ul>\n\n\n\n<p>Thus adding the below should resolve the issue. <br>Again;  it doesn&#8217;t effect anything, its just annoying.  <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;no&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;octave&quot;,&quot;mime&quot;:&quot;text\/x-octave&quot;,&quot;theme&quot;:&quot;solarized&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Octave&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;octave&quot;}\">epicsEnvSet EPICS_CA_AUTO_ADDR_LIST NO\nepicsEnvSet EPICS_CA_ADDR_LIST ###.###.#.255 \n#   ###.###.#.255 = the ip address of your AIM unit <\/pre><\/div>\n\n\n\n<h2><span class=\"ez-toc-section\" id=\"Using_the_built_in_MCA_medm\"><\/span>Using the built in MCA, medm<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Medm is a graphical run time environment built into EPICS, its simple and its gets the job done.  This is the easiest way to get the canberra modules going.<br>If you have been following the tutorial, you already opened it once. Lets do it again and take it a few steps deeper. <\/p>\n\n\n\n<ul><li>Turn on both the computer and the NIM-BIN<\/li><li>run mobaXterm<\/li><li>Run the mcaAIM st.cmd as described above<ul><li>Note: I find it convenient to use a batch file to just do this for me. You will have to edit the paths, but here is an example.<\/li><li><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/ExampleCommandFiles.zip\">exampleCommandFile.CMD <\/a><\/li><\/ul><\/li><li>Run medm.exe found in EPICS windows tools folder<ul><li>note, the linked command file includes example commands for medm too<\/li><\/ul><\/li><li>It usually starts up with &#8220;Edit&#8221; selected<\/li><li>Change that to &#8220;Execute&#8221;<\/li><li>Then select the &#8220;Canberra MCA electronics&#8221; <\/li><li>Choose &#8220;AIM MCA display #1&#8221; from the list<\/li><li>The MCA will flash up a window that will run thru a bunch of commands, then open a GUI<\/li><li>You may also select an ICB device from the list, if you are using one. <\/li><\/ul>\n\n\n\n<div class=\"wp-container-31 wp-block-columns\">\n<div class=\"wp-container-28 wp-block-column\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/medm-home-with-menu-copy.png\"><img loading=\"lazy\" width=\"476\" height=\"332\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/medm-home-with-menu-copy.png\" alt=\"\" class=\"wp-image-2358\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/medm-home-with-menu-copy.png 476w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/medm-home-with-menu-copy-387x270.png 387w\" sizes=\"(max-width: 476px) 100vw, 476px\" \/><\/a><figcaption>Medm<\/figcaption><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-container-29 wp-block-column\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/medm-MCA-with-spectrum.png\"><img loading=\"lazy\" width=\"908\" height=\"608\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/medm-MCA-with-spectrum.png\" alt=\"\" class=\"wp-image-2375\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/medm-MCA-with-spectrum.png 908w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/medm-MCA-with-spectrum-768x514.png 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/medm-MCA-with-spectrum-403x270.png 403w\" sizes=\"(max-width: 908px) 100vw, 908px\" \/><\/a><figcaption>MedM MCA with thorium Spectrum<\/figcaption><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-container-30 wp-block-column\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/HVpsICB-medm.png\"><img loading=\"lazy\" width=\"408\" height=\"314\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/HVpsICB-medm.png\" alt=\"\" class=\"wp-image-2357\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/HVpsICB-medm.png 408w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/HVpsICB-medm-351x270.png 351w\" sizes=\"(max-width: 408px) 100vw, 408px\" \/><\/a><figcaption>A Medm ICB HV supply GUI<\/figcaption><\/figure>\n<\/div>\n<\/div>\n\n\n\n<ul><li>You will note the myriad of control and options found in the Medm MCA, each control correlates to a specific parameter channel the AIM offers.<\/li><li>When you click a button, you call the database (.dB files) which stores the command sets. then transmits the command to the AIM, waiting for a reply or data if necessary. <\/li><li>I leave it to you to explore the software an discover it capabilities. <\/li><\/ul>\n\n\n\n<h2><span class=\"ez-toc-section\" id=\"The_IDL_MCA\"><\/span>The IDL MCA<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Not because its really any fancier. The IDL MCA requires you to download the IDL run-time environment. Which have an annoyingly high level of difficulty when trying to get the freeware from the company. It took me 2 weeks and a few emails to get them to approve my account. You also must be a US citizen. It is nicer than the medm MCA in my opinion. But still lacks certain functionality. They mentioned &#8220;thinking&#8221; of making a standalone run-time environment which did not require an account to download, I have not checked to find out if they did or not. <\/p>\n\n\n\n<p>you can find the software here<br> <a href=\"https:\/\/www.harrisgeospatial.com\/Support\/Self-Help-Tools\/Help-Articles\/Help-Articles-Detail\/ArtMID\/10220\/ArticleID\/17309\/The-IDL-Virtual-Machine\">h<\/a><a href=\"https:\/\/www.harrisgeospatial.com\/Support\/Self-Help-Tools\/Help-Articles\/Help-Articles-Detail\/ArtMID\/10220\/ArticleID\/17309\/The-IDL-Virtual-Machine\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"ttps:\/\/www.harrisgeospatial.com\/Support\/Self-Help-Tools\/Help-Articles\/Help-Articles-Detail\/ArtMID\/10220\/ArticleID\/17309\/The-IDL-Virtual-Machine  (opens in a new tab)\">ttps:\/\/www.harrisgeospatial.com\/Support\/Self-Help-Tools\/Help-Articles\/Help-Articles-Detail\/ArtMID\/10220\/ArticleID\/17309\/The-IDL-Virtual-Machine <\/a><\/p>\n\n\n\n<ul><li>Advantages of the IDL<ul><li>It looks nicer than Medm<\/li><\/ul><\/li><li>Disadvantages<ul><li>You still need Medm for ICB support<\/li><li>Have to be a US citizen to get the run time environment<\/li><\/ul><\/li><\/ul>\n\n\n\n<ul><li>Download an install the IDL virtual machine software from harris geospatial <\/li><li>Download the IDL_MCA.tar file listed in downloads<\/li><li>Create a new folder in the EPICS folder you created earlier<ul><li>unzip the tar file into the new folder folder you created earlier<\/li><li>my new folder is conveniently called idl_mca<\/li><\/ul><\/li><li>Follow the instruction previously described to add EZCA_IDL_SHARE as a system path variable<\/li><li>Turn on both the computer and the NIM-BIN.<\/li><li>Run mobaXterm.<\/li><li>Run the mcaAIM st.cmd as described previously.<ul><li>Note: I find it convenient to use a batch file to just do this for me. You will have to edit the paths, but here is an example.<\/li><li><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/ExampleCommandFiles.zip\">exampleCommandFile.CMD <\/a>.<\/li><\/ul><\/li><li>Run &#8220;mca.sav&#8221; found in an IDL Sub-folder.<ul><li>Note, the linked command file includes example commands for IDL too. <\/li><\/ul><\/li><li>Click to continue<\/li><li>A nice looking MCA window will open up<\/li><li>I leave it to you to explore the software and discover its capabilities<\/li><\/ul>\n\n\n\n<div class=\"wp-container-34 wp-block-columns\">\n<div class=\"wp-container-32 wp-block-column\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/IDL.png\"><img loading=\"lazy\" width=\"480\" height=\"292\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/IDL.png\" alt=\"\" class=\"wp-image-2363\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/IDL.png 480w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/IDL-444x270.png 444w\" sizes=\"(max-width: 480px) 100vw, 480px\" \/><\/a><figcaption>IDL Virtual Machine<\/figcaption><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-container-33 wp-block-column\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/IDL-MCA-with-Spectrum.png\"><img loading=\"lazy\" width=\"1017\" height=\"621\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/IDL-MCA-with-Spectrum.png\" alt=\"\" class=\"wp-image-2371\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/IDL-MCA-with-Spectrum.png 1017w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/IDL-MCA-with-Spectrum-768x469.png 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/IDL-MCA-with-Spectrum-442x270.png 442w\" sizes=\"(max-width: 1017px) 100vw, 1017px\" \/><\/a><figcaption>IDL MCA with Thorium Spectrum<\/figcaption><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h2><span class=\"ez-toc-section\" id=\"The_DIY_method\"><\/span>The DIY method<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>As mentioned at the beginning of this page,  several people have gotten this method of control to work with the Canberra modules previously. You can count them on one hand. I think everyone can agree that the freeware available is somewhat lacking.  So users develop their one MCA&#8217;s.  One user built an MCA in Labview, for example. <\/p>\n\n\n\n<p>While familiar with lab view,  I am much more familiarized with MATLAB due to my profession. So I set out to make my own MCA software in the MATLAB environment.  It is still a work in progress, and gets more sophisticated with every line of code I type. <\/p>\n\n\n\n<p>Learn more by clicking <a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-matlab-mca\/\">here<\/a>. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/matlab-MCA-Energy.png\"><img loading=\"lazy\" width=\"1518\" height=\"739\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/matlab-MCA-Energy.png\" alt=\"\" class=\"wp-image-2368\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/matlab-MCA-Energy.png 1518w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/matlab-MCA-Energy-768x374.png 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/matlab-MCA-Energy-555x270.png 555w\" sizes=\"(max-width: 1518px) 100vw, 1518px\" \/><\/a><figcaption>The MATLAB MCA with a natural thorium spectrum.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/matlab-MCA-Settings.png\"><img loading=\"lazy\" width=\"1520\" height=\"745\" src=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/matlab-MCA-Settings.png\" alt=\"\" class=\"wp-image-2369\" srcset=\"http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/matlab-MCA-Settings.png 1520w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/matlab-MCA-Settings-768x376.png 768w, http:\/\/www.nuclearphysicslab.com\/npl\/wp-content\/uploads\/matlab-MCA-Settings-551x270.png 551w\" sizes=\"(max-width: 1520px) 100vw, 1520px\" \/><\/a><figcaption>All the Options, settings, and ICB interfaces I have coded at time of writing. <\/figcaption><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n","protected":false},"excerpt":{"rendered":"<p>Author: Jay HowsonDate: March-2019 Updated: July-2022Updated: March-2024 Intro Canberra (now Mirion) is a maker of high end spectroscopy equipment, radiation detection equipment, and associated software. Much like ORTEC they have a wide selection of NIM instrumentation and standalone products. One of the downsides to amateurs using Canberra products at home for spectroscopy; Is the&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"http:\/\/www.nuclearphysicslab.com\/npl\/npl-home\/spectroscopy\/software_and_hardware\/diy-canberra-system\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":2391,"parent":122,"menu_order":3,"comment_status":"open","ping_status":"closed","template":"","meta":{"advanced-sidebar-menu\/link-title":"","advanced-sidebar-menu\/exclude-page":false},"categories":[48,5,34,3,47],"tags":[],"_links":{"self":[{"href":"http:\/\/www.nuclearphysicslab.com\/npl\/wp-json\/wp\/v2\/pages\/127"}],"collection":[{"href":"http:\/\/www.nuclearphysicslab.com\/npl\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.nuclearphysicslab.com\/npl\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.nuclearphysicslab.com\/npl\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.nuclearphysicslab.com\/npl\/wp-json\/wp\/v2\/comments?post=127"}],"version-history":[{"count":109,"href":"http:\/\/www.nuclearphysicslab.com\/npl\/wp-json\/wp\/v2\/pages\/127\/revisions"}],"predecessor-version":[{"id":3858,"href":"http:\/\/www.nuclearphysicslab.com\/npl\/wp-json\/wp\/v2\/pages\/127\/revisions\/3858"}],"up":[{"embeddable":true,"href":"http:\/\/www.nuclearphysicslab.com\/npl\/wp-json\/wp\/v2\/pages\/122"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.nuclearphysicslab.com\/npl\/wp-json\/wp\/v2\/media\/2391"}],"wp:attachment":[{"href":"http:\/\/www.nuclearphysicslab.com\/npl\/wp-json\/wp\/v2\/media?parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.nuclearphysicslab.com\/npl\/wp-json\/wp\/v2\/categories?post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.nuclearphysicslab.com\/npl\/wp-json\/wp\/v2\/tags?post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}