what I need is a simple script that will calculate and set different current settings and terminate the cycle based on current.
Example:
Calculate step 1 discharge voltage (Nominal voltage/1.2) = step 1 terminate voltage.
Calculate step 1 discharge current (Nominal capacity/C1) = step 1 current.
set step 1 cutoff voltage and current.
There is some description of the TC language on the online help pages, you can press F1 in TC to open them (On most computers).
There is also some examples on how to write scripts.
The main TC thread is here:
https://www.eevblog.com/forum/testgear/program-that-can-log-from-many-multimeters/ Generally TC has two programming modes, but they are intertwined. One mode is scripting mode where all commands start with # and expressions with =
Expressions are handled in the "Program" mode, that uses a expression syntax similar to C and Java.
You can access values from connected devices by the names shown on the "Current Values" tab.
To store values you must create variables, i.e.
=var termVolt=ET5410A.Voltage/1.2;
To set a value there a multiple options:
Use the "Setup" popup and set a value, the right click on the log, select "Generate script", "Mode & Setup", "In log Window", this will give you the command for the device and you can replace the value with (termVolt) to instead use the variable, note () will give access to the variables and the programming language in script commands.
Another possibility is to use the programming command (=set...).
There is no guarantee exactly what settings are supported either way, that depends on who has implemented the device and what the device supports.
When the popup "Log event" is open and filled, a script can be generated with the same functionality from the "Generate script" menu. This is a easy way to start on a script.