User`s guide
isenabled
Purpose Determine w hether RTDX link is enabled for communications
Note Support for isenabled on C5000 and C6000 processors will be
removed in a future version.
Syntax isenabled(rx,'channel')
isenabled(rx)
Description isenabled(rx,'channel') returns ans=1 when the RTDX channel
specified by string ’
channel’ is enabled for read or write communications.
When
'channel' has not been enabled, isenabled returns ans=0.
isenabled(rx) returns ans=1 when RTDX has been enabled,
independent of any channel. When you have not enabled RTDX you
get
ans=0 back.
Important Requirements for Using isenabled
On the processor side, isenabled depends on RTDX to determine and
report the RTDX status. Therefore the you must meet the f ollow ing
requirements to use
isenabled.
1 The processor must be running a program when you query the RTDX
interface.
2 You must enable the RTDX interface before you check the status of
individual channels or the interface.
3 Your processor program m u st be polling periodical ly for isenabled
to work.
7-66