Can we disable the signal emitted by the triggering of the Timer?
-
A sine wave was plotted using a timer with the help of values written in a text file.On every triggering(on opening the page containing the sine wave), the time period of the sine wave decreases resulting in a frequency increased sine wave.
On observation,it is understood that on each triggering ,a new signal is emitted in addition to the existing signal. Can this be avoided ? can anyone suggest a solution so that the time period doesn't decrease and remain constant.
// Timer { // id:mytimer // interval: 100 // repeat: true // running: true // onTriggered: { // timeStep++; // var k = classA.floatarray[0]; // classA.readtext(); /*function that reads sinewave values from the file*/ // series1.append(timeStep,k); // } // }