[python-win32] wincom32.client problem?

mastro59 mastro1959 at yahoo.it
Tue Oct 2 13:32:01 EDT 2018


I ahve been trying to communicate with an Instrument GUI using python and a
COM Object. This is quite simple using wincom32, but somethind with this
client required additional extension not needed in other lunguages. I wander
id someone here has experience and can explain how to solve this.in VBS,
PAscal and C# the commands are quite simple, after creting the object in
VBS: set app = CreateObject("LeCroy.XStreamDSO")in Python is similar:import
win32com.clientapp=win32com.client.Dispatch("LeCroy.XStreamDSO") done this
the object I can use is "app"the commands are in
VBS:app.Acquisition.Horizontal.MaxSamplesOrRateDownapp.Acquisition.Horizontal.MaxSamplesOrRateUpapp.Acquisition.TriggerMode
= "single"app.Measure.ClearSweepsin Python I have to add .ActNow() to make
them work to some of these commands, and I do not understand why, I will
have to
use:app.Acquisition.Horizontal.MaxSamplesOrRateDown.ActNow()app.Acquisition.Horizontal.MaxSamplesOrRateUp.ActNow()app.Acquisition.TriggerMode
= "single"app.Measure.ClearSweeps.ActNow()In C#(Visualstudio 2017)  and
Pascal (Lazarus) I do not have this problem, only in Python.can someone
help?thanks



--
Sent from: http://python.6.x6.nabble.com/Python-python-win32-f1948913.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20181002/d93944a4/attachment.html>


More information about the python-win32 mailing list