예제 #1
0
파일: CPARDevice.cs 프로젝트: Nocitech/CPAR
 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
     });
 }
예제 #2
0
        private SetWaveformProgram PerformCompile(IStimulus stimulus)
        {
            Program = new SetWaveformProgram();

            if (stimulus != null)
            {
                lines = new List <Line>();
                CompileLines(stimulus);
                CleanLines();
                CompileInstructions();
            }

            return(Program);
        }