<< Click to Display Table of Contents > Option Optic3D |
The following chapter deals with Optic3D. Global parameters can be found in the main chapter, whereby the commands for 3D surfaces are explained in the following subchapter:
|
---|
☒ Set ☒ Get |
|||
---|---|---|---|
DLL Function |
int CCI_Return = ScSetDoubleValue(int Value_Type, double Parameter) double Parameter = ScGetDoubleValue(int Value_Type) |
||
ASCII Function |
int CCI_Return = ScCciSetDoubleValue(int Value_Type, double Parameter) double Parameter = ScCciGetDoubleValue(int Value_Type) |
||
Description |
Set or get various Optic 3D parameter of the Z Correction (3D Ext) dialog. |
||
Value_Type |
Type: int |
ID: |
|
Location: ScComSAMLightClientCtrlValueTypes |
|||
scComSAMLightClientCtrlDoubleValueTypeDistanceMirrorsMM |
196608 |
||
Distance mirrors [mm]. |
|||
scComSAMLightClientCtrlDoubleValueTypeRadiusSecondMirrorMM |
196609 |
||
Distance 2nd mirror to focus [mm]. |
|||
scComSAMLightClientCtrlDoubleValueTypeZNumControlPoints |
196610 |
||
Number of Z-Corr lookup control points of the Z-Corr lookup table. Range: [2.0, 32.0]. |
|||
scComSAMLightClientCtrlDoubleValueTypeZCorrFieldSize |
196612 |
||
Fieldsize [mm] of the Z Correction (3D Ext) dialog. |
|||
scComSAMLightClientCtrlDoubleValueTypeLookupZMMStart |
196864 |
||
Focus distance [mm] of the Z-Corr lookup table. Range of mm values: [0.0, 5000.0]. Up to 32 Z-Corr lookup control points can be used. Range of LookupZMM IDs: [196864, 196895]. |
|||
scComSAMLightClientCtrlDoubleValueTypeLookupZDacStart |
229632 |
||
Z - value [bit] of the Z-Corr lookup table. Range of bit values: [-32768.0, 32767.0]. Up to 32 Z-Corr lookup control points can be used. Range of LookupZDac IDs: [229632, 229663]. |
|||
Parameter |
Type: double |
Unit: depends on constant |
|
The corresponding value. |
|||
CCI_Return |
Type: int |
||
CCI return number, see error list. |
|||
Notes |
- |
||
C# Example: Set mirror distance to 20.0 mm:
int CCI_Return = cci.ScSetDoubleValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeDistanceMirrorsMM, 20.0 ); |
|||
C# Example: Get current mirror distance:
int Distance_Mirrors = cci.ScGetLongValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeDistanceMirrorsMM ); |
|||
C# Example: Set up a linear Z lookup table:
double[] Lookup_Z_MM = { 210.0, 270.0 }; double[] Lookup_Z_Dac = { -32768.0, 32767.0 }; int CCI_Return_00 = cci.ScSetDoubleValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeZNumControlPoints, ( double )Lookup_Z_MM.Length ); for (int i = 0; i < Lookup_Z_MM.Length; i++ ) { int CCI_Return_01 = cci.ScSetDoubleValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeLookupZMMStart + i, Lookup_Z_MM[i] ); int CCI_Return_02 = cci.ScSetDoubleValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeLookupZDacStart + i, Lookup_Z_Dac[i] ); } |
Table 299: Optic 3D Settings