Skip to Main Content Skip to Search
Product Documentation

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

Syntax

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

IDEs

This function supports the following IDEs:

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 the 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 processor side, enable depends on RTDX to enable channels. To use enable, meet the following requirements:

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

  2. Enable the RTDX interface before you enable individual channels.

  3. Channels must be open.

  4. Your processor program must poll periodically.

  5. Using code in the program running on the processor 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:

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

See Also

disable | open

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

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