VICP is a LeCroy "passport" plugin for NI-VISA that allows VISA to communicate with LeCroy oscilloscopes over a LAN connection. These oscilloscopes do not work properly with a TCP/IP socket connection, so a VICP connection is necessary.
While the pyVISA code is correct to check in the instrument _init_ that it is talking to an instrument, the VICP instruments do not return INSTR as their type. They return "". So the patch I am submitting excludes VICP instruments from the check, allowing pyVISA to communicate with them and disabling the error checking for those instruments.
This problem may also happen with TCP/IP socket instruments, so it might be worth adding in an exclude for them as well. I don't have an easy way to test it, but I will keep my eyes open for one.
Thanks, Torsten, this package is great.
-Alex Moore (alex.moore@analog.com)
Patch for VICP instrument control
Hi there,
I am experiencing some issues when using my lecroy scope in VICP mode, and I would like to try your patch. However, in my visa/pyvisa files, I cannot find any "visa_vicp.py" file. Additionally neither my "visa.py" nor "pyvisa.py" include a "class Instrument(ResourceTemplate)" or "self.resource_class" variable as described in your patch file. I am running visa 1.6.2 on python3.4 64-bits, on win7.
Please can you tell me where to find the files to be modified by your patch file?
Thank you in advance.
Regards,
Daniele
Logged In: YES
user_id=442234
Originator: NO
Thank you very much for the feedback. Others had had similar trouble with this somewhat misguided "INSTR" check, therefore, in the CVS version, I replaced it with a mere warning that can be suppressed easily.