Isasanalyzer::isrunning – Teledyne LeCroy SAS_SATA Automation API manual User Manual
Page 26

Teledyne LeCroy
SASAnalyzer Object
20
Automation API for Teledyne LeCroy SAS/SATA Protocol Suite
ISASAnalyzer::IsRunning
HRESULT IsRunning (
[in] int nFunctionality,
[out, retval] BOOL* pbIsRunning)
This function returns the running status of projects.
Parameters
nFunctionality
This parameter specifies the functionality of the project that you
want to check its running status. You should set this parameter as
below:
0
: to check all available functionalities status at once
1
: to check Analyzer running status
2
: to check Infusion running status
3
: to check Sierra/STX running status
4
: to check whether Target/Device emulator is active or not
5
: to check Initiator emulator running status
Return Value
pbIsRunning
This parameter returns the running status
Remarks
By calling this function, you will be able to check whether the Analyzer, Infusion,
Sierra/STX, Target/Device Emulator and Initiator Emulator are running or not. If you want
to check all these functionalities at once, you have to set the first parameter
(
nFunctionality) to zero.
Example
VBScript:
Dim bIsRunning
Dim Timer
Dim TimeOut
Timer = 0
bIsRunning = TRUE
'Set waiting time out to 60 Seconds
TimeOut= 60 'seconds
'Wait for project to stop or timeout happen
While bIsRunning <> FALSE And Timer < TimeOut