Documentation

xPCFSScSetFilename

Specify name for file to contain signal data

Prototype

void xPCFSScSetFilename(int port, int scNum, 
const char *filename);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

scNum

Enter the scope number.

filename

Enter the name of a file for receiving the signal data.

Description

The xPCFSScSetFilename function sets the name of the file to which the scope saves the signal data. The Simulink® Real-Time™ software creates this file in the target computer file system. You can only call this function when the scope is stopped.

A fully qualified file name can have a maximum of 260 characters: The file part can have at most 12 characters: eight for the file name, one for the period, and at most three for the file extension. A file name longer than eight characters is truncated to six characters followed by '~1'.

Introduced before R2006a

Was this topic helpful?