lejos.util
Class Datalogger

java.lang.Object
  extended by lejos.util.Datalogger

public class Datalogger
extends Object

Datalogger class; stores float values then then transmits via bluetooth or usb
works with DataViewer in pctools. A maximum of 2000 data values can be stored.


Constructor Summary
Datalogger()
           
 
Method Summary
 void reset()
          Clears the log; next write is at the beginning;
 void transmit(boolean useUSB)
          transmit the stored values to the PC via USB or bluetooth;
Displays "waiting" , so then start the DataViewer.
 void writeLog(float v)
          write a float value to the log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Constructor Detail

Datalogger

public Datalogger()
Method Detail

writeLog

public void writeLog(float v)
write a float value to the log

Parameters:
v -

reset

public void reset()
Clears the log; next write is at the beginning;


transmit

public void transmit(boolean useUSB)
transmit the stored values to the PC via USB or bluetooth;
Displays "waiting" , so then start the DataViewer. When finished, displays the number values sent, and asks "Resend?". Press ENTER for yes, ESC to exit the program.

Parameters:
useUSB - if false, uses Bluetooth