Optical power meters in-conjunction with a detector are used to measure power from a laser source or monochromatic output.
I wrote a python module for communicating with this instrument. This python module contains higher level functions to communicate with Newport 1918 power meter on a Windows computer. It uses python library ctypes to access methods in the Newport's usbdll.dll driver.
For connecting the hardware to the computer, see the reference manual