I am working on a project where I need to close the solenoid valve (24DCV) at a different rate of time (variable closer time). It needs to be very fast (at least within 50ms). I am using NI DAQ: USB-6211. Should I use relay/ Optocoupler(4N35)? Will digital relay timer work?