If the DS2A or DS3 is connected to the TTL generating device which is grounded, will the stimulus delivered be still isolated? In other words, would it be safe to use it with patch-clamp, or there is a risk of destroying of the patch-amplifier?
Absolutely. The output of the DS2A or DS3 is optically isolated from the trigger inputs, so there is no need to worry about what your trigger source is, or how it is grounded.