支持阿尔泰科技DAM3000M系列控制仪表#240
Closed
newtontech wants to merge 6 commits intodeepmodeling:mainfrom
Closed
Conversation
- Add i18n module with gettext-based translation system - Support English (en_US) and Chinese (zh_CN) languages - Add translation files (.po/.mo) for both languages - Integrate i18n into main.py, banner_print.py - Add language switching via environment variable or code - Add comprehensive tests for i18n functionality - Add documentation for i18n usage Resolves deepmodeling#32
Author
|
Closing in favor of #243 which removes i18n changes and only contains Altai DAM device support. |
newtontech
pushed a commit
to newtontech/Uni-Lab-OS
that referenced
this pull request
Mar 14, 2026
- DAM3060V: 4-channel analog output module - DAM3151: 32-channel analog input module - DAMDeviceBase: Base class for device encapsulation Fixes deepmodeling#237 (Rebased from PR deepmodeling#240, removed unrelated i18n changes)
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
概述
本PR实现了对阿尔泰科技DAM3000M系列控制仪表的支持,解决了 #237 提出的需求。
新增功能
1. DAM3060V - 4通道模拟输出模块
set_analog_output(channel, voltage): 设置输出电压set_output_range_mode(channel, range_code): 设置输出范围get_range_mode(channel): 获取当前量程范围2. DAM3151 - 32通道模拟输入模块
10V, -5V5V, -1V1V, -500mV500mV, -150mV150mV, 0V10V, 0V5V, 1V5V20mA, 0mA20mA, 4mA20mA, 0mA22mAmeasure_all_channels(): 测量所有通道measure_channel(channel): 测量单个通道set_measurement_range_mode(channel, range_code): 设置测量范围get_range_mode(channel): 获取当前量程范围3. 设备基类 (DAMDeviceBase)
技术实现
目录结构
设计特点
使用示例
DAM3060V - 设置电压输出
DAM3151 - 测量数据采集
测试计划
依赖说明
DAM3000M_64.dll放置在工作目录或指定路径文档
相关Issue
Fixes #237
注意事项
致谢
参考了 ART-CONTROL-Python-Interface 的实现思路。