<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://docs.optrix.com.au/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>ARDI Documentation - jsapi</title>
        <description></description>
        <link>https://docs.optrix.com.au/</link>
        <lastBuildDate>Wed, 27 May 2026 01:23:25 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://docs.optrix.com.au/_media/wiki:dokuwiki.svg</url>
            <title>ARDI Documentation</title>
            <link>https://docs.optrix.com.au/</link>
        </image>
        <item>
            <title>A Simple Live-Data Web Page</title>
            <link>https://docs.optrix.com.au/jsapi:a_simple_example</link>
            <description>A Simple Live-Data Web Page

Below you&#039;ll find the code for a simple web-page that displays the current speed of the Paint Line on our demo server.


&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Testing&lt;/title&gt;
    &lt;script src=&quot;https://demo.optrix.com.au/plugins/optrix/hmitt.js&quot;&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div id=&quot;display&quot;&gt;
       Unknown
    &lt;/div&gt;

    &lt;script&gt;

//Create a connection
var connection = new HMITTPanel();

//Subscribe to points
connection.Sub(&quot;Paint Line.Speed - Actual&quot;,function (v) {
   docu…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 18 Dec 2025 22:50:17 +0000</pubDate>
        </item>
        <item>
            <title>Connect</title>
            <link>https://docs.optrix.com.au/jsapi:connect</link>
            <description>Connect

The Connect function is part of the HMITTPanel class used to connect to live ARDI data.

Once you&#039;ve subscribed to one or more points with the Sub function, you use Connect to connect to the ARDI server.

Parameters
NameType/DefaultUseServerStringThe URL</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 18 Dec 2025 22:50:17 +0000</pubDate>
        </item>
        <item>
            <title>GetValue</title>
            <link>https://docs.optrix.com.au/jsapi:getvalue</link>
            <description>GetValue

The GetValue function is part of the 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 &#039;null&#039; unless a default value is specified.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 18 Dec 2025 22:50:17 +0000</pubDate>
        </item>
        <item>
            <title>HMITTPanel Class Reference</title>
            <link>https://docs.optrix.com.au/jsapi:hmittpanel</link>
            <description>HMITTPanel Class Reference

Major Functions

Sub - Subscribes to a single ARDI data point 

UseSSL - Sets up to connect via SSL 

Connect - Connects to the ARDI server

Other Functions

GetValue - Returns the value of a named point 

InteractiveControls - Creates interactive time-travel controls (requires JQuery)</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 18 Dec 2025 22:50:17 +0000</pubDate>
        </item>
        <item>
            <title>InteractiveControls</title>
            <link>https://docs.optrix.com.au/jsapi:interactivecontrols</link>
            <description>InteractiveControls

The InteractiveControls function is part of the HMITTPanel class used to connect to live ARDI data.

It provides a simple, HTML UI that allows users to &#039;time travel&#039; - to playback data from other times.

Parameters

None

Notes

This function should not be called within SVG files or other non-</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 18 Dec 2025 22:50:17 +0000</pubDate>
        </item>
        <item>
            <title>Working With Multiple Data Points</title>
            <link>https://docs.optrix.com.au/jsapi:introducing_getvalue</link>
            <description>Working With Multiple Data Points

If you want to work with multiple data points at a time, we provide the GetValue function.

This function takes the name of the point you&#039;re subscribed to, and an optional default value to return if no value is available (if no default is specified, the function returns &#039;null&#039; when there are no results).</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 18 Dec 2025 22:50:17 +0000</pubDate>
        </item>
        <item>
            <title>OnlyWhenFocused</title>
            <link>https://docs.optrix.com.au/jsapi:onlywhenfocused</link>
            <description>OnlyWhenFocused

The OnlyWhenFocused function is part of the HMITTPanel class used to connect to live ARDI data.

It sets up event handlers so that the feed of live data stops when a HTML page or SVG file is in the background (ie. not the active tab in your web browser).</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 18 Dec 2025 22:50:17 +0000</pubDate>
        </item>
        <item>
            <title>Colours and Names</title>
            <link>https://docs.optrix.com.au/jsapi:right_names_and_colours</link>
            <description>Colours and Names

Your live data will usually be numeric. Digital sensors and statuses will be sent as 0s and 1s.

It&#039;s important to be able to make these values human-readable, and to use the colour-codes that users expect to see.

The Infographics</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 18 Dec 2025 22:50:17 +0000</pubDate>
        </item>
        <item>
            <title>Sub</title>
            <link>https://docs.optrix.com.au/jsapi:sub</link>
            <description>Sub

The Sub function is part of the HMITTPanel class used to connect to live ARDI data.

It adds a single point of data to the subscription, and provides a function that is called whenever the value of that point changes.

Parameters
NameType/DefaultUsePointString</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 18 Dec 2025 22:50:17 +0000</pubDate>
        </item>
        <item>
            <title>UseSSL</title>
            <link>https://docs.optrix.com.au/jsapi:usessl</link>
            <description>UseSSL

The UseSSL function is part of the HMITTPanel class used to connect to live ARDI data.

It tells the library to connect using indirect SSL subscriptions rather than direct, insecure HTTP sessions.

Parameters

None

Example


   //Create &#039;connection&#039; and subscriptions...

   connection.UseSSL();
   connection.Connect(&quot;myardiserver/s/default&quot;);</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 18 Dec 2025 22:50:17 +0000</pubDate>
        </item>
        <item>
            <title>ARDI Javascript Live Data API</title>
            <link>https://docs.optrix.com.au/jsapi:welcome</link>
            <description>ARDI Javascript Live Data API

The ARDI Javascript Live Data API is an update to the earlier Javascript API, with a number of quality-of-life improvements and new functionality.

Fundamentally, the API allows you to connect your web page or SVG image to a stream of live data from an ARDI server.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 27 Apr 2026 23:07:22 +0000</pubDate>
        </item>
    </channel>
</rss>
