18 com/automation communication functions, 1 notifyclient(), Otify – Teledyne LeCroy Verification Script Engine for Teledyne LeCroy PETracer Reference Manual User Manual

Page 74: Lient

Advertising
background image

Teledyne LeCroy

Verification Script Engine Reference Manual

Version 6.6x

69

18 COM/Automation Communication Functions


This group of functions covers VSE capabilities to communicate with COM/Automation clients connected to the
PETracer™ application. (Please refer to the PETracer Automation Manual for the details on how to connect to the
PETracer application and VSE)


18.1 NotifyClient()


This function allows you to send information to COM/Automation client applications in a custom format.

The client application receives a VARIANT object, which it is supposed to parse.

Format:

NotifyClient( param_list )


Parameters:

param_list

List of parameters to be sent to the client application. Each parameter might be
an integer, string or list.
(See CSL Manual for details about data types available in CSL.)

Because the list itself may contain integers, strings, or other lists – it is possible
to send complicated messages.
(Lists should be treated as arrays of VARIANTs.)


Example:

if( SomeCondition() )

{

NotifyClient( 2, [ in.Index, in.Level, “CHANNEL 2”, “TLP”,

TimeToText( in.Time )] );

}

# Here we sent 2 parameters to clients applications :
# 2 ( integer ),
# [ in.Index, in.Level, “CHANNEL 2”, “TLP”, TimeToText( in.Time )] ( list )


Remark:

See an example of handling this notification by client applications and parsing code in the PE Automation

document.

Advertising