_AddOptConf, _ApplyObjectivesXYOffset, _BackupOptConf, _DeviceManagerv2, _ExploreOptConf, _JoystickManager, _ListOfPoints, _ManageDevices, _OptConfSelStimulDevice, _RestoreOptConf, _ShutterSelStimulDevice, AddOptConf, BackupOptConf, CopyUserData, DeleteLightPathLastUsed, DeleteOptConf, DeleteOptConfs, DeleteUserData, EnableSelectOCFromFilter, GetCurrentLightPathName, GetLightPathCount, GetLightPathIndexName, GetOptConfCount, GetOptConfName, GetSelectedOptConf, RestoreOptConf, RestoreOptConfEx, SelectLightPath, SelectOptConf, SelectSetupAndHWConfiguration, SelectSetupAndHWConfigurationNoDialog, SetOpticalConfChanged, SetSaveCameraSetting, SetSaveExposure, SetSaveExposureSetting, ShowDeviceControlDocker, ShowDeviceManagerPad, Stg_ConnectDevice, Stg_DisconnectDevice, Stg_IsStatusStored, Stg_StatusGet, Stg_StatusSet, Stg_StatusStoreAs, SwitchObjectiveAlert, UnselectOptConf
Interactive command to this function: Calibration > New Optical Configuration
Description
AddOptConf( char *CurrOptConf
, char *Objective
, intNosepieceSetting
, intCameraSetting
, intMicroscopeSetting
, intShutterType
, intShutterType2
);
This function creates and adds optical configuration to the system. An interactive equivalent of this function is the _AddOptConf function.
Parameters
See Also
_AddOptConf, DeleteOptConf
Description
BackupOptConf(
char *Filename
);
This function saves settings of the current optical configurations to an XML file.
See Also
RestoreOptConf
Description
DeleteOptConf(
CurrOptConf
);
This function deletes the specified optical configuration.
Note
Objective of the same name will not be deleted.
See Also
AddOptConf, DeleteObjective
Description
EnableSelectOCFromFilter(
int Enabled
);
Changes status of the “Select corresponding optical configuration when filter changed” options within the Edit > Options window.
Description
int GetOptConfCount();
This function returns a number of defined optical configurations.
Description
GetOptConfName( intIndex
, char *CurrOptConf
, intObjectiveNameMaxLength
);
This function returns the pointer to the name of an optical configuration determined by the Index parameter (position of the configuration in the configurations list). It represents one line of a virtual ordered list of the defined optical configurations.
Description
GetSelectedOptConf( char *OptConfObj
, char *OptConfCam
, char *OptConfMic
, intObjectiveNameMaxLength
);
This function returns names of active optical configurations that have an objective, camera, or a microscope settings assigned to them.
Parameters
Description
RestoreOptConf(
char *Filename
);
This function loads optical configuration settings from an .xml file.
See Also
BackupOptConf
Description
RestoreOptConfEx( char *Filename
, intOptions
);
This function loads optical configuration settings from an .xml file.
Parameters
Options
This parameter specifies how to deal with items which already exist in the software.
Opens a dialog window and asks the user what to do. | |
Imports all items from the file. If an item already exists in the software it will be overwritten. | |
Imports only items which do not already exist in the application. | |
Imports all items from the file. If an item already exists in the software, an index number will be appended to its name. | |
Deletes all items in the software and imports all items from the file. |
See Also
BackupOptConf
Description
SelectOptConf(
char OptConf
);
This function selects the specified optical configuration and makes it active.
See Also
_ExploreOptConf, _ExploreObjectives
Description
SetOpticalConfChanged(
int OpticalConf
);
This function corresponds to the Edit > General Options > Appearance > When optical configuration settings changed combo box. Sets the behaviour after changing the settings of the Optical Configuration.
Parameters
See Also
_GeneralOptions
Description
SetSaveCameraSetting(
int SaveSetting
);
This function corresponds to the Edit > General Options > General > Save all camera settings to optical configuration automatically check box. Sets a behaviour after changing camera settings.
See Also
_GeneralOptions
Description
SetSaveExposure(
int SaveExposure
);
Sets status of the Save brightness to optical configuration automatically option. See Edit > Options .
See Also
_GeneralOptions
Description
SetSaveExposureSetting(
int SaveExposure
);
Sets status of the Save brightness to optical configuration automatically option. See Edit > Options .
Description
UnselectOptConf(
char CurrOptConf
);
This function deactivates an active optical configuration.
Parameters
Note
This function is called when you right click an active optical configuration button and select the Unselect command from the context menu.
This function runs the Calibration > New Optical Configuration command.
Description
_AddOptConf();
This function opens the New Optical Configuration dialog window.
See Also
_ExploreOptConf
Description
_BackupOptConf();
This function displays the Export Optical Configurations dialog window. The current set of optical configurations can be saved via this window.
This function runs the Calibration > Optical Configurations command.
Description
_ExploreOptConf();
The function displays the Optical Configurations dialog window.
Description
_OptConfSelStimulDevice();
This function opens a dialog window which selects an optical configuration used by the stimulation device.
Description
_RestoreOptConf();
This function displays the Import Optical Configurations dialog window. Optical configurations previously saved can be loaded via this window.
Description
_ShutterSelStimulDevice();
Opens the Use Shutter as Stimulation Device window enabling to select which shutters are used as stimulation devices.
Description
Stg_ConnectDevice(
char *PhysicalDeviceName
);
Connects a physical device specified by its full name. The device must exist in the device manager device list and must be currently disconnected.
Description
Stg_DisconnectDevice(
char *PhysicalDeviceName
);
Disconnects the physical device specified by its full name. The device must exist in the device manager device list and must be currently connected.
Description
Stg_IsStatusStored( char *PhysicalDeviceKey
, char *LogicalDeviceType
, char *LogicalDeviceKey
, char *StatusName
);
Finds out whether the specified status is stored or not.
Parameters
For an example use case, please see: Stg_StatusStoreAs.
Description
Stg_StatusGet( char *PhysicalDeviceKey
, char *LogicalDeviceType
, char *LogicalDeviceKey
, charBuffer
);
This function can be used to find out which device status was set the last. The status is changed after you call the Stg_StatusSet function. Stg_StatusGet will return "".
Parameters
For an example use case, please see: Stg_StatusStoreAs.
Description
Stg_StatusSet( char *PhysicalDeviceKey
, char *LogicalDeviceType
, char *LogicalDeviceKey
, char *StatusName
, intStatusUseCache
);
Loads the status and sets it to the device.
Parameters
For an example use case, please see: Stg_StatusStoreAs.
Description
Stg_StatusStoreAs( char *PhysicalDeviceKey
, char *LogicalDeviceType
, char *LogicalDeviceKey
, char *StatusName
);
Stores the device status into C:\ProgramData\Laboratory Imaging\Platform\DeviceStatusStorage.bin
.
Parameters
Example use case showing dynamic changing of the XY stage settings:
char buffer[1000]; int buffer_size; // Nikon / Prior stage versions: char *physDevKey = "Nikon Ti"; //"ProScan III"; char *logDevType = "XY"; //"XY"; char *logDevKey = "XYDrive"; //"XY Drive"; // You can store status for the given (physDevKey, logDevType, logDevKey) using Stg_StatusStoreAs(physDevKey, logDevType, logDevKey,"SLOW"); if(1 == Stg_IsStatusStored(physDevKey, logDevType, logDevKey,"SLOW")) { // 1 means cache will be used if available -> only differences are set and the function executes faster: Stg_StatusSet(physDevKey, logDevType, logDevKey,"SLOW",1); StgMoveXY(1000.00000,1000.00000,1); } if(1 == Stg_IsStatusStored(physDevKey, logDevType, logDevKey,"FAST")) { // You can find out which device status was set last by using: Stg_StatusGet(physDevKey, logDevType, logDevKey, buffer); // Please note that if the status is changed after you call Stg_StatusSet, StgStatusGet will return "" Int_CreateWindow(1, "Current status", WP_TOPLEFT, 0, 0, 800, 400, buffer, 1, 1, 0, 1, 1, 1, "Courier,,10"); if(strcpy(buffer,"FAST")) // not equal { Stg_StatusSet(physDevKey, logDevType, logDevKey,"FAST",1); // use cache again } StgMoveXY(-1000.00000,-1000.00000,1); }
Description
SwitchObjectiveAlert();
If turned on (default state), a message box with a warning text is displayed when switching between oil and water/air objectives.
This function runs the Devices > Apply Objectives XY Offset command.
Description
_ApplyObjectivesXYOffset();
Applies XY offsets between objectives based on the values set in the Objective XY Offset dialog window.
This function runs the Devices > Device Manager command.
Description
_DeviceManagerv2(
int OverviewMode
);
Opens the Device Manager dialog window.
Description
_JoystickManager();
Opens the Device Manager dialog window displaying all connected joysticks and foot pedals together with their plugins shown in the combo box. Move the joystick/pedal to highlight it in the list.
This function is supported by the Filter Particle Analysis application.
This function runs the Devices > List of Points command.
Description
_ListOfPoints();
This function displays the list of points for Multipoint Acquisition.
Description
TRUE _ManageDevices();
Displays a dialog box allowing the user to manage the installed devices.
See Also
Stg_IsLightPresent, Stg_IsFilterPresent, Stg_IsShutterPresent, Stg_IsNosepiecePresent
Description
CopyUserData( char *UserName
, char *UserNameDestination
);
Copies the user settings such as OCs, other user settings and visibility of modality buttons.
Description
DeleteLightPathLastUsed(
char *Name
);
Deletes the last used light path.
Description
DeleteUserData(
char *UserName
);
Deletes all device manager data for the specified user.
Description
GetLightPathIndexName( intIndex
, char *Name
, intMaxTextLength
);
Retrieves the name of the light path specified by the index.
Description
GetCurrentLightPathName( char *Name
, intMaxTextLength
);
Retrieves the name of the currently selected light path.
Description
SelectLightPath(
char *Name
);
Selects the light path specified by its name.
This function runs the Devices > Select HW Configuration command.
Description
SelectSetupAndHWConfiguration();
Opens the Setup and Configuration dialog enabling the user to select a hardware configuration or Offline Analysis.
Description
SelectSetupAndHWConfigurationNoDialog( char *SetupName
, char *HWConfigName
);
Selects the specified Hardware Setup and Hardware Configuration without showing the Setup and Configuration dialog window.
Parameters
This function runs the Devices > Show Lightpath Scheme command.
Description
ShowDeviceManagerPad(
int Show
);
Opens the Lightpath Scheme.