v10.50 v10.55 Alpha v10.54 Alpha v10.53 Alpha v10.52 Alpha v10.51 Alpha
v10.50 v10.55 Alpha v10.54 Alpha v10.53 Alpha v10.52 Alpha v10.51 Alpha

COM/Automation Communication Functions

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

NotifyClient()

Sends information to COM/Automation™ client applications in custom format. The client application receives a VARIANT object, which it is supposed to parse.

NotifyClient(event_id, param_list)

Parameters

event_id

Integer parameter representing event identifier

param_list

List of parameters to be sent to the client application. Each parameter might be an integer, string, raw data (byte chain), or list. Because the list itself may contain integers, strings, raw data, or other lists, it is possible to send very complicated messages. (Lists should be treated as arrays of VARIANTs.)

Example

...
if(SomeCondition())
{
  NotifyClient(2, [ in.Index, "USB2 CHANNEL", "USB2 packet", in.Pid, 
                    in. PayloadLength, TimeToText(in.Time)]);
}
...
# Send two parameters to client applications: 
# 2 (integer),
# [ in.Index, "USB2 CHANNEL", "USB2 packet", in.Pid, 
#   in. PayloadLength, TimeToText(in.Time)] (list)

Remarks

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