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.

[参考译文] LMX2572:将 TICS Pro 连接到 Python

Guru**** 2927270 points

Other Parts Discussed in Thread: LMX2572

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/clock-timing-group/clock-and-timing/f/clock-timing-forum/888414/lmx2572-interfacing-tics-pro-to-python

器件型号:LMX2572

如何将 TICS Pro 软件连接到 Python 以自动进行数据收集?

选择 LMX2572时出现异常。 (请参阅下面的)

导入 win32com.client

TP = win32com.client.Dispatch ("TICSPro.ActiveX")

tp.Initialize (r"C:\Program Files (x86)\Texas Instruments\TICS Pro")
OUT[133]:正确

TP.SelectDevice ("LMX2572")
回溯(最近一次调用最后一次):

 文件" "、第1行、输入
   TP.SelectDevice ("LMX2572")

 文件" "、第2行、在 SelectDevice 中

com_error:(-2147352567、"发生异常。"、(0、"ActiveXTICSPro"、"对象引用未设置为对象的实例。"、无、0、-214746261)、无)

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Renante、您好!

    您能否确认您的 python 版本是32位 python?  ActiveX 自动化需要使用32位版本的 Python。

    73、
    Timothy