OTrunk sensor interface integrated into Geogebra

4 views
Skip to first unread message

Stephen Bannasch

unread,
Nov 24, 2010, 8:53:38 PM11/24/10
to cc-dev...@googlegroups.com
Michael Borcherds, the lead developer of Geogebra (http://www.geogebra.org) has a rough working integration of Geogebra andour Java sensor-native probeware interface code along with the OTrunk framework and sensor projects.

Here's a jnlp which exercises this new functionality with a Vernier GoLink temperature probe:


If you plugin a Vernier goLink with a temperature probe, and click the "Start Logging" button data will be collected.Right now however to actually see the graph you have to right-click with nothing selected and select the option "Show AllObjects" -- this is what it might look like:

The application is Java but the page above is also running a JavaScri-t context with this global JavaScript

  function ggbOnInit() {}
  function logger(value) {
    var d = value * 1;
    ggbApplet.debug("XXX"+d);

    var a = ggbApplet.getValue("a");
    var step = ggbApplet.getValue("step");
    ggbApplet.evalCommand("("+a+","+d+")");
     ggbApplet.setValue("a", a+step);
  }

Here's the script for the "Start Logging" button:

  ggbApplet.registerLoggerListener("logger");
  ggbApplet.setValue("a",0);

And the "Stop Logging" button:

  ggbApplet.unregisterLoggerListener("logger");

They are calling Java methods in ScriptManager.java:


Here's the commit integrating the CC code:
P51B33C7A 2.png
Reply all
Reply to author
Forward
0 new messages