Here is the code. Basic idea is that it starts recording the voltae across a resistor and a load cell at the same time, then when the start button is pressed, an electrical load is applied to test the disbond time of an epoxy. The electrical load is either constant, 5 Hz square pulse, or 0.5 Hz square pulse. The switching is controlled by a relay, which is controlled by a digital output. I am unable to both read in and control the digital out at the same time.