Real-Time Workshop | ![]() ![]() |
Device Driver Blocks
The real-time program communicates with external hardware via a set of device drivers. These device drivers contain the necessary code for interfacing to specific I/O devices.
Real-Time Workshop includes device drivers for commercially available Keithley Metrabyte DAS-1600/1400 Series I/O boards. These device drivers are implemented as C MEX S-functions to interface with Simulink. This means you can add them to your model like any other block.
In addition, each of these S-function device drivers has a corresponding target file to inline the device driver in the model code. See Creating Device Drivers for information on implementing your own device drivers.
Since the device drivers are provided as source code, you can use these device drivers as a template to serve a a starting point for creating custom device drivers for other I/O boards.
![]() | Sample Rate Limits | Device Driver Block Library | ![]() |