_Stg_LargeImageScanning, _Stg_LargeImageStageScanning, _Stg_LargeImageStageScanningWithZ, _Stg_LargeImageStageScanningWMacro, _StgConfig, _StgInitiate, _StgSetupScan, Stg_LargeImageScan, Stg_LargeImageScanArea, Stg_LargeImageStageScanWithName, Stg_LinearActuator_GetDescription, Stg_LinearActuator_GetPosition, Stg_LinearActuator_SetPosition, Stg_LoadLastFocusSurfacePoints, Stg_RemoveFocusSurfacePoints, Stg_SetLargeImageQuietMode, Stg_SetLargeImageStageScanningMacro, Stg_SetLargeImageStageZParams, StgEnableJoystick, StgGetList, StgGetListEx, StgGetPos, StgInitiate, StgJoystickOff, StgJoystickOn, StgMove, StgMoveXYZScan, StgScan, StgScanCaptureOnEachScan, StgScanDir, StgScanEllipse, StgScanEx, StgScanFocus, StgScanMacro, StgScanOrigin, StgScanRange, StgScanReturn, StgScanStatus, StgScanSystem, StgStopScan, StgToggleJoystick
Description
StgEnableJoystick(
int EnableJoystick
);
Sets stage joystick status (enable/disable).
Parameters
Return Values
See Also
StgEnableJoystickXY, StgEnableJoystickZ
Description
int StgGetList( double *StgArrayX
, double *StgArrayY
, intStgArrayCount
);
Returns XY coordinates of the list points.
Parameters
See Also
StgGetListEx
Description
StgGetListEx( double *StgArrayX
, double *StgArrayY
, double *StgArrayZ
, intStgArrayCount
);
This function returns the number of points stored in the Arrays.
Parameters
See Also
StgGetList
Description
StgGetPos( double *LpStgX
, double *LpStgY
, double *LpStgZ
);
Retrieves the current position [microns] of the stage.
Parameters
Return Values
See Also
StgGetPosXY, StgGetPosZ
Interactive command to this function: Devices > Initiate stage
Description
int StgInitiate();
Initialize the stage and defines working ranges.
Return Values
See Also
StgInitiateXY
Description
StgJoystickOff();
Disables the stage joystick.
Return Values
See Also
StgEnableJoystick
Description
StgJoystickOn();
Enables the stage joystick.
Return Values
See Also
StgEnableJoystick
Description
int StgMove( doublex
, doubley
, doublez
, intrelative
);
Moves the stage to specified position [µm].
Parameters
Description
StgMoveXYZScan( intIndex
, intrelative
);
This function moves XYZ stage to a position of the point generated by function StgGeneratePointsForXYOverview. This function also updates the XYZOverview control (visited points will be highlighted).
Parameters
See Also
StgGeneratePointsForXYOverview, StgMoveXYScan
This function runs the Devices > Scan command.
Description
StgScan();
This function scans according to the set parameters.
See Also
_StgSetupScan, StgScanMacro, StgScanFocus, StgScanOrigin, StgScanReturn, StgScanRange
Description
StgScanCaptureOnEachScan(
int Enabled
);
This function specifies whether to perform capture during XY stage scan or not. To adjust this option in GUI, run the _StgSetupScan function.
See Also
StgScan
Description
StgScanDir(
int ScanDirection
);
This function changes the scanning algorithm.
Parameters
See Also
_StgSetupScan, StgScanMacro, StgScanFocus, StgScanOrigin, StgScanReturn, StgScanRange
Description
StgScanEllipse(
double InsideEllipse
);
This function defines the scanning region for the StgScan function.
Description
long StgScanEx( double *StgArrayX
, double *StgArrayY
, intStgArrayCount
);
The function returns arrays of x and y coordinates for the scan defined by StgScanXXX functions. It allows you to control of movement in the macro in the loop instead of calling the StgScan function. See the example below.
Parameters
double x[10000], y[10000], z; long num, i, cbCount; Live(); _StgSetupScan(); cbCount = 10000; num = StgScanEx(x, y, cbCount); if(num < 0) goto error; //the number of real movements id greater than cbCount-1 if((x[0] < 0) && (y[0] < 0)) { StgGetPos(x, y, &z); //the movement is from current position, NO ellipse } if((x[0] < 0) && (y[0] > 0)) { x[0] = -x[0]; StgGetPos(NULL, NULL, &z); //the movement is from current position, YES ellipse } else { StgGetPos(NULL, NULL, &z); } // go to the start position StgMove(x[0], y[0], z, FALSE); Live(); PauseMacro("Scan Begin") Live(); for(i=1; i<=num; i=i+1) { StgMove(x[i], y[i], 0, TRUE); PauseMacro("Pause") } error: cbCount = cbCount;
Description
StgScanFocus( intType
, intEvery
);
This function sets focus parameters for scanning mode.
Parameters
See Also
_StgSetupScan, StgScanMacro, StgScanOrigin, StgScanRange, StgScanReturn, StgScanSystem
Description
StgScanMacro( intEnabled
, char *StgMacro
);
This function sets up execution of a macro for scanning mode (i.e. executing on every field). This function is typically called, when you invoke the Setup Scanning command. An interactive equivalent is the _StgSetupScan function.
Description
StgScanOrigin( intType
, intHorPos
, intVerPos
);
This function sets up the starting coordinate for scanning mode. This function is typically called, when you invoke the Setup Scanning command. An interactive equivalent is _StgSetupScan function.
Parameters
See Also
_StgSetupScan, StgScanMacro, StgScanFocus, StgScanRange, StgScanReturn, StgScanSystem, _StgSetupScan
Description
StgScanRange( intType
, intM
, doubleN
);
This function sets up the range for automatic scanning mode. An interactive equivalent is _StgSetupScan function.
Parameters
See Also
_StgSetupScan, StgScanMacro, StgScanFocus, StgScanOrigin, StgScanReturn, StgScanSystem, _StgSetupScan
Description
StgScanReturn(
int Type
);
This function specifies optional return to the starting position when the scan is finished.
See Also
_StgSetupScan, StgScanMacro, StgScanFocus, StgScanOrigin, StgScanRange, StgScanSystem
Description
StgScanStatus(
int Enabled
);
When you call StgScanStatus(TRUE) (it corresponds to selected check box Enable Status in the Stage Setup dialog box), then if you run scan the small status window will be shown. The window displays current_field/number_of_fields information while scanning stage is moving. You can also press button to interrupt the scan.
See Also
_StgSetupScan, StgScanMacro, StgScanFocus, StgScanOrigin, StgScanRange, StgScanSystem
Description
StgScanSystem( intType
, intHorStep
, intVerStep
);
This function sets up the covering or meander scanning system. This function is typically called, when you invoke the Setup Scanning command. An interactive equivalent is _StgSetupScan function.
Parameters
See Also
_StgSetupScan, StgScanMacro, StgScanFocus, StgScanOrigin, StgScanReturn, StgScanRange
Description
StgStopScan(
int Enabled
);
Via this function the user can stop scanning from within the macro that is bound to every field of the scan.
Example: lets suppose that a scan is defined as 10x10 fields. On each field the number of particles is calculated. If the total number of particles exceeds the limit the StgStopScan function can be called to interrupt the scanning cycle programmatically.
Description
StgToggleJoystick();
Switches stage joystick status (enable->disable or disable->enable).
Return Values
See Also
StgToggleJoystickXY, StgToggleJoystickZ
Description
Stg_LargeImageScan( intColCount
, intRowCount
, intAutofocus
, intOverlap
, intTolerance
, intUseRegistration
, intUseHDR
, char *LargeImageFilename
);
This function starts large image scan using specified parameters.
Parameters
See Also
Stg_LargeImageScanArea
Description
Stg_LargeImageScanArea( doubleStgLeft
, doubleStgRight
, doubleStgTop
, doubleStgBottom
, intAutofocus
, intOverlap
, intTolerance
, intUseRegistration
, intUseHDR
, char *LargeImageFilename
);
This function starts large image scan using specified parameters.
Parameters
Note
It is possible to swap the StgLeft/StgRight and StgTop/StgBottom parameters and it will not affect the proper functionality of the function.
See Also
Stg_LargeImageScan
Description
Stg_LargeImageStageScanWithName(
char *DocumentName
);
Performs scanning of a large image according to the defined parameters. A large image with the specified name is created once the scan is successfully completed.
Description
Stg_LinearActuator_GetDescription( char *LinearActuatorName
, double *LinearActuatorRangeMin
, double *LinearActuatorRangeMax
, double *LinearActuatorResolution
);
Returns the description of the linear actuator.
Description
Stg_LinearActuator_GetPosition( char *LinearActuatorName
, double *LpLinearActuatorPosition
);
Returns the position of the linear actuator.
Description
Stg_LinearActuator_SetPosition( char *LinearActuatorName
, doubleLinearActuatorPosition
);
Sets the position of the linear actuator.
Description
Stg_LoadLastFocusSurfacePoints();
Loads the last known set of focus surface points.
Description
Stg_RemoveFocusSurfacePoints();
Removes all focus surface points.
Description
Stg_SetLargeImageQuietMode( intmode
, char *LargeImageFilename
);
This function enables or disables user interactions during large image scanning.
Parameters
See Also
Stg_SetLargeImageStageScanningMacro
Description
Stg_SetLargeImageStageScanningMacro(
char *MacroFileName
);
This function specifies how to perform large image scanning. If the Filename parameter is NULL, Instead of executing the macro image capture will be performed.
Parameters
See Also
Stg_SetLargeImageQuietMode
Description
Stg_SetLargeImageStageZParams( intiMode
, doubledZStep
, intiZStackCount
);
This function specifies parameters for Z-Stack or EDF large image scanning.
Description
_StgConfig();
Displays a dialog box allowing the user to configure stage physical device.
Return Values
See Also
_StgConfigXY, _StgConfigZ
This function runs the Devices > Initiate stage command.
Description
_StgInitiate();
Displays a dialog box allowing the user to initiate stage.
Return Values
See Also
StgInitiate
This function runs the Devices > Scanning Setup command.
Description
_StgSetupScan();
This function corresponds to the Scanning Setup command. The function displays the Define Scanning dialog box for setting up scanning parameters.
See Also
StgScanMacro, StgScanRange, StgScanReturn, StgScanFocus, StgScanSystem
Description
_Stg_LargeImageScanning();
This function opens the Scan Large Image Advanced dialog which precisely schedules the scanning of large images.
Description
_Stg_LargeImageStageScanning();
If the active objective is calibrated and a motorized XY stage is initialized, this function displays the large image scanning setup window.
This function runs the Acquire > Scan Large Image command.
Description
_Stg_LargeImageStageScanningWMacro();
This function displays a GUI window where large-image scanning can be set-up and run.