User`s guide
2 Automa tion Interface
cc.rtdx.enable;
You could do this step before you confi gure the channels — the order does
not matter.
6 Reset the global time-out to 20s to provide a l ittle room for error. ticcs
applies a default timeout value of 10s. In some cases this may not be
enough.
cc.rtdx.get('timeout')
ans =
10
cc.rtdx.set('timeout', 20); % Reset timeout = 20 seconds
7 Check that the timeout property value is now 20s and that your object has
the correct configuration for the res t of the tutorial.
cc.rtdx
RTDX Object:
API version: 1.0
Default timeout: 20.00 secs
Open channels: 2
Running the Application
To this point you have been doing h ouse ke eping functions that are comm on to
any application you run on the processor. You load the processor, configure
the communications, and set up other properties you need.
In this tutorial task, you use a specific application to demonstrate a few of the
functions availab le in Embed ded IDE Link CC that let you experiment with
your application w hile you develop your prototype. To demonstrate the link
for RTDX
readmat, readmsg,andwritemsg functions, you write data to your
processor for processing, then read data from the processor after processing:
1 Restart the program you loade d on the processor. restart ensures the
program counter (PC) is at the beginning of the executable code on the
processor.
cc.restart
2-32