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

Device.SetFeedback()

to write the value in the driver feedback channel. The channel has to be created in advance in Project Device Panel. It is used to display data received from equipment at work of scripts.

Syntax

Module.GetDevice(driver).SetFeedback(name, value)

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)
value "data" type: string, number
the string or number you to be written in the channel
output
successful or not type: Boolean
successful


Example:

B.getModule(ModuleID);
Module.GetDevice("MyDevice").SetFeedback("Value 1", 100);