Yt_RW_DataLoggingStruct
Yt_RW_DataLoggingStruct: STRUCT
| Element | Data Type | Description | Usage |
|---|---|---|---|
| Version |
DINT | <Set internally> The version of this structure [yyyymmdd] | MyData.Version |
| ChannelsUsed |
WORD | <Set by user> Denotes the channels that are used to record data | MyData.ChannelsUsed |
| MaxRecordingTime | DINT | <Optional by user> The maximum amount of time in seconds to spend recording. Default is no limit | MyData.MaxRecordingTime |
| TimeLimitReached |
BOOL | <Set internally> Denotes if the MaxRecordingTime has been reached | MyData.TimeLimitReached |
| SampleRate |
REAL | <Set internally> The sample rate [ms] | MyData.SampleRate |
| Status | Yt_RW_StatusFlagsSet |
<Set internally> Status of recording and writing data |
MyData.Status |
| Size | INT | <Set internally> This is initialized to the size of LoggedValuesArray |
MyData.Size |
| Data | Yt_RW_LoggedValuesSet |
<Set internally> Data being recorded |
MyData.Data |
Yt_RW_StatusFlagsSet: ARRAY
| Array Name | Data Type | Range | Description | Usage |
|---|---|---|---|---|
| Yt_RW_StatusFlagsSet |
Yt_RW_StatusFlagsStruct |
0..1 | Status flags for each set of LoggedValues | MyData.Status[0] |
Yt_RW_StatusFlagsStruct: STRUCT
| Element | Data Type | Description | Usage |
|---|---|---|---|
| Recording |
BOOL | TRUE if data is being recorded | MyData.Status[0].Recording |
| Writing |
BOOL | TRUE if data is being written to a file | MyData.Status[0].Writing |
| StorePointer |
INT | The array index where the last data is stored 3 data | MyData.Status[0].StorePointer |
| WritePointer |
INT | The array index to be written to or read from | MyData.Status[0].WritePointer |
| Overwritten | BOOL | Flag which indicates if the buffer has circulated over the beginning of the data to prevent reuse |
MyData.Status[0].Overwritten |
Yt_RW_LoggedValuesSet: ARRAY
| Array Name | Data Type | Range | Description | Usage |
|---|---|---|---|---|
| Yt_RW_LoggedValuesSet |
Yt_RW_LoggedValuesArray |
0..1 | Data that is recorded | MyData.Data[0] |
Yt_RW_LoggedValuesArray: ARRAY
| Array Name | Data Type | Range | Description | Usage |
|---|---|---|---|---|
| Yt_RW_LoggedValuesArray |
Yt_RW_LoggedValuestruct |
0..4999 | Store up to 5,000 lines | MyData.Data[0][0] |
Yt_RW_LoggedValuesStruct: STRUCT
| Element | Data Type | Description | Usage |
|---|---|---|---|
| SampleNum |
DINT | The sample number of this data set | MyData.Data[0][0].SampleNum |
| Channel |
Yt_LREALARRAY8 |
Value of the first input | MyData.Data[0][0].Channel[0] |