win32comを使用して2つの計測器にリモート接続する必要がありますが、2番目のオブジェクトが作成されるとエラーが発生します。コードは次のようになります。python:2つのCOMオブジェクトを作成する
scope1 = win32com.client.Dispatch("LeCroy.ActiveDSOCtrl.1") #creates first instance of the ActiveDSO control
scope1.MakeConnection("GPIB:5") #Connects to device via GPIB
scope2 = win32com.client.Dispatch("LeCroy.ActiveDSOCtrl.2") #creates a second instance of the ActiveDSO control
scope2.MakeConnection("IP:127.0.0.1") #Connects to the oscilloscope on local host
2番目のCOMオブジェクトの作成時にエラーが発生します。 誰でもこの作業を可能にする方法を知っていますか?遠隔計測器を制御している他人の利益のために、溶液が予想よりも簡単である