Convert excel to dbc by vba.
password:b6#_L!aprIC9LsoQ=-p2
Warning: This is a very simple tool. Don't recommend to use this in business case.
Output dbc in candb++.
Convert excel to dbc by vba
License: MIT License
你好,我今天试了下你Excel转DBC,发现一个问题,比如在Excel里填一个MSB、长度为8bit、起始位56,生成的DBC中Startbit变为65,然后报错。能解决一下吗?
第120行
If Len(ActiveSheet.Cells(i, 10)) > 0 And Len(ActiveSheet.Cells(i, 1)) > 0 And ActiveSheet.Cells(i, 11) <> 0 Then
仅每条Message的第一条Signal的Len(ActiveSheet.Cells(i, 1))
会返回大于0,后续几条Signal返回均为0,导致后续Signal初始值计算出现问题。
信号的初始值存储时为原始值,根据 [Physical value] = ([raw value] * [factor]) + [offset]
转变为 [raw value] = ([Physical value] - [offset]) / [factor]
第121行: initial_value = (ActiveSheet.Cells(i, 10) + ActiveSheet.Cells(i, 12)) / ActiveSheet.Cells(i, 11)
是否应改为:initial_value = (ActiveSheet.Cells(i, 10) - ActiveSheet.Cells(i, 12)) / ActiveSheet.Cells(i, 11)
Friend, can you upgrade a version which supports Motorola LSB format
第121行:initial_value = (ActiveSheet.Cells(i, 10) + ActiveSheet.Cells(i, 12)) / ActiveSheet.Cells(i, 11)
信号初始值不是直接指定的吗?为什么使用这种计算方式?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.