bre20::Logger Class Reference

The main form of the DataLogger. See Datalogger Usage and Extension. More...

Inheritance diagram for bre20::Logger:

bre20::FormWithRules List of all members.

Public Member Functions

 Logger (bre20::child *rom, AutoEdit *autotune, ArrayList *rules)
 ~Logger ()
bool connectToPort ()
LoggerDatagetLoggerData ()
DatalogComgetSerialPort ()
LoggerGridgetLoggerGrid ()
void setAfr (float afr)
void setMapIndex (int index)
 This must be set for auto tune to work.
void setCurrentColumn (int x)
 This must be set for auto tune to work.
void setCurrentFuelRow (int fy)
 This must be set for auto tune to work.
void setCurrentIgnitionRow (int iy)
 This must be set for auto tune to work.
void setCellWeight (int col, int row, float value)
void setCurrentSpeed (int speed)
 Sets the current speed for the logger's AutoStart feature.
void setCurrentRpm (int rpm)
 Sets the current rpm for the logger's AutoStart feature.
void setCurrentTps (int tps)
 Sets the current tps for the logger's AutoStart feature.
int addO2Type (AfrRule *newo2)
int getO2Type ()
bool isSae ()
void addGauge (Gauge::Gauge *gauge)
 adds a gauge to the digital dash pane. You must create the gauge first.
Gauge::Gauge * addGauge (String *title, String *units, int size, int x, int y, int minval, int maxval, int divisions, int numdecimals)
 Creates and adds a Gauge to the digital dash pane.
void setParity (int p)
void setBaud (int baud)
void setSendMode (int smode)
int getSendMode ()

Public Attributes

__event EventHandler * OnDataLoggerStart
__event EventHandler * OnDataLoggerRun
__event EventHandler * OnDataLoggerStop
__event EventHandler * OnDatalogOptionsCreated
 sender is the newly created DatalogOptions dialog
__event EventHandler * OnPortSetupCreated
 sender is the newly created PortSetupDialog object

Static Public Attributes

static const int SENDMODE_STRING = 0
 send a whole string for each send to the ecu
static const int SENDMODE_BYTE = 1
 bounce bytes back an forth.

Protected Member Functions

void setupTraceGrids ()
int readInterval (System::IO::StreamReader *sr)
virtual void runDL ()
virtual void runReplay ()
virtual int getReplayHashInt (String *key)
virtual float getReplayHashFloat (String *key)
virtual String * getReplayHashStr (String *key)
void timer_Tick (Object *myObject, EventArgs *myEventArgs)
void Dispose (Boolean disposing)
void clickStart ()
void setMapTrace (TabControl *tc, String *type)

Protected Attributes

bre20::LogGridPagetracegrids []
TabPage * dash
System::Windows::Forms::Timer * timer1
System::Windows::Forms::TabControl * tabControl1
LoggerGridloggrid
AutoEditautoEdit
bre20::childrom
DatalogComcomport
LoggerDatalogdata
LoggerKeymillisKey
String * extrao2 []
int parity
bool replay
 true if replaying, false if logging
bool logging
 true if actually logging
bool maptrace
 true if map trace is enabled
bool romtrace
bool interptrace
int sendmode
String * replayLabels []
String * replayValues []
Hashtable * replayHash
int tminterval
int errorcount
int errorcountMax
int maptracetype
int o2type
int units
bool lambdamode
int mixtureunit
float compMult
float compAdd
unsigned char tester
int port
int baudrate
String * fname
String * title
bre20::DatalogFileWriterlogwriter
System::IO::StreamReader * replayin

Detailed Description

The main form of the DataLogger. See Datalogger Usage and Extension.


Constructor & Destructor Documentation

bre20::Logger::Logger bre20::child rom,
AutoEdit autotune,
ArrayList *  rules
 

bre20::Logger::~Logger  ) 
 


Member Function Documentation

Gauge::Gauge * bre20::Logger::addGauge String *  title,
String *  units,
int  size,
int  x,
int  y,
int  minval,
int  maxval,
int  divisions,
int  numdecimals
 

Creates and adds a Gauge to the digital dash pane.

void bre20::Logger::addGauge Gauge::Gauge *  gauge  ) 
 

adds a gauge to the digital dash pane. You must create the gauge first.

int bre20::Logger::addO2Type AfrRule newo2  ) 
 

Adds a new o2 type to the o2 type options. Match this number with the value returned from getO2Type() to find out if your new o2 type is being used.

Returns:
the index in the o2 type combobox of the new o2 type. -1 in error.

void bre20::Logger::clickStart  )  [protected]
 

bool bre20::Logger::connectToPort  ) 
 

void bre20::Logger::Dispose Boolean  disposing  )  [protected]
 

LoggerData* bre20::Logger::getLoggerData  ) 
 

Returns:
the LoggerData object which is used to pass the command list and data results between the logger and Rules

LoggerGrid* bre20::Logger::getLoggerGrid  ) 
 

Returns:
the LoggerGrid control. Its the control on the right side of the logger

int bre20::Logger::getO2Type  ) 
 

Returns:
the combobox index of the o2 type being currently used.

float bre20::Logger::getReplayHashFloat String *  key  )  [protected, virtual]
 

