CMCheckInit([meterType], [
PortString])
Initialize the color meter. The routine calls the
lower level routines for given 'meterType'. If the low level routine
fails, this routine retries, then prompts the user to take appropriate
action. If the low level routine succeeds, this
routine is silent.
meterType 1 is the PR650 (default)
meterType 2 is the CVI (need CVIToolbox) - Not yet implemented!
meterType 3 is the CRS Colorimeter
meterType 4 is the PR655
For the PR-series colorimeters, '
PortString' is the optional name of a
device string for the serial port or Serial-over-USB port to which the
device is connected. If none is given, the routine uses different files
and built-in defaults to try to find the proper port: If there is a file
'
CMPreferredPort.txt' in the search path of Matlab/Octave, it will parse
that file for a
PortString to use. Else it will use a hard-coded default
inside this routine. If a calibration file with name 'PR650Ports' for the
PR-650 colorimeter or 'PR655Ports' for the PR-655 colorimeter exists
inside the
PsychCalData folder, it will use the portname from that file.
Other Colorimeters, e.g., CRS
ColorCal, have their own specific setup
methods and this routine just calls their setup code with default
settings.
Psychtoolbox/PsychHardware/CMCheckInit.m