This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TICSPRO-SW: TICSPro.ActiveX Documentation

Part Number: TICSPRO-SW
Other Parts Discussed in Thread: LMX2594

Is there a place /way to have some details on the functions available to automates TICSPro when using python for ie.

I mean i'm looking for a place to find the list of function avaialable and specialy some details about the functions ( input parameter format, input details, return code ? )

ex: i'm using this code to setup the LMX2594 EVM.  at some point i want to disconnect the output ( R0x2C 1F23), what is the correct syntax ?

Also does these function have a return code i can play with to validate everything still fine ? ( I notice the script does run even if TICSPro is closed )

Thanks.

import win32com.client
import time

tp = win32com.client.Dispatch("TICSPro.ActiveX")
tp.Initialize(r"C:\ProgramData\Texas Instruments\TICS Pro")
#select device
tp.SelectDevice("LMX2594")

#Load defaults setup
tp.RestoreSetup("tics_load_python_2.tcs")

#write all register
tp.WriteAllRegisters() # works !!!!


#input("Ecrire 1 seul registre... Press Enter")
tp.WriteRegister(???????????)

  • Hi Bory,

    A long time ago we put together an excel spreadsheet with ActiveX API documented in VBA. Link in the post below.

    https://e2e.ti.com/support/clock-timing-group/clock-and-timing/f/clock-timing-forum/703263/lmx2595evm-tics-pro-control-with-matlab

    That said, ActiveX may not be the best API to be using any more. Due to issues with 64-bit application compatibility, we will soon be deprecating the ActiveX API in favor of a TCP socket server implementation.. In the latest version of TICS Pro available on TI.com (as of writing, v1.7.4.1), there is a preliminary TCP socket server which has been included. We also included documentation for the client-side implementation in a python file in the main installer directory (C:\Program Files (x86)\Texas Instruments\TICS Pro\TICSPro_TCP.py). It generally inherits the same behaviors as the ActiveX API, though a few more esoteric behaviors may not have been ported yet.

    The error handling by the API is currently a very rough draft, and hasn't received a lot of attention. One of our major focuses for upcoming TICS Pro 1.8 release is improving error handling in the TCP API. This may come with some changes to the client behavior, but we'll be sure to include a descriptive client that documents the error behaviors.

    Finally, to quickly answer your specific question: WriteRegister function accepts the string name of the register (typically something like "R12") and writes the current value of the GUI register to the device. There is another function, WriteRegisterbyIndex, which accepts just the address of the register (12, 0xB, etc) and performs the same write behavior.

    Regards,

    Derek Payne