Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page Examples of Managing System Objects  Working with the System in the Multiuser Mode Next page


On the page:

System objects are added, updated, and deleted by the following commands:

  1. CORE||CREATE_OBJECT – creates a new object.
  2. CORE||UPDATE_OBJECT – updates an existing object or creates a new one.
  3. CORE||DELETE_OBJECT – deletes an object.

Adding a User to a Department

Below is a message that adds the specified user to the specified department, with the specified parameters:

CORE||CREATE_OBJECT|objtype<PERSON>,objid<12341>,parent_id<1>,surname<Tim>,name<Kovac>,card<12362>,facility_code<0>

IIDK will return the following message in response to this command:

CORE||CREATE_OBJECT|card<1234>,objtype<PERSON>,guid_pk<{281A172C-62D2-EA11-A54B-B06EBF811A34}>,facility_code<122>,surname<Tim>,module<iidk_client_test_x64.exe>,time<16:42:53>,parent_id<1>,fraction<797>,date<30-07-20>,name<Kovac>,owner<QA-T49>,SLAVE_id<QA-T49.11>,objid<12341>

This allows receiving the ID of the created object in the objid<> parameter.

Adding and Deleting a Video Capture Card

If an object is not present in the system, add that object with the UPDATE_OBJECT command (the system must not have an object with a type and ID equal to objtype and objid, respectively).

CORE||UPDATE_OBJECT|objtype<GRABBER>,objid<12>,core_global<0>,parent_id<SLAVAXP>,name<Frame grabber 1>,params<5>,param0_name<format>,param0_val<NTSC>,param1_name<mode>,param1_val<1>,param2_name<chan>,param2_val<2>,param3_name<type>,param3_val<FX 4>,param4_name<resolution>,param4_val<0>

Having received the following message, the system changes the name of an existing object:

 CORE||UPDATE_OBJECT|objtype<GRABBER>,objid<12>,core_global<0>,parent_id<SLAVAXP>,name<Card 2>

To delete an object and all of its child objects, use the DELETE_OBJECT command:

CORE||DELETE_OBJECT|objtype<GRABBER>,objid<12>

  • No labels