ctPlot.plot.setSize(500, 180);
ctPlot.plot.addLegend(0, "Position");
ctPlot.plot.addLegend(1, "Input");
ctPlot.plot.addLegend(2, "Control");
CTPeriodicSampler ctSampler = new CTPeriodicSampler(ctsub,
"PeriodicSampler");
ctSampler.samplePeriod.setExpression("samplePeriod");
// CT Connections
ctsub.connect(time.output, scale3.input);