Product Documentation
Virtuoso ADE SKILL Reference
Product Version IC23.1, November 2023

axlSessionConnect

axlSessionConnect( 
t_sessionName
t_signalName
s_callbackFunc
) 
=> t / nil

Description

Registers a SKILL callback to be connected to a known signal or trigger emitted from an ADE session.

Arguments

t_sessionName

Name of the session.

t_signalName

Name of the signal or trigger emitted by the ADE session for which to register a callback.

To see the list of signals emitted by the ADE sessions, see axlSessionSignalList.

s_callbackFunc

Symbol representing the callback function to be called when the signal is emitted.

Value Returned

t

A callback is successfully registered.

nil

A callback is not registered.

Examples

Connects a custom function, _myRunModeChangedCB, with the runModeChanged trigger.

session = axlGetWindowSession(hiGetCurrentWindow())
(axlSessionConnect session "runModeChanged" '_myRunModeChangedCB)

Whenever the simulation run mode is changed, the SKILL function _myRunModeChangedCB is called.

It is important to register the callback during the ADE session start time to connect the trigger with the custom function. For this, you can use the axlSessionRegisterCreationCallback function in the .cdsinit file.

Related Topics

axlSessionRegisterCreationCallback

axlSessionSignalList

axlSessionSignalSignature

axlSessionDisconnect

Working with Signals or Triggers


Return to top
 ⠀
X