Hi Pankaja2020,
I had a talk with a colleague of mine, and found out there is a problem with these outputs. Especially if you have a capacitor connected. This will give a voltage on the output pin when the DigOut is off, which cause the problem. I'm not saying this is the issue you have, but there have been some cases coming in to the PLUS+1 Helpdesk about this.
One solution can be to just disable the output for a short period when the DigOut is shut off. (See the quick and simple code I did).
When the DigOut goes low, a negative transition. Disable the monitoring for 1-2 sec.
This output, DisableOutputSafetyMonitoring, was added to the HWD file pretty recent. So if you don't see it, please update the HWD file and the template. If you don't want to update the template, you can add the signal yourself, but read the API before you do it.
Have a nice day.