Get Real-time data from sensor program in C and catch it in Real-time Windows Target using UDP protocol
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
hi all,
i have a sensor that is run with C program to collect the data, but i need to do processing in simulink (RTWT) to get real time data, as we know No Windows API functions are supported with RTWT,, so can i sent through UDP protocol in C then catch the data in RTWT also through UDP protocol and achieve real-time??
or any suggestion??
thanks
0 Commenti
Risposte (1)
Kaustubha Govind
il 16 Giu 2011
You might be able to use the Packet I/O or Stream I/O blocks from the Real-Time Windows Target library to achieve this. However, you can only communicate with supported hardware.
2 Commenti
Kaustubha Govind
il 17 Giu 2011
Essentially, what you'd like to do is use your own custom driver for the output blocks. Although this is possible (see http://www.mathworks.com/help/toolbox/rtwin/ug/bqxlll1.html for information), I have reason to believe that creating your own RTWT drivers is not easy.
Vedere anche
Categorie
Scopri di più su Target Computer Setup in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!