clade / ThorlabsPM100

26 stars 10 forks source link

Running example: ValueError: 'term_chars' is not a valid attribute for type USBInstrument #12

Closed KH-W27 closed 3 years ago

KH-W27 commented 3 years ago

Running example script after installation. Fairly new to pyvisa, so not sure what the issue is here. Also when I search resource manager, no objects are returned but instrument is findable otherwise.

clade commented 3 years ago

Could you try without the term_char argument ?

KH-W27 commented 3 years ago

Thanks for the quick reply! I get a different error "VisaIOError: VI_ERROR_RSRC_NFOUND (-1073807343): Insufficient location information or the requested device or resource is not present in the system." If I ask resource manager to list resources, it doesn't find it and returns empty brackets. If I use "import usbtmc usbtmc.list_devices()" I can find a location for it though. I'll try to use this location found and get back to you.

KH-W27 commented 3 years ago

My own stupid mistake sorry, I hadn't installed the NIVisa library on this machine. Thanks for your help! All working.