Program stops as soon sending "set_digital_out(2,False)"

Hi @martin.huetter,

It seems like your overall target is to exchange data from a python process and URControl. And not the specific issue mentioned in the title of this topic Program stops as soon sending “set_digital_out(2,False)” if that is correct. I will suggest you to take a look at this topic:

And many of the other samples. for example: