Real-Time Windows Target | ![]() ![]() |
Nonsupported C Functions
If you create your own custom I/O driver blocks, you should first check for C functions that are supported by the Real-Time Windows Target.
Functions that use the Windows operating system are not supported with the Real-Time Windows Target. This is because the kernel intercepts the system clock and first runs the real-time application. If there is time left before the next sample time, the kernel may allow a Windows application or function to run.
The following list includes many, but not all of the nonsupported functions:
fopen freopen, fclose, fread, fwrite, fputs, fputc, fgets, fgetc, gets, getc, getchar, puts, putc, putchar, fflush, setbuf, setvbuf
printf, fprintf, sprintf, vfprintf, vprintf, vsprintf, fscanf, scanf, sscanf
spawn, exit, abort, atexit
signal, longimp, raise
clock, time, difftime, asctime, ctime, difftime, gmtime, localtime, mktime, strftime
![]() | Incompatibility with Win32 API Calls | Supported C Functions | ![]() |