Skip to contentSkip to conversation

Simulink and RTDM device driver

Xenomai-help egemen kaleli 2 participants 2 messages Mar 20, 2010

lore
Share & tools
lore
#0 lore raw

Hello;

I developed a real-time driver with rtdm for a PCI I/O board.My next aim is to incorporate this driver into Simulink S-functions.For example, I will create a DAC,an ADC,a TIMER Simulink device driver block and these driver blocks will use my rtdm driver. How can I achieve this?Thanks for help in advance.
Egemen KALELİ,Gebze Institute of Technology
TURKEY

#1 lore raw

Hi,

just add the calls to your driver in the corresponding mdl* callbacks in your s-function. Take care of the calling context rt/nrt. Depending on your target (e.g. simulation, generic realtime, embedded) it might be better to provide a tlc file instead of a s-function mex-file.

Thomas

Von: [email protected] [mailto:[email protected]] Im Auftrag von egemen kaleli
Gesendet: Samstag, 20. März 2010 16:25
An: [email protected]
Betreff: [Xenomai-help] Simulink and RTDM device driver

Hello;

I developed a real-time driver with rtdm for a PCI I/O board.My next aim is to incorporate this driver into Simulink S-functions.For example, I will create a DAC,an ADC,a TIMER Simulink device driver block and these driver blocks will use my rtdm driver. How can I achieve this?Thanks for help in advance.

Egemen KALELİ,Gebze Institute of Technology

TURKEY

--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592 USt-Ident-Nr. DE 250200933