TTLOutput

Stg_PulseTTL, Stg_TTLOutputDoAction, Stg_TTLOutputDoActionAsync, Stg_TTLOutputGetControlMode, Stg_TTLOutputGetControlModePulses, Stg_TTLOutputGetPulseActiveState, Stg_TTLOutputGetPulseTime, Stg_TTLOutputPulse, Stg_TTLOutputPulseAsync, Stg_TTLOutputPulsesTrain, Stg_TTLOutputPulsesTrainAbort, Stg_TTLOutputPulsesTrainAsync, Stg_TTLOutputPulsesTrainFinished, Stg_TTLOutputSetControlMode, Stg_TTLOutputSetPulseActiveState, Stg_TTLOutputSetPulseTime, Stg_TTLOutputWrite, Stg_WriteTTL

Stg_PulseTTL

Description 

 Stg_PulseTTL(
   char *LpLineName,
   int  LineStatus,
   double  Time
);

Generates a TTL pulse signal which is sent to the selected line.

Parameters

char *LpLineName

Name of the line.

int LineStatus

Signal value of the line.

0

low state

1

high state

double Time

Duration of the generated pulse.

Stg_TTLOutputDoAction

Description 

 Stg_TTLOutputDoAction(
   char *TTLOutputName
);

This function performs an action on the specified TTL output line. The action parameters is defined by other functions (see below).

Parameters

char *TTLOutputName

TTL output line name, as specified within the device manager window.

See Also 
Stg_TTLOutputSetPulseTime, Stg_TTLOutputSetControlMode, Stg_TTLOutputSetPulseActiveState

Stg_TTLOutputDoActionAsync

Description 

 Stg_TTLOutputDoActionAsync(
   char *TTLOutputName
);

This function performs an action on the specified TTL output line. The action parameters is defined by other functions (see below). The action is asynchronous (the macro does not wait for the pulse to finish).

Parameters

char *TTLOutputName

TTL output line name, as specified within the device manager window.

See Also 
Stg_TTLOutputSetPulseTime, Stg_TTLOutputSetControlMode, Stg_TTLOutputSetPulseActiveState

Stg_TTLOutputGetControlMode

Description 

int Stg_TTLOutputGetControlMode(
   char *TTLOutputName
);

This function returns the type of the action to be taken when the Stg_TTLOutputDoAction function is called (pulse or toggle).

Parameters

char *TTLOutputName

TTL output line name, as specified within the device manager window.

Return Values

int

Action to be taken

1

Toggle

2

Pulse

Stg_TTLOutputGetControlModePulses

Description 

 Stg_TTLOutputGetControlModePulses(
   char *TTLOutputName
);

This function retrieves control mode pulses.

Parameters

char *TTLOutputName

TTL output line name, as specified within the device manager window.

Stg_TTLOutputGetPulseActiveState

Description 

int Stg_TTLOutputGetPulseActiveState(
   char *TTLOutputName
);

This function retrieves the information about which value of the TTL signal is considered as active.

Parameters

char *TTLOutputName

TTL output line name, as specified within the device manager window.

Return Values

int

0

is active

1

is active

Stg_TTLOutputGetPulseTime

Description 

double Stg_TTLOutputGetPulseTime(
   char *TTLOutputName
);

This function retrieves the current setting of the pulse duration.

Parameters

char *TTLOutputName

TTL output line name, as specified within the device manager window.

Return Values

double

Pulse duration in milliseconds.

Stg_TTLOutputPulse

Description 

 Stg_TTLOutputPulse(
   char *TTLOutputName,
   int  LineStatus,
   double  PulseTime
);

This function sends a custom pulse to the specified TTL output line.

Parameters

char *TTLOutputName

TTL output line name, as specified within the device manager window.

int LineStatus

Signal value of the line.

0

low state

1

high state

double PulseTime

Pulse duration in [ms].

Stg_TTLOutputPulseAsync

Description 

 Stg_TTLOutputPulseAsync(
   char *TTLOutputName,
   int  LineStatus,
   double  PulseTime
);

This function sends a custom pulse to the specified TTL output line. The action is asynchronous (the macro does not wait for the pulse to finish).

Parameters

char *TTLOutputName

TTL output line name, as specified within the device manager window.

int LineStatus

Signal value of the line.

0

low state

1

high state

double PulseTime

Pulse duration in [ms].

Stg_TTLOutputPulsesTrain

Description 

 Stg_TTLOutputPulsesTrain(
   char *TTLOutputName,
   int  LineStatus,
   double  PulseTime,
   double  PulseTime2,
   int  NumPeriods,
   int  Infiniti
);

