|
| IDataLoggerService2 (void)=default |
| Constructs an IDataLoggerService2 instance. More...
|
|
virtual void | ListSessionNames (ListSessionNamesResultDelegate resultDelegate)=0 |
| List all names of sessions inside the data logger component. More...
|
|
virtual ErrorCode | CreateSession (const RscString< 512 > &sessionName, boolean persistent=false)=0 |
| Tries to create a new session. More...
|
|
virtual ErrorCode | RemoveSession (const RscString< 512 > &sessionName)=0 |
| Tries to remove a session. More...
|
|
virtual ErrorCode | StartSession (const RscString< 512 > &sessionName)=0 |
| Tries to start a logging session. More...
|
|
virtual ErrorCode | StopSession (const RscString< 512 > &sessionName)=0 |
| Tries to stop a logging session. More...
|
|
virtual ErrorCode | ConfigureSession (const RscString< 512 > &sessionname, const std::vector< SessionProperty > &properties)=0 |
| (Re)configures a session More...
|
|
virtual ErrorCode | GetSessionConfiguration (const RscString< 512 > &sessionname, std::vector< SessionProperty > &properties, boolean &isPersistent)=0 |
| Tries to query the current configuration of a session More...
|
|
virtual ErrorCode | GetSessionState (const RscString< 512 > &sessionName, SessionState &state)=0 |
| Tries to query the state of a session. More...
|
|
virtual void | SetVariables (const RscString< 512 > &sessionName, SetVariablesVariableNamesDelegate variableNamesDelegate, SetVariablesResultDelegate resultDelegate)=0 |
| Tries to add a variable to a session. More...
|
|
virtual ErrorCode | GetLoggedVariables (const RscString< 512 > &sessionName, GetLoggedVariablesInfosDelegate infosDelegate)=0 |
| Queries all infos about logged variables of a session. More...
|
|
virtual ErrorCode | ReadVariablesData (const RscString< 512 > &sessionName, DateTime startTime, DateTime endTime, ReadVariablesDataVariableNamesDelegate variableNamesDelegate, ReadVariablesDataValuesDelegate valuesDelegate)=0 |
| Read the data from the given variable from the session with the session name. More...
|
|
virtual ErrorCode | GetRotatedFileNames (const RscString< 512 > &sessionname, GetRotatedFileNamesFilenamesDelegate filenamesDelegate)=0 |
| Returns names of all files that have been written by a session More...
|
|
virtual void | GetSessionNames (const RscString< 512 > &variablename, GetSessionNamesResultDelegate resultDelegate)=0 |
| Tries to retrieve names of sessions which log assigned variables More...
|
|
virtual ErrorCode | SetTriggerCondition (const RscString< 512 > &sessionName, const RscString< 512 > &taskName, uint16 preCycleCount, uint16 postCycleCount, SetTriggerConditionTriggerConditionDelegate triggerConditionDelegate)=0 |
| Sets a trigger condition More...
|
|
| IRscService (void)=default |
| Constructs an IRscService instance. More...
|
|
virtual | ~IRscService (void)=default |
| Destructs this instance and frees all resouces. More...
|
|
The DataLogger provides an interface to log and store variables during firmware runtime.
virtual ErrorCode Arp::Services::DataLogger::Services::IDataLoggerService2::ReadVariablesData |
( |
const RscString< 512 > & |
sessionName, |
|
|
DateTime |
startTime, |
|
|
DateTime |
endTime, |
|
|
ReadVariablesDataVariableNamesDelegate |
variableNamesDelegate, |
|
|
ReadVariablesDataValuesDelegate |
valuesDelegate |
|
) |
| |
|
pure virtual |
Read the data from the given variable from the session with the session name.
This service function returns the plain data values from the passed variable names including timestamps and data series consistent flags, which is called a record. In a record the values are in a static order and doesn't contain any type information. Each record starts with the timestamp followed by the values from the given variable by names and the consistent flag. The record ends with a record type describing the cycle the record belongs to.
Example:
Read variables from task A: a1, a2
from task B: b1
Results in:
object[]
timestamp task A, a1, a2, b1, consistent flag, record type
timestamp task B, a1, a2, b1, consistent flag, record type
The number of records depends on the given start and end time. Each values will be returned between the start and end time.
If the start time is zero, all available records until the end time will be returned.
If the end time is zero, all available records from the start time until the last available record is reached will be returned.
If the start and end time is zero, each available record will be returned.
If the start time is greater than the end time, the resulted values are returned in descending order.
- Parameters
-
sessionName | Name of session where variable should be read from. |
startTime | Start time to be read data. |
endTime | End time to be read data. |
variableNames | Name of variables to be read data. |
values | An enumerator which stores the read values. |
- Returns
- Returns Arp.Services.DataLogger.Services.ErrorCode.None on success.