User`s guide
iswritable
Like the isreadable, read,andwrite functions, iswritable checks
for valid address values. Illegal address values would be any address
space larger than the available space for the processor – 2
32
for the
C6xxx processor family and 2
16
for the C5xxx series. When the function
identifies an illegal address, it returns an error m essage stating that
theaddressvaluesareoutofrange.
iswritable(rx,'channel') returns a Boolean value signifying
whether the RTDX channel specified by
channel and rx,isconfigured
for write operations.
Examples When you write scripts to run models in MATLA B software and CCS
IDE, the
iswritable function is very useful. Use iswritable to check
that the channel to which you are writing to is indeed configured
properly.
cc = ticcs;
rx = cc.rtdx;
% Define read and write channels to the processor linked by cc.
open(rx,'ichannel','r');
open(rx,'ochannel','w');
enable(rx,'ochannel');
enable(rx,'ichannel');
iswritable(rx,'ochannel')
ans=
1
iswritable(rx,'ichannel')
ans=
0
Nowthatyourscriptknowsthatitcanwriteto'ichanne'l, it proceeds
towritemessagesasrequired.
See Also hex2dec, isreadable, read
7-80