[time-nuts] "PYLT" Python LabTools
Chuck Harris
cfharris at erols.com
Sun Jan 16 22:49:23 UTC 2011
That would be my preferred method.
-Chuck Harris
Poul-Henning Kamp wrote:
...
> Create a pylt_site.py containing something like:
>
> import hp34401a
> import hp33120a
>
> def hp34401a():
> return hp34401a.hp34401a(name="/dev/ttyfoo", adr=11)
>
> def hp33120a():
> return hp33120a.hp33120a(name="/dev/ttybar", adr=5)
>
> and then use that in your programs:
>
> include pylt_site
>
> g=pylt_site.hp33120a()
> m=pylt_site.hp34401a()
>
> # do stuff.
>
> Problem solved ?
>
More information about the Time-nuts_lists.febo.com
mailing list