56 fprintf(stderr,
"simulinkSocket: Read too many double values.\n");
57 fprintf(stderr,
" Received nDblRea = %d, maximum is %d\n", nDblRea,
NDBLMAX);
58 fprintf(stderr,
" To fix, change NDBLMAX in lib/defines.h and recompile simulink interface.\n");
66 if ( (0 == *doClose) || (*sockfd < 0) ){
int exchangedoubleswithsocket(const int *sockfd, const int *flaWri, int *flaRea, const int *nDblWri, int *nDblRea, double *simTimWri, double dblValWri[], double *simTimRea, double dblValRea[])
Exchanges data with the socket.
int16_T closeBSDSocket(int16_T *sockfd, int16_T *doClose)
int16_T exchangeDoublesWithBSDSocket(int16_T *sockfd, int16_T *flaWri, int16_T *flaRea, int16_T *nDblWri, double *simTimWri, double dblValWri[], double *simTimRea, double dblValRea[])
int establishclientsocket(const char *const docname)
Establishes a connection to the socket.
fprintf([' ', 'Trying to send client error from MATLAB to the BCVTB.'])
end Get return values from pointers flaRea
int closeipc(int *sockfd)
Closes the inter process communication socket.
Methods for interfacing Simulink using BSD sockets.
int16_T establishBSDSocket(int16_T *flag)
#define NDBLMAX
Maximum number of double values that can be exchanged by Simulink.