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.

Author:
Roger Glassey - revised 2/12/10 using ArrayList

Constructor Summary
Datalogger()
           
 
Method Summary
 void transmit()
          transmit the stored values to the PC via USB or bluetooth;
Displays menu of choices for transmission mode.
 void writeLog(float v)
          write a float value to the log
 void writeLog(float v0, float v1)
          write 2 float values to the log
 void writeLog(float v0, float v1, float v2)
          write 3 float values to the log
 void writeLog(float v0, float v1, float v2, float v3)
          write 4 float values to the log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Datalogger

public Datalogger()
Method Detail

writeLog

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

Parameters:
v -

writeLog

public void writeLog(float v0,
                     float v1)
write 2 float values to the log

Parameters:
v0 -
v1 -

writeLog

public void writeLog(float v0,
                     float v1,
                     float v2)
write 3 float values to the log

Parameters:
v0 -
v1 -
v2 -

writeLog

public void writeLog(float v0,
                     float v1,
                     float v2,
                     float v3)
write 4 float values to the log

Parameters:
v0 -
v1 -
v2 -
v3 -

transmit

public void transmit()
transmit the stored values to the PC via USB or bluetooth;
Displays menu of choices for transmission mode. Scroll to select, press ENTER
Then displays "wait for BT" or "wait for USB". In DataViewer, click on "StartDownload" When finished, displays the number values sent, and asks "Resend?". Press ESC to exit the program, any other key to resend.
Then start the download in DataViewer.