When developing a PC application interfacing to ANT, the basic sequence to configure an ANT channel is:
1. Set the network key.
2. Assign the channel
ANT_AssignChannel(ANT_CHANNEL, ucChannelType, ANT_NETWORK);
3. Set the channel ID
ANT_SetChannelId(ANT_CHANNEL, usDeviceID, ucDeviceType, ucTxType);
4. Set the message period
5. Set the RF frequency
6. Open the channel
The application must make sure that each command was successful before proceeding to the next step. You may also set the transmit power and slave timeout, however these are optional (as is RF frequency and message rate).
The example above refers to using the ANT_DLL. The sequence is the same when using other variants of the ANT libraries, but the syntax is slightly different. For more details, please refer to the demos accompanying the ANT Library Package.