I found out that using the pause function was a poor indicator for the speed we could run the system since pause has an inharent mininum time of 15ms. I tested a new way to time our system with pause_speed.m where the results of 100000 trials is in timing_test_100000_trials.mat. The current skeleton for the InVivo clamp is in_vivo_opto_clamp_skeleton which has a fair number of comments and place holders. digital_in_test, cmd_speed_test, and analog_out_test are all for benchmarking our system with how fast can we read from the digital channels, how long must we wait between commands to the blackrock system, and quickly can we change the analog outputs after reading in some data.