C API Error Messages

The header file matlabroot\toolbox\rtw\targets\xpc\api\xpcapiconst.h defines these error messages.

Message

Description

ECOMPORTACCFAIL

COM port access failed

ECOMPORTISOPEN

COM port is already opened

ECOMPORTREAD

ReadFile failed while reading from COM port

ECOMPORTWRITE

WriteFile failed while writing to COM port

ECOMTIMEOUT

timeout while receiving: check serial communication

EFILEOPEN

Error opening file

EFILEREAD

Error reading file

EFILERENAME

Error renaming file

EFILEWRITE

Error writing file

EINTERNAL

Internal Error

EINVADDR

Invalid IP Address

EINVARGUMENT

Invalid Argument

EINVALIDMODEL

Model name does not match saved value

EINVBAUDRATE

Invalid value for baudrate

EINVCOMMTYP

Invalid communication type

EINVCOMPORT

COM port can only be 0 or 1 (COM1 or COM2)

EINVDECIMATION

Decimation must be positive

EINVFILENAME

Invalid file name

EINVINSTANDALONE

Command not valid for StandAlone

EINVLGDATA

Invalid lgdata structure

EINVLGINCR

Invalid increment for value equidistant logging

EINVLGMODE

Invalid Logging mode

EINVLOGID

Invalid log identifier

EINVNUMPARAMS

Invalid number of parameters

EINVNUMSIGNALS

Invalid number of signals

EINVPARIDX

Invalid parameter index

EINVPORT

Invalid Port Number

EINVSCIDX

Invalid Scope Index

EINVSCTYPE

Invalid Scope type

EINVSIGIDX

Invalid Signal index

EINVTRIGMODE

Invalid trigger mode

EINVTRIGSLOPE

Invalid Trigger Slope Value

EINVTRSCIDX

Invalid Trigger Scope index

EINVNUMSAMP

Number of samples must be nonnegative

EINVSTARTVAL

Invalid value for "start"

EINVTFIN

Invalid value for TFinal

EINVTS

Invalid value for Ts (must be between 8e-6 and 10)

EINVWSVER

Invalid Winsock version (1.1 needed)

EINVXPCVERSION

Target has an invalid version of Simulink Real-Time

ELOADAPPFIRST

Load the application first

ELOGGINGDISABLED

Logging is disabled

EMALFORMED

Malformed message

EMEMALLOC

Memory allocation error

ENODATALOGGED

No data has been logged

ENOERR

No error

ENOFREEPORT

No free Port in C API

ENOMORECHANNELS

No more channels in scope

ENOSPACE

Space not allocated

EOUTPUTLOGDISABLED

Output Logging is disabled

EPARNOTFOUND

Parameter not found

EPARSIZMISMATCH

Parameter Size mismatch

EPINGCONNECT

Could not connect to Ping socket

EPINGPORTOPEN

Error opening Ping port

EPINGSOCKET

Ping socket error

EPORTCLOSED

Port is not open

ERUNSIMFIRST

Run simulation first

ESCFINVALIDFNAME

Invalid filename tag used for dynamic file name

ESCFISNOTAUTO

Autorestart must be enabled for dynamic file names

ESCFNUMISNOTMULT

MaxWriteFileSize must be a multiple of the writesize

ESCTYPENOTTGT

Scope Type is not "Target"

ESIGLABELNOTFOUND

Signal label not found

ESIGLABELNOTUNIQUE

Ambiguous signal label (signal labels are not unique)

ESIGNOTFOUND

Signal not found

ESOCKOPEN

Socket Open Error

ESTARTSIMFIRST

Start simulation first

ESTATELOGDISABLED

State Logging is disabled

ESTOPSCFIRST

Stop scope first

ESTOPSIMFIRST

Stop simulation first

ETCPCONNECT

TCP/IP Connect Error

ETCPREAD

TCP/IP Read Error

ETCPTIMEOUT

TCP/IP timeout while receiving data

ETCPWRITE

TCP/IP Write error

ETETLOGDISABLED

TET Logging is disabled

ETGTMEMALLOC

Target memory allocation failed

ETIMELOGDISABLED

Time Logging is disabled

ETOOMANYSAMPLES

Too Many Samples requested

ETOOMANYSCOPES

Too many scopes are present

ETOOMANYSIGNALS

Too many signals in Scope

EUNLOADAPPFIRST

Unload the application first

EUSEDYNSCOPE

Use DYNAMIC_SCOPE flag at compile time

EWRITEFILE

LoadDLM: WriteFile Error

EWSINIT

WINSOCK: Initialization Error

EWSNOTREADY

Winsock not ready