beautypg.com

Mono_setwavelength, Mono_getwavelength, Mono_runreferencesequence – Ocean Optics MonoScan2000 User Manual

Page 14: Mono_homingrunactive, Mono_positionreached

background image

2: Programming Information

6

000-10000-150-02-201011

MONO_SetWavelength

short __stdcall MONO_SetWavelength(long Handle, unsigned short Node, short WavelengthInNm, long*
CalibrationData);

Set the MonoScan-2000 to a specified wavelength in nm.
Returns 1 on success else a negative number.
Long Handle: Handle of the comport returned by MONO_OpenConnection
unsigned short Node: must be 0 (zero)
short WavelengthInNm: desired wavelength in nm
long* CalibrationData: Array filled by MONO_GetDeviceData

MONO_GetWavelength

short __stdcall MONO_GetWavelength(long Handle, unsigned short Node, long* CalibrationData);

returns the actual position of the MonoScan-2000 in nm.
Long Handle: Handle of the comport returned by MONO_OpenConnection
unsigned short Node:must be 0 (zero)
long* CalibrationData: Array filled by MONO_GetDeviceData

MONO_RunReferenceSequence

short __stdcall MONO_RunReferenceSequence(long Handle,unsigned short Node);

MonoScan will run to its internal reference point and reset the internal position
Long Handle: Handle of the comport returned by MONO_OpenConnection
unsigned short Node:must be 0 (zero)

MONO_HomingRunActive

short __stdcall MONO_HomingRunActive(long Handle,unsigned Node);

call this function sequentially to see if reference sequence has completed
returns 1 if reference sequence is still active else 0.
Long Handle: Handle of the comport returned by MONO_OpenConnection
unsigned short Node:must be 0 (zero)

MONO_PositionReached

short __stdcall MONO_PositionReached(long Handle,unsigned short Node);

call this function to see if the desired position has been reached.
Returns 0 if still moving else 1
Long Handle: Handle of the comport returned by MONO_OpenConnection
unsigned short Node:must be 0 (zero)