Added new functionality to ds8r class #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
We have recently used your package to control the DS8R stimulator, and we'd like to thank you for developing it!
In our setup, it was necessary to update the stimulation parameters on the device without immediately sending a pulse. To accommodate this requirement, we have rewritten your DS8R class and separated the functionality into distinct methods:
Additionally, we have implemented a get_state() method that addresses the issue reported in Issue #3 . This method retrieves the current configuration of the DS8R device. The state can either be printed for immediate inspection or returned as a dictionary, which can then be easily saved to a CSV file or used for logging and analysis.
New Functionality Highlights:
Parameter Management: By separating parameter uploading and pulse triggering, users can now modify stimulation parameters without causing unintended pulses. This enhances safety and flexibility in experimental protocols.
State Retrieval: The get_state() method enables users to query the device for its current settings. This is particularly useful for verifying configurations, savind configurations (Issue Retrieving Measurement Panel Information #3), debugging, and ensuring reproducibility of experiments.
Let me know what you think! :)
All the best,
Tim