Process API Commands
Process API commands interacting with Pulse.
The Process API Commands provide a mechanism to interact with the Pulse process via the scripts executed by the applications that are invoked within the Pulse process.
These API commands are provided as external packages and are available for the following languages: Lua, OML, Python, and Tcl. The code snippets below show how to reference the Pulse API packages in the application scripts for the individual languages.
Lua
apidir = os.getenv(“ALTAIR_PULSE_API”)
mymodulepath = apidir..”/lua”
package.path = package.path..mymodulepath
package.path = package.path.."\\?.lua"
local pulse = require "pulse"
OML
mypath = getenv(‘ALTAIR_PULSE_API’)
pulsepath = [mypath '/oml']
addpath(pulsepath)
Python
apidir = os.environ[‘ALTAIR_PULSE_API’]
path = os.path.join(apidir,"python")
sys.path.append(path)
Tcl
set api_dir $::env(ALTAIR_PULSE_API)
set tcl_dir [file join $api_dir "tcl"]
lappend ::auto_path $tcl_dir
package require pulse