ROYMARNEWICK
New Member
Help with the COUNT command would be really appreciated. I am a novice!!
My program is supposed to measure the number of pulses on an input pin over a 10 second period and then calculate the frequency of the input signal. The command used is : count C.0,10000,w0 ( input pin is C.0 / time period is 10 seconds / output result to w0 ). While the program is running, I rapidly click on the Pin c.0 button on the simulation screen to simulate an input signal (on/off cycles).
When the program is run, I note the following:
* the program runs through all the program lines including the above line but does not hang about for the 10 seconds while it reads the input signals.
* the value of w0 stays as 0 on the simulation screen
Please help in understanding what is going wrong.
Thanks
My program is supposed to measure the number of pulses on an input pin over a 10 second period and then calculate the frequency of the input signal. The command used is : count C.0,10000,w0 ( input pin is C.0 / time period is 10 seconds / output result to w0 ). While the program is running, I rapidly click on the Pin c.0 button on the simulation screen to simulate an input signal (on/off cycles).
When the program is run, I note the following:
* the program runs through all the program lines including the above line but does not hang about for the 10 seconds while it reads the input signals.
* the value of w0 stays as 0 on the simulation screen
Please help in understanding what is going wrong.
Thanks