Quick start with SpectroCal mark Ⅱ

Author

Ian

Installation

For Linux, to install the spectrocal serial interface edit /etc/udev/rules.d/99-ftdi.rules and add this line:

ACTION=="add", ATTRS{idVendor}=="0861", ATTRS{idProduct}=="1003", RUN+="/sbin/modprobe ftdi_sio" RUN+="/bin/sh -c 'echo 0861 1003 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id'"

For macOS or Windows, see the CRS website: https://www.crsltd.com/tools-for-vision-science/light-measurement-display-calibation/spectrocal-mkii-spectroradiometer/nest/product-support#npm

MATLAB Control

Install opticka first: git clone https://github.com/iandol/opticka.git, cd to the opticka folder and run addOptickaToPath.

c = calibrateLuminance;
c.screen = 0; % screen to calibrate
c.nMeasures = 40; % number of measurements
c.port = '/dev/ttyUSB0'; % serial port to use

c.runAll();

You will get a plot of the raw and corrected values. To get a simple gamma value see c.displayGamma, the full fitted table is in c.finalCLUT. Run c.plot at any time to regenerate the gamma table plots.

To get the spd useful for the colour toolbox, you can then run:

phosphors = c.makeSPD();
Back to top