E_CYCLE don't generate events on every DT? [message #1810861] |
Tue, 20 August 2019 15:09  |
Eclipse User |
|
|
|
Greetings
I am currently working on a project about building a monitoring system based on 4DIAC using raspberry pi.
The system I am trying to monitor is actually only an anemometer sensor which generates pulsing 1s and 0s which its pulse rate depends on how fast the wind blows.
What i tried is I connected an E_CYCLE block to an IX block, connect the sensor's output physically to a GPIO pin and tried to read the IN count (in IX block). Since the IN only updates whenever the REQ got input event, the E_CYCLE will do the job to continuously trigger the REQ in IX for every short period of time.
I tried to dial in 500ms to DT and the system runs (the IN updates). But DT=500ms is not enough for my device since anemometer spins quite fast and reading the data every half a second won't do the job accurately.
I tried to dial 10 ms. But instead of updating the IN, the EO stopped generating events at count 10, therefore the IX block is not started and the IN count stopped.
Is there any solution for this? Did I do the correct approach for my needs?
Thanks!
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.16063 seconds