Manual
10 Predefined Events
Example 1 – Event for a Single Network
Variable
network output SVNT_abs_humid nvoHumidity;
...
nvoHumidity = 32; // This initiates an NV update
...
when (nv_update_completes(nvoHumidity))
{
...
}
Example 2 – Event for a Network Variable
Array
network output SVNT_abs_humid nvoHumidity[4];
...
nvoHumidity[1] = 32; // This initiates an NV update
...
when (nv_update_completes(nvoHumidity))
{
...
}
Example 3 – Event for a Range of Network
Variables
network output SVNT_abs_humid nvoHumidity1, nvoHumidity2,
nvoHumidity3;
...
nvoHumidity2 = 32; // This initiates an NV update
...
when (nv_update_completes(nvoHumidity1 .. nvoHumidity3))
{
...
}
nv_update_fails Event
The nv_update_fails event evaluates to TRUE when an output network variable
update or poll fails (see the
Neuron C Programmer’s Guide
for the definition of
success).
If an array name is used, then each element of the array is checked for failure.
The event occurs once for each element that experiences a failure event. An
individual element can be checked with use of an array index. When
nv_update_fails is TRUE for an event qualified by the name of an entire NV