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

axlSetEnabled

axlSetEnabled( 
x_element 
g_enable 
) 
=> t / nil

Description

Enables or disables a setup database element, such as a test or a variable.

Arguments

x_element

Setup database element handle

g_enable

Enables the flag.

  • t: Enables the flag.
  • nil: Disables the flag.

Value Returned

t

The specified setup database is enabled or disabled.

nil

Indicates an error.

Examples

Uses the axlSetEnabled function to enable or disable different elements in the setup database.

x_mainDB = axlGetMainSetupDB(axlGetWindowSession())
=>1001
;; Enable a test
testHandle = axlGetTest( x_mainDB "data_dead_band" )
=> 1005
axlSetEnabled( testHandle t )
=> 1
;; Disable tests
foreach(test cadr(axlGetTests(1001))
axlSetEnabled( axlGetTest(1001 test ) nil ))
=> ("testName1" "testName2")
;; Disable variables
foreach( param cadr( axlGetVars( x_mainDB ) )
axlSetEnabled( axlGetVar( x_mainDB param ) nil ))
=> ("CAP" "R0" "R1" "LENGTH")

Related Topics

axlCreateSession

axlSetMainSetupDB

axlGetTests

axlGetTestaxlGetVars

axlGetVar


Return to top
 ⠀
X