public static SetWaveformProgram CreateRampProgram(byte channel, double delta, double limit) { return(new SetWaveformProgram() { Channel = channel, Instructions = new SetWaveformProgram.Instruction[] { SetWaveformProgram.CreateIncrementInstr(delta, limit / delta) }, Repeat = 1 }); }
private SetWaveformProgram PerformCompile(IStimulus stimulus) { Program = new SetWaveformProgram(); if (stimulus != null) { lines = new List <Line>(); CompileLines(stimulus); CleanLines(); CompileInstructions(); } return(Program); }