Time periods from signals
If a function is used in CANape as a virtual file channel for the purpose of offline analysis, it is possible to choose a sampling rate for processing this function. Especially if you have input parameters for this function which were measured with different sample rates this becomes very interesting and helpful.
The time period behavior is shown in this little example use case: Two different signals are considered to be input parameters for a function. The function only returns the value of the second signal:
The first signal (Signal1) contains 16 values and the second signal (Signal2) contains 2 values. Signal1 was measured with a sample rate of 1 second and Signal2 was measured with a sample rate of 10 seconds. The whole measurement is 15 seconds long. Both signals are input parameters for a function which is used for the offline analysis in CANape. For the sample rate to process this function the time period of Signal1 is chosen which would be 1 second in this case.
The result is as follows:
At the time stamp of 9 seconds the return value of Singal2 still is the value of the first measurement point which is the value which was recorded at second 0. Then after sampling the function for the 11th time at time stamp 10 seconds the return value of Signal2 changes and it contains the value which was recorded at second 10.