
80
SetActionByIdx ( EventId, Idx, Name, Type, Delay, DutyCycle, StopAfter, Port,
Output )
Modifies an Action specified by its associated Event ID and index.
Syntax
HRESULT SetActionByIdx(
[in] long EventId,
[in] long Idx,
[in] BSTR Name,
[in] long Type,
[in] double Delay,
[in] double DutyCycle,
[in] long StopAfter,
[in] BSTR Port,
[in] BSTR Output,
[out, retval] VARIANT_BOOL* Success
);
Parameters
Event ID
[in] ID of the Event that contains the Action.
Idx
[in] Index of the Action in the Event’s Action list..
Name
[in] Name to use for the Action.
Type
[in] Type of Action, e.g. Serial, Variable, etc.
Delay
[in] Number of seconds to delay before sending
Output
to
Port
. This is a real number, and non-integer values are
allowed.
DutyCycle
[in] Number of seconds to delay between each successive execution of the Action. This is a real number, and non-
integer values are allowed.
StopAfter
[in] Number of times to repeat the Action
Port
[in] Location where the output is sent
Output
[in] Data that should be output.
This parameter depends on the value of
Type
.
Action
Type
Returned values for
Output
Variable
Depends on the type of Variable being
assigned
Serial
A simple string or complex expression
Event
“0”: Cancel the Event
“1”: Execute the Event
“2”: Disable the Event
“3”: Enable the Event
Success
[out, retval] TRUE if specified Action’s settings were updated, FALSE if updating the Action failed.
Содержание CRM-WIC
Страница 1: ...Reference Manual Programming Guide Room Monitor Web Intelligent Controller Model CRM WIC...
Страница 7: ...7 Box Contents Box Contents for the CRM WIC Web Intelligent Controller Model CRMWIC Power Adapter...
Страница 8: ...8 Hardware User Interface Hardware User Interface for the CRM WIC...
Страница 16: ...16 For full details see the RPC section at the end of this manual...
Страница 43: ...43 This expression resolves to this value 0 1 4 3 1 Hello Hello 0...
Страница 98: ...98 Index...