DSPRelated.com
Forums

C MEX S-Function RTW writing data in a file

Started by IRINA May 28, 2008
Hello,

I am using for my project, a s-function builder block, in a simulink
model. I have to read data from a GPS connected to a dSPACE 1103
board (via rs232 port) and convert the values of latitude and
longitude in carthesien coordonates (x,y,z).

So, I in my s-function builder i inserted the C code, in output tab,
and my question is, when I build the model with real time workshop,
can I write the data in a file? Beacause I tried it and it doesn't
work.

My model, is build with real time workshop, and I use external mode
to download the ".sdf" resulting file on the dspace board. I can
observe the results in ControlDesk- a graphical interface of the
dSPACE board, in real time, but I can't write them in a file.

So, tell me, it is possible to do this 2 things in the same time or
not? If yes how can I do it?

Thank you,

Irina