This function generates pulses with defined parameters for set time periods.

Parameters

char *TTLOutputName

TTL output line name, as specified within the device manager window.

int LineStatus

Signal value of the line.

0

low state

1

high state

double PulseTime

Pulse duration in [ms].

double PulseTime2

Duration of the second phase of the pulse in milliseconds.

int NumPeriods

Number of periods.

int Infiniti

Generates pulses continuously, until the Stg_TTLOutputPulsesTrainAbort or Stg_TTLOutputPulsesTrainFinished function is called.

See Also 
Stg_TTLOutputPulsesTrainAsync, Stg_TTLOutputPulsesTrainAbort, Stg_TTLOutputPulsesTrainFinished

Stg_TTLOutputPulsesTrainAbort

Description 

 Stg_TTLOutputPulsesTrainAbort(
   char *TTLOutputName
);

This function aborts generation of TTL output pulses.

Parameters

char *TTLOutputName

TTL output line name, as specified within the device manager window.

See Also 
Stg_TTLOutputPulsesTrain, Stg_TTLOutputPulsesTrainAsync, Stg_TTLOutputPulsesTrainFinished

Stg_TTLOutputPulsesTrainAsync

Description 

 Stg_TTLOutputPulsesTrainAsync(
   char *TTLOutputName,
   int  LineStatus,
   double  PulseTime,
   double  PulseTime2,
   int  NumPeriods,
   int  Infiniti
);

This function generates pulses with defined parameters for set time periods. The action is asynchronous (the macro does not wait for the pulse to finish).

Parameters

char *TTLOutputName

TTL output line name, as specified within the device manager window.

int LineStatus

Signal value of the line.

0

low state

1

high state

double PulseTime

Pulse duration in [ms].

double PulseTime2

Duration of the second phase of the pulse in milliseconds.

int NumPeriods

Number of periods.

int Infiniti

Generates pulses continuously, until the Stg_TTLOutputPulsesTrainAbort or Stg_TTLOutputPulsesTrainFinished function is called.

See Also 
Stg_TTLOutputPulsesTrainAbort, Stg_TTLOutputPulsesTrainFinished

Stg_TTLOutputPulsesTrainFinished

Description 

 Stg_TTLOutputPulsesTrainFinished(
   char *TTLOutputName
);

This function stops generating of TTL output pulses.

Parameters

char *TTLOutputName

TTL output line name, as specified within the device manager window.

See Also 
Stg_TTLOutputPulsesTrain, Stg_TTLOutputPulsesTrainAsync, Stg_TTLOutputPulsesTrainAbort

Stg_TTLOutputSetControlMode

Description 

 Stg_TTLOutputSetControlMode(
   char *TTLOutputName,
   int  ControlMode
);

This function sets the type of the action to be taken when the Stg_TTLOutputDoAction function is called (pulse or toggle).

Parameters

char *TTLOutputName

TTL output line name, as specified within the device manager window.

int ControlMode

Action to be taken

1

Toggle

2

Pulse

See Also 
Stg_TTLOutputDoAction

Stg_TTLOutputSetPulseActiveState

Description 

 Stg_TTLOutputSetPulseActiveState(
   char *TTLOutputName,
   int  LineStatus
);

This function enables you to select which value of the TTL signal will be considered as active.

Parameters

char *TTLOutputName

TTL output line name, as specified within the device manager window.

int LineStatus

Signal value of the line.

0

low state

1

high state

See Also 
Stg_TTLOutputDoAction

Stg_TTLOutputSetPulseTime

Description 

 Stg_TTLOutputSetPulseTime(
   char *TTLOutputName,
   double  PulseTime
);

This function sets duration of the pulse to the specified TTL output line.

Parameters

char *TTLOutputName

TTL output line name, as specified within the device manager window.

double PulseTime

Pulse duration in [ms].

Note

This value applies only when in the pulse control mode.

See Also 
Stg_TTLOutputSetControlMode

Stg_TTLOutputWrite

Description 

 Stg_TTLOutputWrite(
   char *TTLOutputName,
   int  LineStatus
);

This function sets the state of the specified TTL output line

Parameters

char *TTLOutputName

TTL output line name, as specified within the device manager window.

int LineStatus

Signal value of the line.

0

low state

1

high state

Stg_WriteTTL

Description 

 Stg_WriteTTL(
   char *LpLineName,
   int  LineStatus
);

This function sets the TTL state to the selected line.

Parameters

char *LpLineName

Name of the line.

int LineStatus

Signal value of the line.

0

low state

1

high state