Syntax, Example 1 – event for a single network variable, Example 2 – event for a network variable array – Echelon Neuron C User Manual
Page 34: Example 3 – event for a range of network variables
14
Predefined Events
If a program checks for the nv_update_succeeds event, it must check for the
nv_update_fails event as well. The alternative is to check only for 
nv_update_completes. A program is also permitted to check only for 
nv_update_fails as long as there is no use of nv_update_completes or
nv_update_succeeds for
any
network variable.
Syntax
nv_update_succeeds [(
network-var
)]
nv_update_succeeds [(
network-var1
..
network-var2
)]
network-var
A network variable identifier, a network variable array 
identifier, or a network variable array element. A range 
can be specified with two network variable identifiers or 
network variable array elements separated with a range 
operator (two consecutive dots). The range is defined by
the indices of the referenced network variables. If the 
parameter is omitted, the event is TRUE when any 
network variable update succeeds.
Example 1 – Event for a Single Network 
Variable 
network output SNVT_abs_humid nvoHumidity; 
 
 ... 
 nvoHumidity = 32; 
 ... 
 
when (nv_update_succeeds(nvoHumidity)) 
{ 
 ... 
} 
Example 2 – Event for a Network Variable 
Array 
network output SNVT_abs_humid nvoHumidity[4]; 
 
 ... 
 nvoHumidity[1] = 32; 
 ... 
 
when (nv_update_succeeds(nvoHumidity)) 
{ 
 ... 
} 
Example 3 – Event for a Range of Network 
Variables 
network output SNVT_abs_humid nvoHumidity1, nvoHumidity2,