Executing a command for a specific time

NoknucklesUK

New Member
Hi follks,

In Logicator for PIC.

I want to design a flowchart, that will execute a command for 5 seconds to monitor an anologue pin to see if it goes over a theshold.
The duration that the signal will be over threshold will be short.

I can't see any timing functions. Other than wait.
But if using wait the anologue pin will not be monitored all the time?

I'm new to this, am I missing something?
Do I have to set up a loop and count cycles or something?

Regards

Chris
 

nick12ab

Senior Member
See the 'time' variable in the PICAXE Manual 2. You can check the ADC value at the same time as the 'time' variable is counting seconds.
 

NoknucklesUK

New Member
I looked at the manual and saw the settime and timer functions. I just could not see any information in the PIC logicator documentation.
Nor could I figure how to use it with Logicator without using Basic.

But doh. Sorted it now.
The timer is started with a "Timer on command" and then compare function can be used to check the Timer variable.

Cheers
 
Top