Closed avigan closed 4 years ago
As mentioned in the documentation, on Windows, you may have to uninstall the USBTMC specific driver if it was installed automatically by Windows and re-install a generic driver. See https://github.com/libusb/libusb/wiki/Windows#How_to_use_libusb_on_Windows for more details.
Honestly using a big manufacturer VISA implementation is likely to be much easier and portable. NI, Keysight, Rohde&Schwarz and Tektronik all provides the VISA library free of charge (make sure you get only the runtime, development environments are not free).
Thanks for your answer. I apologize for missing that in the documentation.
Interestingly, I have installed the Tektronik's VISA implementation and it only shows the serial devices. Still no USB. I am not sure what I am missing here. Does your comment about uninstalling the USBTMC specific driver also apply here?
Looking at the documentation and at the Write Your Own Application document, it is not obvious to me that those instrumentsd support VISA. In particular when discussing USB in the second document, the following is mentioned: The commands listed in this section are supported by a USBTMC protocol and can be used with the instrument driver TLPM.dll.
It is hence possible that Thorlabs does something custom and does not support VISA (which is distinct from SCPI). Over serial you could use VISA since VISA does not add anything complicated on top of it.
You may also want to check if your resource does not appear as a serial resource by connecting and disconnecting it and checking if any new device pop up (in windows peripheral tools), but I doubt it is the case.
It may be worth contacting Thorlabs for a definitive answer.
I think there are compatible, at least for the power meter: I tested it with pyvisa and NI-VISA on my MacBook and it was working fine. So I am not sure why it is not seen on windows with TekVISA.
If you uninstalled the USBTMC driver you should install it back.
Closing for lack of feedback feel free to reopen if necessary.
I had the same issue where NI MAX would not list the PM101A or the PM101. Turns out it was an issue with the driver. I was able to solve this by going into the device manager, looking for the Thorlabs USB connection, and updating the driver. I had to search locally for the driver update. After this, the device showed properly in NI MAX and now showed the VISA name of the device. Should be something along the lines of 'USB0::0x1313::0x8078::[serial number]::INSTR.'
I am having trouble connecting on Windows to a Thorlabs PM101 power meter via USB. Before installing NI-VISA I would like to test with pyvisa-py. When I start
pyvisa-shell
, it seems that only the devices connected via serial are detected, but none of the USB ones. In addition to the PM101 power meter I also have a TSB01B temperature sensor (also from Thorlabs), which I think should be detected. Any help would be greatly appreciated. Information is copied belowInstrument details
Output of
pyvisa-info
Output of
pyvisa-shell