Hi Suresh,
Your programming sequence is correct. There is currently no way to modify the rate of a periodic transmission after the transmission is initialized.
However, you might want to consider the following:
Usually, when periods are slow, the accuracy (jitter) of the period does not matter much. If that is the case for your application, you could perform the timing on the host computer. Specifically you could create a task with a sample rate of ‘0’ and call the CAN Write for that task with the different periods.
-B2k