get_var_notification()Returns a handle which is used to receive notification of a change to a variable. void* get_var_notification(int var_idx) Parameters
Return ValueThe handle to an event that signals when the variable changes or NULL if an output or invalid variable index is passed in. RemarksThe index of the variable should be from the .h file exported from the Spark! model. The variable's index may not coincide with the screen position of the variable. Note: Output variables do NOT send notifications. Output values are calculated when requested (via get_cog_output() and get_mom_output()) so signaling that the value changed would be of little use. See also wait(), Export .h File Example
|
|