SECI  1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
Seci.Helpers.DatabaseWriter Class Reference

This class does the actual logging to the database More...

Collaboration diagram for Seci.Helpers.DatabaseWriter:
Collaboration graph

Public Member Functions

void CloseDatabase ()
 Close the database connection More...
 
 DatabaseWriter (Queue< LogInfo > logqueue, Queue< CurrValInfo > currvalsqueue)
 The constructor More...
 
void RequestThreadExit ()
 Request that the thread should exit More...
 
void ThreadRun ()
 This is the method that is run on a separate thread More...
 
void WriteBlockDetails (String name, String setpoint, String vi, String readcontrol, String setcontrol, String buttoncontrol, int options, String nexusname, Double lowlimit, Double highlimit, String units, String currentvalue)
 This method is used to write the details about the block to the database. More...
 
void WriteConfigName (String name)
 Write the configuration name to the database More...
 

Static Private Member Functions

static Single correctLimit (Single value)
 

Private Attributes

List< String > _currValsNames = new List<string>()
 
Queue< CurrValInfo_currValsQueue
 
List< String > _currValsSetpoints = new List<string>()
 
List< String > _currValsValues = new List<string>()
 
selogcomLib.selog _dbCom = new selogcomLib.selog()
 
Boolean _exitThread
 
DateTime _firstErrorTime
 
Boolean _inError = false
 
List< String > _logNames = new List<string>()
 
Queue< LogInfo_logQueue
 
List< String > _logTimes = new List<string>()
 
List< String > _logValues = new List<string>()
 

Detailed Description

This class does the actual logging to the database

Definition at line 184 of file DatabaseLogger.cs.

Constructor & Destructor Documentation

Seci.Helpers.DatabaseWriter.DatabaseWriter ( Queue< LogInfo logqueue,
Queue< CurrValInfo currvalsqueue 
)
inline

The constructor

Parameters
logqueueThe log queue
currvalsqueueThe current values queue

Definition at line 206 of file DatabaseLogger.cs.

Member Function Documentation

void Seci.Helpers.DatabaseWriter.CloseDatabase ( )
inline

Close the database connection

Definition at line 386 of file DatabaseLogger.cs.

static Single Seci.Helpers.DatabaseWriter.correctLimit ( Single  value)
inlinestaticprivate

Definition at line 370 of file DatabaseLogger.cs.

void Seci.Helpers.DatabaseWriter.RequestThreadExit ( )
inline

Request that the thread should exit

Definition at line 215 of file DatabaseLogger.cs.

void Seci.Helpers.DatabaseWriter.ThreadRun ( )
inline

This is the method that is run on a separate thread

Definition at line 223 of file DatabaseLogger.cs.

References Seci.Helpers.LogInfo.Time, and Seci.Helpers.LogInfo.Value.

void Seci.Helpers.DatabaseWriter.WriteBlockDetails ( String  name,
String  setpoint,
String  vi,
String  readcontrol,
String  setcontrol,
String  buttoncontrol,
int  options,
String  nexusname,
Double  lowlimit,
Double  highlimit,
String  units,
String  currentvalue 
)
inline

This method is used to write the details about the block to the database.

Parameters
nameThe block name
setpointThe current setpoint
viThe VI
readcontrolThe VI control to read
setcontrolThe VI control to set
buttoncontrolThe VI button to press to set the setpoint
optionsIs it enabled, under run-control etc
nexusnameThe NeXus name for the block
lowlimitThe lower limit for run-control
highlimitThe upper limit for run-control
unitsThe scientific units
currentvalueThe current value

Definition at line 350 of file DatabaseLogger.cs.

void Seci.Helpers.DatabaseWriter.WriteConfigName ( String  name)
inline

Write the configuration name to the database

Parameters
nameThe name of the configuration

Definition at line 319 of file DatabaseLogger.cs.

Member Data Documentation

List<String> Seci.Helpers.DatabaseWriter._currValsNames = new List<string>()
private

Definition at line 197 of file DatabaseLogger.cs.

Queue<CurrValInfo> Seci.Helpers.DatabaseWriter._currValsQueue
private

Definition at line 196 of file DatabaseLogger.cs.

List<String> Seci.Helpers.DatabaseWriter._currValsSetpoints = new List<string>()
private

Definition at line 199 of file DatabaseLogger.cs.

List<String> Seci.Helpers.DatabaseWriter._currValsValues = new List<string>()
private

Definition at line 198 of file DatabaseLogger.cs.

selogcomLib.selog Seci.Helpers.DatabaseWriter._dbCom = new selogcomLib.selog()
private

Definition at line 188 of file DatabaseLogger.cs.

Boolean Seci.Helpers.DatabaseWriter._exitThread
private

Definition at line 189 of file DatabaseLogger.cs.

DateTime Seci.Helpers.DatabaseWriter._firstErrorTime
private

Definition at line 187 of file DatabaseLogger.cs.

Boolean Seci.Helpers.DatabaseWriter._inError = false
private

Definition at line 186 of file DatabaseLogger.cs.

List<String> Seci.Helpers.DatabaseWriter._logNames = new List<string>()
private

Definition at line 193 of file DatabaseLogger.cs.

Queue<LogInfo> Seci.Helpers.DatabaseWriter._logQueue
private

Definition at line 191 of file DatabaseLogger.cs.

List<String> Seci.Helpers.DatabaseWriter._logTimes = new List<string>()
private

Definition at line 192 of file DatabaseLogger.cs.

List<String> Seci.Helpers.DatabaseWriter._logValues = new List<string>()
private

Definition at line 194 of file DatabaseLogger.cs.


The documentation for this class was generated from the following file: