Skip to content

Decimate keyword Digital_input #84

Answered by ThomasAkam
horsto asked this question in Q&A
Discussion options

You must be logged in to vote

I have implemented a Frame_logger class in the dev branch here which acts like a Digital_input but does not send the events to the state machine for processing, just saves their times to the log, and also has a decimate argument which works just like the old Digital_input.

It should work fine with the last release (v1.8.1). To use it, just download the file frame_logger.py using the download button at the link above and put it in the pyControl/devices folder. Then in your state machine instantiate a Frame_logger class as:

logger = Frame_logger(pin='X1', rising_event='camera_frame', decimate=10)

Remember to include the event name in your events list.

Let me know how you get on.

Also, pleas…

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by horsto
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@horsto
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants