Tags: gotmc/ivi
Tags
Fix code quality and formatting issues Maintenance Release: - Resolve all gofmt and golines formatting issues - Fix staticcheck QF1003 warnings (switch vs if/else) - Improve code readability and consistency Changes: - Use simplified composite literal syntax - Convert if/else chains to switch statements for enums - Format long lines to meet style guidelines - Follow Go best practices and idioms This release focuses on code quality improvements without any functional changes. All existing functionality remains unchanged and all tests continue to pass.
Add configurable local control for instruments Major Features: - Configurable automatic return to local control on Close/Disable - Prevents instruments from being stuck in remote mode after program ends - Flexible configuration for different use cases Key Improvements: - Implements Disable() method with SYST:LOC command - Adds Close() method for proper resource cleanup - ReturnToLocal flag with getter/setter methods - Defaults to true for improved developer experience - Comprehensive test coverage This release addresses a common pain point where instruments would remain in remote mode after program termination, requiring manual intervention or power cycling to regain front panel control. Resolves: #20
Add comprehensive timeout support for instrument communications - Implement timeout wrapper for all instrument operations - Add configurable timeout settings for different operation types - Provide context-aware methods for fine-grained control - Maintain full backward compatibility - Address Issue #3: Add timeouts Resolves: #3
PreviousNext