Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Devices are managed by exchanging messages (commands) between RUN files and the system core. For implementing this interaction between software modules and the core, use the Intellect Axxon PSIM Integration Developer Kit (IIDK), which is covered in detail in Section Intellect Axxon PSIM Integration Developer Kit (IIDK). Other information is provided by the source files of the demonstration module; the files may be found in an appendix to this documentation.  

Below is an example of how the IIDK is used in the DEMO Axxon One Demo module.

Code Block
CString port = "1100";

CString ip = "127.0.0.1";

CString id = "";

BOOL IsConnect = Connect (ip, port, id, myfunc);

if (!IsConnect)

{

// connection failed

AfxMessageBox("Error");

Return;

}

SendMsg(id,"CAM|1|REC"); // turn on recording for camera 1

SendMsg(id, "DEMOAxxon One Demo|1|RESTORE"); // restore the connection with the Axxon One DEMODemo object

//turn on the DEMO_DEVICE with address 1

SendMsg(id,"DEMO_DEVICE|1|ON|params<1>,param0_name<address>,param0_val<1>");

Disconnect(id);
Note
titleAttention!
 If an MDL file exists, connecting to IntellectAxxon PSIM's core does not require creating an IIDK Interface object in the system. The connection ID passed is an empty string (in other words, the ID is "").

...