Referring to channels and feedbacks

We added a new object - IR.GetServer(). It will enable access to server commands, channels, tags and their properties.


IR.GetServer() methods for working with commands:

  • .GetCommandAtName(channel number or name) - referring to the Command object by it identifier or name
  • .GetGetCommandsCount() - total number of channels in the project
  • .GetCommandAtPos(число) - referring to the Command object by its index

IR.GetServer() methods for working with channels:

  • .GetFeedbackAtName(channel name) - referring to the Feedback object byt its name
  • .GetFeedbacksCount() - total number of channels in the project
  • .GetFeedbackAtPos(число) - referring to the Feedback object by its index


Properties of server commands:

IR.GetServer().GetCommandAtName("Command_name").Property
property: on the output:
name DriverName.Command 1 gives the driver name + the command name
fullname Server.Channels.DriverName.Command 1 gives the full name
id 1 gives the command identifier

Properties of server channels:

IR.GetServer().GetFeedbackAtName("Feedback_name").Property

property:on the output:
nameDriverName.Feedback 1gives the driver name + the channel name
fullnameServer.Tags.DriverName.Feedback 1gives the full name

To get more details download the project

This article was helpful for 1 person. Is this article helpful for you?