Teledyne LeCroy SAS_SATA Automation API manual User Manual
Page 146
![background image](/manuals/353598/146/background.png)
Teledyne LeCroy
SASAnalyzer Object Events
140
Automation API for Teledyne LeCroy SAS/SATA Protocol Suite
If the subsystem is
RECORDING_PROGRESS_REPORT:
When analyzer state is ANALYZERSTATE_IDLE, is not applicable.
When analyzer state is ANALYZERSTATE_WAITING_TRIGGER or
ANALYZERSTATE_RECORDING_TRIGGERED, shows analyzer memory utilization.
When analyzer state is ANALYZERSTATE_UPLOADING_DATA, shows the percent
of data uploaded.
When analyzer state is ANALYZERSTATE_SAVING_DATA, shows the percent of
data saved.
If the subsystem is
GENERATION_PROGRESS_REPORT, represents current position of
script execution.
Return Value
Remarks
Make sure the event handlers have the
__stdcall calling convention.
Example
VBScript:
<OBJECT
ID = Analyzer
CLASSID = "clsid:0B179BB8-DC61-11D4-9B71-000102566088"
>
</OBJECT>
<P ALIGN=LEFT ID=StatusText></P>
<SCRIPT LANGUAGE="VBScript">
<!--
Function GetRecordingStatus(ByVal State, ByVal Percent)
Select Case State
Case -1: GetRecordingStatus = "Idle"
Case 0: GetRecordingStatus = "Recording - Waiting for
trigger"
Case 1: GetRecordingStatus = "Recording - Triggered"
Case 2: GetRecordingStatus = "Uploading"
Case 3: GetRecordingStatus = "Saving Data"
Case Else: GetRecordingStatus = "Invalid recording
status"
End Select
GetRecordingStatus = GetRecordingStatus & ", " &
Percent & "% done"
End Function