Differences

This shows you the differences between two versions of the page.

Link to this comparison view

jsapi:getvalue [2025/04/30 03:24] (current)
optrix created
Line 1: Line 1:
 +====GetValue===
  
 +The **GetValue** function is part of the [[HMITTPanel|HMITTPanel]] class used to connect to live ARDI data.
 +
 +It gets the most recent value for a named data point. Note that this point is //not// animated.
 +
 +If no value has been received for that point yet, the function will return 'null' unless a default value is specified.
 +
 +===Parameters===
 +
 +^Name^Type/Default^Use^
 +|Point|String|The name of the data point, made up of the asset name/identifier, a period (.) and the name of the property.|
 +|Default|Any (null)|The value to return if no data values have arrived yet|
 +
 +===Notes===
 +
 +This function should be called as part of the callback function passed to [[Sub|Sub]].