bicarlsen / oriel-cornerstone-260

Python library for controlling an Oriel Cornerstone 260 monochromator.
GNU General Public License v3.0
0 stars 3 forks source link

USB: Available commands/functions #2

Open l3ootzi opened 3 years ago

l3ootzi commented 3 years ago

The commands from the cornerstone manual or the listed commands here are not available via the USB connection. Instead write 'mono.' and press 'tab' - then a list of available commands pops up. Or have a look at the cornerstone.dll file after the installation via running 'pip install oriel-cornerstone-260' in the command prompt. - There is also a list of the available functions.

thoagland commented 2 years ago

The commands in the manual are available via USB if you open the device using the pyvisa package. Once you open the device, you can then use the same commands as used in the serial version of the code. If someone were interested, it would probably be straightforward to allow this same object to control devices via either serial or USB.

GaryT-NZ commented 2 years ago

A pyvisa version would indeed be useful. Our monos are GPIB. They have serial, but other instruments don't, so GPIB would be very useful.