LabPy / lantz

Lantz is an automation and instrumentation toolkit with a clean, well-designed and consistent interface. It provides a core of commonly used functionalities for building applications that communicate with scientific instruments allowing rapid application prototyping, development and testing. Lantz benefits from Python’s extensive library flexibility as a glue language to wrap existing drivers and DLLs.
http://lantz.readthedocs.org/
Other
135 stars 65 forks source link

how to set path to visa driver #52

Open phsdv opened 9 years ago

phsdv commented 9 years ago

I am trying out Lantz, but it fails with a timeout when accessing my instrument. When using pyvisa it works but I have to set the path to the visa driver in the resource manager. How do I tell Lantz which visa driver to use?

Or in other words: No documentation exists (or I cannot find it) to specify in Lantz the path to the driver that pyvisa should use.

phsdv commented 9 years ago

Oops, found out that timeout was caused by wrong command. replacing '?IDN' with '*IDN?' solved the timeout.

However still do not know how to specify a specific visa driver, for example the NI-Visa one or the Agilent visa driver.

hgrecco commented 9 years ago

The easiest way is just to define it in .pyvisarc as discussed here Lantz will honor that. We will add an option to do it in Lantz later.