This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ACPY3_setFinal




Hi all,

I would like to know if i could get some examples regarding
ACPY3_setFinal.

I had configured a Channel for 10 link transfers. but at some point it requires
fewer transfer than numTransfers to be started...say 5.
So i have used

ACPY3_setFinal(handle,5);

Once transfered, I have to restore to the previous state where the channel starts
10 link transfers.

param.waidId = 5;
ACPY3_configure(handle,param,5);

This piece of code where restoration is done isnt working out correctly...if i could debug,
only the first 5 transfers are being started.

I would like to know how to solve this problem?

Regards,
Sandeep

  • Your code seems ok to me; are you sure it is not transfers 6-10 that you are seeing?

    Originally, you code had 10 trasnfers with trasnfer number 10 having a waitId of -1 (marking the end); by calling setFinal API, you set waitId of transfer 5 to -1 (signaling the end).  So now you have two transfers, 5 and 10 signaling the end.   If you reset 5 back to waitId=5, you still have the 10th transfer marking the end.  If you issue an ACPY3_start(), I am wondering if you are seeing transfers 6-10 (and it stops at 10) instead of 1-5 and stopping at 5.  At least is worth investigating...