This page describes new (as of early 2015) python bindings to the AMC13 software. This is very much a work in progress, but at least one demo program now works.

See AMC13ObsoletePyChipsSoftware if for some reason you want the no-longer-supported PyChips? based software.

The python code is included as of v1.1.0

The python code is installed with the regular package. Check out the code from SVN, go to the top level directory and execute:

  $ source env.sh
  $ make

There are some sample scripts in ...dev_tools/python. You'll need a connection file, which needs to reference the address table files distributed with the software. The way I handle this is to create a symbolic link to the ...etc/amc13 directory:

  $ cd .../dev_tools/python
  $ ln -s ../../amc13/etc/amc13 .

Then the connection file can use the symlink to find the address tables. Sample connection file:

<?xml version="1.0" encoding="UTF-8"?>
<connections>
  <connection id="T1" uri="chtcp-2.0://localhost:10203?target=192.168.1.169:50001" address_table="file://amc13/AMC13XG_T1.xml" />
  <connection id="T2" uri="chtcp-2.0://localhost:10203?target=192.168.1.168:50001" address_table="file://amc13/AMC13XG_T2.xml" />
</connections>

Finally you can run your script as follows:

  $ ./printversion.py connectionSN43_ch.xml
  Using AMC13 software ver:35051
  T1 firmware version 0x4016
  T2 firmware version 0x25

-- EricHazen - 12 Mar 2015

Topic revision: r39 - 04 Aug 2016 - 15:04:26 - SemirayGirgisChyla
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback