Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a force_trigger method to the jig driver #189

Open
clint-lawrence opened this issue Jun 18, 2024 · 0 comments
Open

Add a force_trigger method to the jig driver #189

clint-lawrence opened this issue Jun 18, 2024 · 0 comments

Comments

@clint-lawrence
Copy link
Collaborator

This is a potential debugging aid. The idea is a force the jig driver to refresh the hardware signals.

For example, with many of our jigs, if you cycle power to the jig to reset something, all the switching circuits would get reset. Assuming the scripts is running under a debugger, then method would provide an easy was to reset the state off the jig.

You could do this in a slightly hacky way at the moment...

on = jig.active_pins()
off = jig.virtual_map._all_pins
jig.debug_set_pins(off=off)
jig.debug_set_pins(on=on)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant