Documentation

xPCGetTETLog

Copy TET log to array

Prototype

void xPCGetTETLog(int port, int first_sample,
int num_samples, int decimation,
double *TET_data);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

first_sample

Enter the index of the first sample to copy.

num_samples

Enter the number of samples that the function is to copy from the TET log.

decimation

Select whether to copy all the sample values or every Nth value.

TET_data

The log is stored in TET_data, whose allocation is the responsibility of the caller.

Description

The xPCGetTETLog function gets the task execution time (TET) log. It then copies the log into TET_data. Entering 1 for decimation copies all values. Entering N copies every Nth value. For first_sample, the sample indices range from 0 to (N-1), where N is the return value of xPCNumLogSamples. Use the xPCNumLogSamples function to get the maximum number of samples.

The real-time application must be stopped before you get the number.

Introduced before R2006a

Was this topic helpful?