Материал из Module developer
Перейти к: навигация, поиск

Device.GetFeedback()

to get the value from the feedback channel of the driver. The channel must be created in advance in Project Device Panel. It is used for getting access to data written in the channel.

Syntax

Module.GetDevice(driver).GetFeedback(name)

input sample description
driver "Driver 1" type: string
the driver name in the iRidium project
name "Channel 1" type: string
the feedback channel name (Feedbacks)
output
value "data" type: string, number
the string or number received from the feedback channel


Example:

B.getModule(ModuleID);
Module.GetDevice("MyDevice").GetFeedback("Value 1"); // 100