|
"Sean " <sap86@email.arizona.edu> wrote in message
news:hehcr7$i87$1@fred.mathworks.com...
> I'm trying to interface with a PCTx connector to control an aerial remote
> controller in real time. I've created a block for simulink using legacy
> code. the System builds, its just not in real time. I'm doing this all
> from a windows computer.
>
> And i'm not quite sure what you mean by: Which RTW target are you using?
>
> Thank you for your patiance,
> Sean
>
You mean you are running a Simulink model interpretatively on a Windows
platform, not C code generated from Simulink? Anything running on Windows
will not be in real-time because Windows is not a real-time operating
system. For real-time performance, you need to generate C code with
Real-Time Workshop from your Simulink model and run the generated C code on
a real-time platform, hence my comment and question:
- Generally speaking, USB is not supported on real-time platforms
- You can generate C code from Simulink with Real-Time Workshop for
different (real-time) targets. The fact that you didn't understand my
question suggest that you are not doing that, otherwise, you'd know which
target you are generating C code for. You might want to have a look at the
Real-Time Workshop documentation.
Arnaud
|