User Documentation

Table Of Contents
Data recorder
System manual
2696790000/02/04.2020
85
Max. buffer capacity Max. number of variables
2,048 256
Example
Profiles with between 32,769 and 65,536 samples can register a max. of 8
variables for recording.
Profile with SingleShot buffer type
Max. buffer capacity Max. number of variables
1,048,576 254
1,042,453 256
Profiles with a maximum capacity of 1,048,576 can register a max. of 254
variables for recording. Conversely, the maximum of 256 variables can only
be registered to profiles with a maximum capacity of 1,042,453. The maxi-
mum refers to 4 GB – for Linux with, for example, 1 GB of user address
space, the information must be divided by four and, depending on the design
of the memory, divided once again.
14.7 Appendix: C interface
The following section contains examples for the use of the DataRecApi pro-
gramming interface for C applications.
All examples use the following configuration:
[Xcrt]
traceWord = -1
[Xcrt.Resource:0]
name = "resource7"
[Xcrt.Resource:0.Task:0]
name = "Task_1s"
interval = 1000000
priority = 5
[Xcrt.Module:0]
codeFile = "libTestDataRecApp"
moduleInitFunc="moduleInit"
moduleStartFunc="moduleStart"
moduleStopFunc="moduleStop"
moduleExitFunc="moduleExit"
[Xcrt.Module:0.TaskConnection:0]
context = "resource7.Task_1s"
prio = 1
hookClientFunc = "moduleCallback"
In addition, all examples share the same header:
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "TestDataRecApp.h"
#include "MemApi.h"
#include "LogApi.h"
#include "DataRecApi.h"
/