To import S470, you can either use:
from psychopy_gammasci.gammasci import S470
or, any time after psychopy.plugins.activatePlugins has been called:
from psychopy.hardware.gammasci import S470
Gamma Scientific flexOptometer S470, S480, S490
You need to connect a S470 to the serial (RS232) port. This class expects a baudrate of 38400, which can be set in the device’s menu.
usage:
phot = S470(port)
lum = phot.getLum()
port: string
the serial port to connect with the photometer. Typically COM1 on Windows and /dev/ttyUSB0 or /dev/ttyS470 on Linux.
n_repeat: int
number of repeated measures to average for getLum
Return the average luminance of repeated measures.
The number of repetitions is controlled by .n_repeat. The returned luminance is set to .lastLum. This method is required by psychopy.