yellowriver
发表于 2023-12-30 14:18:57
不错,辛苦了
老郑小烧
发表于 2023-12-30 22:31:04
李斵冰 发表于 2023-12-30 11:43
可惜没有AutoCAD,运行宏时发生了错误……要是能导出SVG矢量图就好了
感谢支持。不熟悉SVG:lol ,刚才查了下,SVG使用XML格式定义图形,貌似不能通过VBA引用其对象。aCAD比较大众化,安装也很方便。
元旦后《分度》将升级到2.0,功能有比较大的拓展,会更稳定、更方便。
chihaxinh
发表于 2023-12-31 11:38:20
本帖最后由 chihaxinh 于 2023-12-31 11:40 编辑
Can you make document in word file , i can using translate tool convert from Madarin to English to understand how to using tool !
HD123
发表于 2023-12-31 13:32:21
chihaxinh 发表于 2023-12-31 11:38
Can you make document in word file , i can using translate tool convert from Madarin to English to u ...
Brief description
1. This Excel macro workbook has one ruler per table, which is divided into four categories: "benchmark, normal, text, and mirror window".
4. The reference ruler should be a DC linear ruler, and the text ruler should not draw scale lines or arcs.
2. Hidden tables do not participate in drawing. You can use Ctrl+drag to copy existing tables and add new rulers.
3. Each ruler has one layer, including the scale lines, arcs, and text readings of the ruler.
6. Prioritize calculating the drawing angle based on the measured angle on the current page, otherwise use the benchmark ruler.
5. The graduation function is in the theoretical angle column, and the data in the small table on the left should be corrected according to the specific circuit.
7. Please do not modify the table structure and do not insert/delete/move columns in the data area.
8. There is no limit to the number of lines in the tick mark data. The program starts reading data from the fourth line and stops when it encounters an empty .
9. An invalid theoretical angle prompt appears, usually indicating that the theoretical angle exceeds the full deviation angle, and the reading range should be reduced.
Operation steps
S1. Based on the flat scan photos of the dial, use CAD to measure the following data:
The full deviation angle of the pointer, the distance between the centers of two circles, and the radius of each ruler circle.
S2. Drive with standard current and measure the measured angle using a reference scale and a scale without a graduation function.
S3. Click "Calibrate All Rulers" to recalculate the 【 Draw Angle 】 of each ruler (all rulers will be automatically calibrated during drawing). Click the "Calculate" button to only calculate this page.
S4. Click the "Draw" button on the floating window to execute the drawing. Check "All" to draw all rulers at once, otherwise only the selected single ruler will be drawn.
S5. Modify the generated CAD document (content can be added to a new drawing layer, and do not check "All" when redrawing the ruler).
1. If there is an increase or decrease in the number of Excel tables or CAD documents or a change in their names, you should click "Refresh" in the small window.
2. If there is a security prompt in Excel, you should click "Enable Content".
3. CAD should be printed in a 1:1 ratio.
加糖的咖啡
发表于 2023-12-31 14:23:21
本帖最后由 加糖的咖啡 于 2023-12-31 15:45 编辑
郑老师这是出书的节奏,要大大的赞一个。我想是不是如果使用个电子墨水屏,可以只显示一种和档位对应的刻度,比如测电阻显示电阻曲线、测电压显示电压刻度与数值。自带线性矫正,可以实现一块表一个定制表盘。这大概需要高手来编程,也解决度盘绘制问题。
老郑小烧
发表于 2024-1-2 09:32:03
本帖最后由 老郑小烧 于 2024-1-2 10:18 编辑
chihaxinh 发表于 2023-12-31 11:38
Can you make document in word file , i can using translate tool convert from Madarin to English to u ...
抱歉没能及时回复,这几天比较忙。
请把你的邮箱给我,Word文档太大,无法发在论坛里。
即将完成的2.0版还会有个补充说明。
其实,有些词汇用英文更准确,比如 Sheet,中文可译为 “表”、“页”、“表单”、“工作表”、“数据表” 等等,出于简洁的目的,我更多地使用了 “表”。
老郑小烧
发表于 2024-1-2 09:43:21
加糖的咖啡 发表于 2023-12-31 14:23
郑老师这是出书的节奏,要大大的赞一个。我想是不是如果使用个电子墨水屏,可以只显示一种和档位对应的刻度 ...
我不懂电子墨水屏,但笨理儿合计应该是可以的,比如 “多点校正”,abby_tom 做双显指针表时就提到过 :lol 。
chihaxinh
发表于 2024-1-2 14:48:51
I have received email with document in .docx from 老郑小烧 . Thank you so much ! It's big knowledge need time to digging for deep understand. :D
老郑小烧
发表于 2024-1-2 16:24:52
chihaxinh 发表于 2024-1-2 14:48
I have received email with document in .docx from 老郑小烧 . Thank you so much ! It's big knowledge...
事实上,这些知识正是我感兴趣的地方——于我而言,它们在某种程度上比绘制度盘更重要。比如数字表线性校正的算法,如果是多点校正的话,我想跟我用到的算法应该是完全一样的。
加糖的咖啡
发表于 2024-1-3 14:07:40
老郑小烧 发表于 2024-1-2 09:43
我不懂电子墨水屏,但笨理儿合计应该是可以的,比如 “多点校正”,abby_tom 做双显指针表时就提到过 :lo ...
电子墨水屏就是电子书用的那种,因为不刷新不耗电,或者说耗电极小。不需要背光,强光下对比强烈。如果采用这种,足以实现逐点校正。实现郑老师刀刀压线的理想。可以针对不同线性表头,自己逐点绘出表盘。再就是可以做到只显示相应档位的刻度与数值,5V就显示1–5,500V就显示100–500等。这些在做表盘的时候就都完成了,以后不用改动。也不牵扯测量电路,只是表盘的进步。看不惯那种花里呼哨的表盘,对比度差,不易读数。以上都是纸上谈兵,只增笑尔:lol
老郑小烧
发表于 2024-1-8 12:02:45
新版《分度》写差不多了,年底事儿多,没做太多测试。这一版改为xlsb格式(二进制文件),优点是打开的速度更快。
示例数据是MF368的,其中:
基准标尺DCV的“实测角”是随意写的,不是真实测量数据;
ACV的实测角是根据真实度盘测量的。MF368的ACV标尺不是线性的,按道理只有低压量程才会比较明显,因此无法推测其分度函数。
ACV标尺也举例说明了校正的基本原则,即:本标尺表的实测角优先于基准标尺。
老郑小烧
发表于 2024-1-10 21:35:32
发现2.0版导入数据时有Bug,现更新为V2.1。
本版还完善了绘制前的数据验证功能,例如:避免忘记设置文本高度导致循环中止,等等。
老郑小烧
发表于 2024-1-15 12:28:32
V02.11版:1、彻底解决了导入数据后会残留外部链接的顽固问题;2、优化了代码;3、完善了数据验证,修正了几个小Bug。
老郑小烧
发表于 2024-1-15 14:20:49
本帖最后由 老郑小烧 于 2024-1-15 14:22 编辑
试验了ACV的分度函数,看起来效果不错。但不同管子的压降不同,而且在整个标尺内也不是个固定数,所以还是按实验测得的实际角直接校正比较好。
分度函数的EXCEL表达式:((RC[-3]-R9C3)/(R8C3-R9C3))*开始!R3C3,添加到《分度》的方法如下:
假设整流管压降为0.42V(仿真数据),用这个函数把MF368的ACV标尺改成AC10V专用的,效果如下。
量限越高、目视差别越不明显。
飞翔的空灵
发表于 2024-2-1 17:22:22
汗颜,用AutoCAD几年了,还不会用宏来画图:L