<< Click to Display Table of Contents > 

Client Control Interface Manual > Global Settings > sc_setup

sc_setup
Previous pageReturn to chapter overviewNext page

The following commands can not be set in the global settings of SAMLight. Here it is required to open the sc_setup. Since this are global parameters, these commands are also listed in the global settings.

DA1/DA2

Language

Laser Type

Z Offset → Optic

 

DAC A/B

 

Set

Get

DLL Function

int CCI_Return = ScSetLongValue(int Value_Type, int DAC)

ASCII Function

int CCI_Return = ScCciSetLongValue(int Value_Type, int DAC)

Description

Set the analog output 1 or 2 of the scanner controller card (DAC_A/DA1 or DAC_B/DA2).

Value_Type

Type: int

ID:

Location: ScComSAMLightClientCtrlValueTypes

scComSAMLightClientCtrlLongValueTypeDA1

6

Set the analog output 1 of the scanner controller card (DAC_A).

scComSAMLightClientCtrlLongValueTypeDA2

7

Set the analog output 2 of the scanner controller card (DAC_B).

DAC

Type: int

Unit: none

The values that can be set in principle range from 0 to 65535 (2^16-1). But depending on USC card and preselected DAC_A/DAC_B voltage signal range of 2.5, 5 and 10V only the 8 to 12 most significant of 16 bits can be actual used to set the DAC_A/DAC_B value, see Notes below.

CCI_Return

Type: int

CCI return number, see error list.

Notes

The commands will just set the output and will not change the pen power.

For USC-2/-3 card values ≤ 2^6-1 correspond to a voltage of 0V of the preselected DAC_A/DAC_B voltage signal range of 0 to 2.5V, values ≤ 2^5-1 correspond to a voltage of 0V of the preselected DAC_A/DAC_B voltage signal range of 0 to 5V and values ≤ 2^4-1 correspond to a voltage of 0V of the preselected DAC_A/DAC_B voltage signal range of 0 to 10V. So for USC-2/-3 only the 10,11 or 12 most significant of 16 bits from 2^4-1=15, 2^5-1=31 and 2^6-1=63 to 2^16-1=65535 can be actual used to set the DAC_A/DAC_B value, which corresponds to a resolution range between 0 to 1023, 2047 and 4095. For USC-2/-3 the set value can checked at InfoView of sc_usc_server.exe for Member AnalogOutA and AnalogOutB.

For USC-1 card values ≤ 2^8-1 = 255 correspond to a voltage of 0V, independent of the preselected DAC_A/DAC_B voltage signal range of 0 to 2.5, 5 or 10V. So for USC-1 only the 8 most significant of 16 bits from 2^8-1=255 to 2^16-1=65535 can be actual used to set the DAC_A/DAC_B value, which corresponds to a resolution range between 0 and 255.

C# Example: Set DAC_A to maximum value value of USC-3 of  2^16-1=65535:
 
int CCI_Return = cci.ScSetLongValue((int)ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypeDA1, (int)Math.Pow(2, 16)-1);

C# Example:Set DAC_B to minimum value of  2^4-1=15 for USC-3 for the preselected DAC_A/DAC_B voltage signal range between 0 and 10V:
 
int CCI_Return = cci.ScSetLongValue((int)ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypeDA2, (int)Math.Pow(2, 4)-1);

Table 63: DAC A/DAC B

Language
 

Set

Get

DLL Function

int CCI_Return = ScGetStringValue(int Value_Type, ref string Language)

ASCII Function

string Language = ScCciGetStringValue(int Value_Type)

Description

Get the current SAMLight language.

Value_Type

Type: int

Location: ScComSAMLightClientCtrlValueTypes

scComSAMLightClientCtrlStringValueTypeLanguage

34

Language

Type: string

Unit: none

The language set in sc_setup.exe.

CCI_Return

Type: int

CCI return number, see error list.

Notes

If Unicode is chosen "_uc" will be added at the end of the return string.

C# Example: Get the current SAMLight language:

 

string Language = "";

int CCI_Return = cci.ScGetStringValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlStringValueTypeLanguage, ref Language );

Table 64: Language

Laser Type
 

Set

Get

DLL Function

double Laser = ScGetDoubleValue(int Value_Type)

ASCII Function

double Parameter = ScCciGetDoubleValue(int Value_Type)

Description

Get the required Laser Type and Version.

Value_Type

Type: int

ID:

Location: ScComSAMLightClientCtrlValueTypes

scComSAMLightClientCtrlDoubleValueTypeLaserType

65597

Get Laser type.

scComSAMLightClientCtrlDoubleValueTypeLaserTypeVersion

65598

Get Laser type version.

Laser

Type: int

Unit: none

Get laser type and version.

Notes

-

C# Example: Get laser type version:

 
int Laser_Version = cci.ScGetDoubleValue((int)ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlDoubleValueTypeLaserType);

Table 65: Laser Type