User`s guide

2 Automa tion Interface
Note To be able to open and enable channels over a link to RTDX, the
program loaded on your processor m ust include functions or code that dene
the channels.
Your C source code might look somethinglikethistocreatetwochannels,
onetowriteandonetoread.
rtdx_CreateInputChannel(ichan); % processor reads from this.
rtdx_CreateOutputChannel(ochan); % processor writes to this.
These are the entries we use in int16.c (the source code that generates
rtdxtutorial_6xevm.out) to create the read and write channels.
If you are working with a model in Simulink software and usin g code
generation,usetheToRtdxandFromRtdxblocksinyourmodeltoaddthe
RTDX communications channels to your model and to the executable code
on your processor.
Onemorenoteaboutthistutorial. Throughoutthecodeweuseboththedot
notation (direct property referencing) to access functions and link properties
and the function form.
For example, use the following command to open and congure
ichan for
write m ode.
cc.rtdx.open('ichan','w');
You could use a n equivalent syntax, the function form, that does not use
direct property referencing.
open(cc.rtdx,'ichan','w');
Or, use
open(rx,'ichan','w');
if you created an alias rx to the RTDX p ortion of cc, as shown by the following
command:
2-26