int bre20::Logger::getReplayHashInt String *  key  )  [protected, virtual]
 

String * bre20::Logger::getReplayHashStr String *  key  )  [protected, virtual]
 

int bre20::Logger::getSendMode  ) 
 

DatalogCom* bre20::Logger::getSerialPort  ) 
 

Returns:
the DatalogCom object the logger is using

bool bre20::Logger::isSae  ) 
 

int bre20::Logger::readInterval System::IO::StreamReader *  sr  )  [protected]
 

void bre20::Logger::runDL  )  [protected, virtual]
 

void bre20::Logger::runReplay  )  [protected, virtual]
 

void bre20::Logger::setAfr float  afr  ) 
 

Use this to set the AFR if necessary. Do NOT handle lambda, as conversion from afr to lambda will be done by BRE if necessary. This must be set for auto tune to work.

This also updates the afr LoggerKey.

void bre20::Logger::setBaud int  baud  ) 
 

void bre20::Logger::setCellWeight int  col,
int  row,
float  value
 

index [0,0] is the current cell, index [1,0] is the east cell, [0,1] is the south cell, etc. The weights should always add up to 1.

void bre20::Logger::setCurrentColumn int  x  ) 
 

This must be set for auto tune to work.

void bre20::Logger::setCurrentFuelRow int  fy  ) 
 

This must be set for auto tune to work.

void bre20::Logger::setCurrentIgnitionRow int  iy  ) 
 

This must be set for auto tune to work.

void bre20::Logger::setCurrentRpm int  rpm  ) 
 

Sets the current rpm for the logger's AutoStart feature.

void bre20::Logger::setCurrentSpeed int  speed  ) 
 

Sets the current speed for the logger's AutoStart feature.

void bre20::Logger::setCurrentTps int  tps  ) 
 

Sets the current tps for the logger's AutoStart feature.

void bre20::Logger::setMapIndex int  index  ) 
 

This must be set for auto tune to work.

void bre20::Logger::setMapTrace TabControl *  tc,
String *  type
[protected]
 

void bre20::Logger::setParity int  p  ) 
 

void bre20::Logger::setSendMode int  smode  ) 
 

void bre20::Logger::setupTraceGrids  )  [protected]
 

void bre20::Logger::timer_Tick Object *  myObject,
EventArgs *  myEventArgs
[protected]
 


Member Data Documentation

AutoEdit* bre20::Logger::autoEdit [protected]
 

int bre20::Logger::baudrate [protected]
 

float bre20::Logger::compAdd [protected]
 

float bre20::Logger::compMult [protected]
 

DatalogCom* bre20::Logger::comport [protected]
 

TabPage* bre20::Logger::dash [protected]
 

int bre20::Logger::errorcount [protected]
 

int bre20::Logger::errorcountMax [protected]
 

String* bre20::Logger::extrao2[] [protected]
 

String* bre20::Logger::fname [protected]
 

bool bre20::Logger::interptrace [protected]
 

bool bre20::Logger::lambdamode [protected]
 

LoggerData* bre20::Logger::logdata [protected]
 

bool bre20::Logger::logging [protected]
 

true if actually logging

LoggerGrid* bre20::Logger::loggrid [protected]
 

bre20::DatalogFileWriter* bre20::Logger::logwriter [protected]
 

bool bre20::Logger::maptrace [protected]
 

true if map trace is enabled

int bre20::Logger::maptracetype [protected]
 

LoggerKey* bre20::Logger::millisKey [protected]
 

int bre20::Logger::mixtureunit [protected]
 

int bre20::Logger::o2type [protected]
 

__event EventHandler* bre20::Logger::OnDataLoggerRun
 

__event EventHandler* bre20::Logger::OnDataLoggerStart
 

__event EventHandler* bre20::Logger::OnDataLoggerStop
 

__event EventHandler* bre20::Logger::OnDatalogOptionsCreated
 

sender is the newly created DatalogOptions dialog

__event EventHandler* bre20::Logger::OnPortSetupCreated
 

sender is the newly created PortSetupDialog object

int bre20::Logger::parity [protected]
 

int bre20::Logger::port [protected]
 

bool bre20::Logger::replay [protected]
 

true if replaying, false if logging

Hashtable* bre20::Logger::replayHash [protected]
 

System::IO::StreamReader* bre20::Logger::replayin [protected]
 

String* bre20::Logger::replayLabels[] [protected]
 

String* bre20::Logger::replayValues[] [protected]
 

bre20::child* bre20::Logger::rom [protected]
 

bool bre20::Logger::romtrace [protected]
 

int bre20::Logger::sendmode [protected]
 

const int bre20::Logger::SENDMODE_BYTE = 1 [static]
 

bounce bytes back an forth.

const int bre20::Logger::SENDMODE_STRING = 0 [static]
 

send a whole string for each send to the ecu

System::Windows::Forms::TabControl* bre20::Logger::tabControl1 [protected]
 

unsigned char bre20::Logger::tester [protected]
 

System::Windows::Forms::Timer* bre20::Logger::timer1 [protected]
 

String* bre20::Logger::title [protected]
 

int bre20::Logger::tminterval [protected]
 

bre20::LogGridPage* bre20::Logger::tracegrids[] [protected]
 

int bre20::Logger::units [protected]
 




BRE Documentation Home