Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page Message Syntax (port 900)  Examples of Managing System Objects Next page


For working with messages, you may use the classes provided: Event and React, declared in the msg.h file.

Example of using the react class:

A message composed without using the classes

A message composed using the React class

CString msg = “CORE||DO_REACT|source_type<TELEMETRY>,source_id<1.1>, action<GO_PRESET>,params<2>,param0_name<preset>,param0_val<4>,

param1_name<tel_prior>,param1_val<2>”;

SendMsg(id,msg);

 

React react(“TELEMETRY”,”1.1”,”GO_PRESET”);

react.SetParamInt(“preset”,4);

react.SetParamInt(“tel_prior”,2);

SendMsg(id,react.MsgToString().c_str());

 

Note:

The msg.h and msg.cpp files are located in the Misc folder which is in the archive on page Axxon PSIM software integration Guide (HTTP API, IIDK, ActiveX)
  • No labels