enable - Enable RTDX™ interface, specified channel, or all RTDX channels

Syntax

enable(rx,'channel')
enable(rx,'all')
enable(rx)

Description

enable(rx,'channel') enables the open channel specified by the string channel, for RTDX link rx. The input argument rx represents the RTDX portion of the associated link to CCS IDE.

enable(rx,'all') enables all the open channels associated with rx.

enable(rx) enables the RTDX interface for rx.

Important Requirements for Using enable

On the target side, enable depends on RTDX to enable channels. Therefore the you must meet the following requirements to use enable:

  1. The target must be running a program when you enable the RTDX interface. When the target is not running, the state defaults to disabled.

  2. You must enable the RTDX interface before you enable individual channels.

  3. Channels must be open.

  4. Your target program must poll periodically.

  5. Using code in the program running on the target to enable channels overrides the default disabled state of the channels.

Examples

To use channels to RTDX, you must both open and enable the channels:

cc = ticcs; % Create a new connection to the IDE.
enable(cc.rtdx) % Enable the RTDX interface.
open(cc.rtdx,'inputchannel','w') % Open a channel for sending 
                                 % data to the target processor.
enable(cc.rtdx,'inputchannel') % Enable the channel so you can use 
                               % it.

See Also

disable, open

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS
 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS