Differences
This shows you the differences between two versions of the page.
| interactivesvg:subscribe [2022/11/30 23:56] – created optrix | interactivesvg:subscribe [2025/12/18 22:50] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====Subscribe==== | ||
| + | The **Subscribe** function is part of the [[HMIPanel]] class in the ARDI Javascript API. | ||
| + | |||
| + | You use the command to subscribe to changes in a single data point. | ||
| + | |||
| + | ===Parameters=== | ||
| + | |||
| + | **Point**: The [[ardi point code|point code]] for the property you want to monitor. Note that if you're creating a dynamic SVG file, you might be able to use an [[Embedding Codes|embedding code]]. | ||
| + | |||
| + | **Callback**: | ||
| + | |||
| + | **Animated**: | ||
| + | |||
| + | ===Usage=== | ||
| + | |||
| + | < | ||
| + | var connection = HMIPanel(); | ||
| + | connection.Subscribe(" | ||
| + | | ||
| + | }); | ||
| + | connection.ConnectTo(" | ||
| + | </ | ||
| + | |||
| + | Normally, your Subscribe calls should be before a call to [[ConnectTo]]. | ||