public void SetSyncPulse(int newPulseDurationMS, int newDutyCycle) { myMode = SyncboxMode.sync; duty = newDutyCycle; syncPulseDurationMS = newPulseDurationMS; overallStopwatch.Reset(); overallStopwatch.Start(); pulseStopwatch.Reset(); pulseStopwatch.Start(); //TODO: start pulse here! isPulseOn = true; myStreamWriter.Write("\nSync Pulse On: 0"); }
public void SetStimPulse(int newPulseDurationMS, int durationSeconds) //duration in milliseconds (MS) { myMode = SyncboxMode.stim; duty = 50; //50% duty cycle stimDurationMS = GetMillisecondsFromSeconds((long)durationSeconds); stimPulseDurationMS = newPulseDurationMS; overallStopwatch.Reset(); overallStopwatch.Start(); pulseStopwatch.Reset(); pulseStopwatch.Start(); //TODO: start pulse here! isPulseOn = true; myStreamWriter.Write("\nStim Pulse On: 0"); }
public void SetOff() { myMode = SyncboxMode.off; }