Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. First off, we need to install pip to install everything else 
    1. [These instructions could be superseded if the method for installing pip gets updated.  Pay attention to instructions at provided link]
    2. Download the get-pip.py script from:
      1. https://phoenixnap.com/kb/install-pip-windows 
    3. In the directory where you downloaded get-py.py, run it (from the Command Prompt) as 
      1. py get-py.py 
      2. You may need to update the Windows path (pip told me so - basically yellow script saying such and such was not in path).  To do so: 
        1. Search in search bar for: Advanced system settings
        2. Click: Environment Variables 
        3. Under System variables, click on: Path
        4. Click Edit... 
        5. Click New
        6. Enter path, as printed by pip on your command prompt, C: and all 
        7. In our case, this was: C:\Users\LabUser\AppData\Local\Programs\Python\Python39\Scripts
    4. pip should now be working 
  2. Now time to use pip to install a bunch of important Python libraries.  Run all of these, from the command prompt : 
    1. pip install numpy 
    2. pip install scipy 
    3. pip install matplotlib
    4. pip install astropy
    5. pip install pyvisa 
    6. pip install pyvisa-py 
      1. Yes, you must do this IN ADDITION to just pyvisa 
    7. pip install pyserial 
      1.  DO NOT install the serial library.  This confuses python when you say 'import serial'  (we want it to import pyserial) 
    8. pip install zaber-motion 
    9. pip install pyusb 
      1. In one installation, I started getting the following error with pyusb: 
      2. ValueError: PyUSB does not appear to be properly installed Please refer to PyUSB documentation and install suitable backend like libusb 0.1, libusb  1.0, libusbx, libusb-win32 or OpenUSB.  No backend available. 
      3. BEFORE YOU CONTINUE WITH BELOW SOLUTION, CONTINUE WITH REST OF DOWNLOAD (point j. below).  Continuing on may get things where they need to be.
      4. Solving this was a little tricky: 
        1. Solved with the help of this page on stack overflow: https://stackoverflow.com/questions/33972145/pyusb-on-windows-8-1-no-backend-available-how-to-install-libusb 
        2. Download pyusb from this link: http://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.20/libusb-1.0.20.7z/download 
        3. To unpack it, you need to be able to open .7z files. 
          1. Install 7-zip from here: https://www.7-zip.org/ 
          2. move downloaded libusb-1.0.20.7z into its own directory called libusb 
          3. right-click on  libusb-1.0.20.7z, find the 7-zip option, place cursor over it, and select Extract Here from the menu 
          4. Copy the file libusb-1.0.dll (in the libusb\MS64\dll directory) to C:\Windows\System32 (may require admin permission to do so - but just try copy and past in the Windows finder system) 
    10. pip install pyserial 
      1.  DO NOT install the serial library.  This confuses python when you say 'import serial'  (we want it to import pyserial) 
    11. pip install zaber-motion 
    12. Now Keysight I/O libraries
      1. (sadly, cannot be done from command line)
      2. Go to: http://www.keysight.com/find/iosuite
      3. Scroll down, make sure "Current Version" and "Windows" are selected
      4. Scroll down and click on Download IOSL 2022 (or whatever year is)
      5. Run the downloaded .exe file. 
  3. You should now be able to talk to the monochromator, the translation stages, and the Keysight current meters/volt meters/voltage sources.  Let's test that: