Dear Tomas,
Thank you very much, you had helped me solve this problem perfectly. And I run into another problem again, in my code , Compare odd cell terminal pre-switch closure results to post switch closure results to determine fault mode according to datasheet <5.9 Table12: CT Open Detect and Functional Verification>.
as follow:

In my understanding , "Open line condition during test execution " means the same with"SWx failed open" .
But ,if so, then why when SWx command close , under Open line condition :V=0, but under SWx failed open condition:
Cell voltage much higher? I am confused by the question, could you please help me with it? Much appreciated!
Best wishes
huang ziyi.