PFS

_StgSetupPFSFocus, Stg_GetPFSLEDSwitch, Stg_GetPFSLensOffsetPosition, Stg_GetPFSStatus, Stg_IsPFSPresent, Stg_PFSEnableSignalOutput, Stg_PFSFindOffset, Stg_PFSGetDishType, Stg_PFSGetDishTypeChangeable, Stg_PFSInsertExtractDM, Stg_PFSIsDMInserted, Stg_PFSIsDMMotorized, Stg_PFSIsSignalOutputEnabled, Stg_PFSSetDishType, Stg_PFSSetLEDPower, Stg_PFSSignalOutputTest, Stg_SetPFSFocus, Stg_SetPFSLEDSwitch, Stg_SetPFSLensOffsetPosition, Stg_SetPFSStatus, Stg_WaitForPFS, StgFocusPFS

StgFocusPFS

This function runs the Devices > Auto PFS Focus command.

Description 

 StgFocusPFS();

Finds the best focused image plane and sets the PFS Offset accordingly.

Stg_GetPFSLEDSwitch

Description 

int Stg_GetPFSLEDSwitch();

Returns the state of the near-infrared 870-nanometer LED inside the Perfect focus system.

Return Values

int

0

PFS LED is OFF

1

PFS LED is ON

Stg_GetPFSLensOffsetPosition

Description 

 Stg_GetPFSLensOffsetPosition();

This function returns the current PFS offset value.

Stg_GetPFSStatus

Description 

 Stg_GetPFSStatus();

This function returns the current status of the PFS device.

Return Values

-1

PFS Error, e.g. PFS is not connected.

0

In range, detects the focused signal, PFS is OFF.

1

Focused, focused position was found, keep the position, PFS is ON.

3

Out of range, Cannot detect the focused signal, PFS is OFF.

4

Out of range, PFS Optics is not set correctly (Dichroic Mirror is out), PFS is OFF.

5

Searching, PFS is ON.

6

Searching stopped, Cannot find the focused position, PFS is ON.

7

Disabled, Objective Lens not supported, PFS is OFF.

Note

An internal transformation of the original (hardware) return values is done in order to keep the return values independent on the microscope model. This is the conversion table used for Nikon TI microscope:

Stg_GetPFSStatusNikon TI
-1-
02 - off - in range
15 - on - focused
31- off / out of range
43 - off - out of range (mirror)
54 - on - focusing
66 - on - out of range
77 - error (objective)
Stg_IsPFSPresent

Description 

 Stg_IsPFSPresent();

Checks if a logical device of the PFS type exists and is currently connected.

Return Values

TRUE if present, FALSE if not.

Stg_PFSEnableSignalOutput

Description 

 Stg_PFSEnableSignalOutput(
   int  PFSSignalEnable
);

This function turns on or off the PFS output signal into the connector on the body of the microscope (piezo).

Parameters

int PFSSignalEnable

Turns the PFS output signal on/off.

0

PFS Signal Off

1

PFS Signal On

Stg_PFSFindOffset

This function runs the Devices > Find PFS Offset command.

Description 

 Stg_PFSFindOffset();

This function finds the PFS offset for the current Z coordinate.

Stg_PFSGetDishType

Description 

 Stg_PFSGetDishType();

This function returns the dish type.

See Also 
Stg_PFSSetDishType, Stg_PFSGetDishTypeChangeable

Stg_PFSGetDishTypeChangeable

Description 

 Stg_PFSGetDishTypeChangeable();

This function returns whether the PFS enables setting a dish type.

See Also 
Stg_PFSSetDishType, Stg_PFSGetDishType

Stg_PFSInsertExtractDM

Description 

 Stg_PFSInsertExtractDM(
   int  PFSDMInserted
);

This function puts the mirror into the optical path.

Parameters

int PFSDMInserted

Is the mirror inserted?

0

Mirror is not inserted

1

Mirror is inserted

Stg_PFSIsDMInserted

Description 

int Stg_PFSIsDMInserted();

This function returns the position of the mirror in the optical path.

Return Values

int

Is the mirror inserted?

0

Mirror is not inserted

1

Mirror is inserted

Stg_PFSIsDMMotorized

Description 

 Stg_PFSIsDMMotorized();

Returns whether the Dichroic Mirror on the PFS is motorized or not.

Stg_PFSIsSignalOutputEnabled

Description 

int Stg_PFSIsSignalOutputEnabled();

This function returns a status of the output signal.

Return Values

int

Did the status of output signal return?

0

True

1

False

Stg_PFSSetDishType

Description 

 Stg_PFSSetDishType(
   int  PFSDishType
);

Defines the material placed in the sample holder over which the focusing by PFS is performed.

Parameters

int PFSDishType

0

Glass

1

Plastic

See Also 
Stg_PFSGetDishType, Stg_PFSGetDishTypeChangeable

Stg_PFSSetLEDPower

Description 

 Stg_PFSSetLEDPower(
   int  LEDPower
);

This function sets the intensity of the LED illumination.

Parameters

int LEDPower

Intensity of illumination.

0

Minimum of illumination

4095

Maximum of illumination

Stg_PFSSignalOutputTest

Description 

 Stg_PFSSignalOutputTest(
   int  Test
);

This function sets the mode of the PFS test signal output.

Parameters

int Test

Do you want to test the function?

0

Off

1

On

2

Test for focus

3

Test for Low

4

Test for High

5

Test for NoSignal

Stg_SetPFSFocus

Description 

 Stg_SetPFSFocus();

This function starts the PFS focusing cycle, and waits for getting focused. Maximal focusing interval is 8s.

Return Values

0

PFS is focused.

1

PFS is not focused (e.g. ZDrive is out of PFS range).

Stg_SetPFSLEDSwitch

Description 

 Stg_SetPFSLEDSwitch(
   int  Switch
);

Turns the near-infrared 870-nanometer LED inside the Perfect focus system ON/OFF

Parameters

int Switch

0

Turn it OFF

1

Turn it ON

Stg_SetPFSLensOffsetPosition

Description 

 Stg_SetPFSLensOffsetPosition(
   int  PFSLensOffset
);

This function can set the PFS offset.

Parameters

int PFSLensOffset

The offset value

Stg_SetPFSStatus

Description 

 Stg_SetPFSStatus(
   int  PFSStatus
);

This function can turn the PFS ON/OFF.

Parameters

int PFSStatus

0

Turn PFS OFF

1

Turn PFS ON, find the focused position, keep the position.

Stg_WaitForPFS

Description 

 Stg_WaitForPFS(
   double  StgTimeout
);

This function waits for specified time interval for PFS to focus.

Parameters

double StgTimeout

The timeout [s] which the function waits for PFS. Recommended value is 8 s.

_StgSetupPFSFocus

This function runs the Devices > Auto PFS Focus Setup command.

Description 

 _StgSetupPFSFocus();

This function opens the Auto PFS Focus Setup.