Comments (6)
I've had a similar issue with generating .[ch] files from an .eds file. I believe it's caused by commit 5b7f3f5 from 16th March 2023. This requires the user to provide correct count labels; fine if you're using a .xpd file but no good for .eds files as they don't contain count labels.
This can be demonstrated by opening DS301_profile.xpd from the EDSEditorGUI/Profiles directory, export the .[ch] files (File->Export CanOpenNode...), export as an .eds file (File->Export...), closing the .xpd file, opening the .eds file and exporting the .[ch] files. OD.h exported from the .xpd file contains all the OD_CNT_* defines in the "Counters of OD objects" section but OD.h exported from the .eds file contains none of these.
I'm using EDSSharp on the command line to generate .[ch] files from an .eds file. How about adding an option to EDSSharp (and EDSEditor) to automatically add count labels if they're missing, as it used to do, so these tools can be used with .eds files again?
from canopeneditor.
This is the eds file: SEE maxxon.eds.txt TWO POST LATER
from canopeneditor.
Please attach files directly!
What Version do you use?
from canopeneditor.
For the countlables I have to dig a little deeper
@CANopenNode Can you give me a hint for the other wrnings?
Do we need these Warnings in the CanOpenExporter?
There is nothing in the CiA 306 definition for EDS files that justifies these warnings! The EDSchecker from Vector would also check this object as error-free!
if (data.cType != dataElem.cType || data.length != dataElem.length) Warnings.AddWarning($"Error in 0x{indexH}: Data type of elements in ARRAY must be equal!", Warnings.warning_class.WARNING_BUILD); if ((data.cValue == null && dataElem.cValue != null) || (data.cValue != null && dataElem.cValue == null)) Warnings.AddWarning($"Error in 0x{indexH}: Default value must be defined on all ARRAY elements or must be undefined on all ARRAY elements!", Warnings.warning_class.WARNING_BUILD); if (attr != attrElem) Warnings.AddWarning($"Error in 0x{indexH}: Attributes of elements in ARRAY must be equal", Warnings.warning_class.WARNING_BUILD);
from canopeneditor.
If you import eds file, there is no information about CANopenNode specific parameters. Also have to follow rules described here: https://github.com/CANopenNode/CANopenNode/blob/master/doc/objectDictionary.md
Or use communication objects from DS301_profile.xpd
from canopeneditor.
Closed: No feedback
from canopeneditor.
Related Issues (20)
- refactor CanopenEditor HOT 3
- Remove CanOpenNodeXML (inc bridge)
- Move import & export part of eds away from eds.cs
- Can't add item into OD HOT 6
- CanopenEditor: Exporting to XDD v1.0 format sets wrong type on "Highest sub-index supported" HOT 2
- System.ArgumentException with grid columns HOT 2
- Question: are the generated C files subject to (L)GPL? HOT 5
- Build and run instructions? HOT 2
- LSS Master/Slave parameters does not export to OD.c/h HOT 5
- Concrete Node Id does not propagate to proper value of $NODEID HOT 1
- Impossible to import .eds file from Weidmueller UR20-FBC-CAN HOT 5
- Column span out of the range of valid values (INT32) HOT 2
- Layout of PDO tab oversize out of window. HOT 3
- "not specified" type for Domain objects HOT 14
- Hello, about using CANopenEditor configuration SRDO problem HOT 3
- An error occurred while I was editing PDO obiect dictionary, such that I lose my modification. HOT 2
- Unsigned32 Variable in TPDO doesn't have proper data length in bits HOT 7
- EDS file seems to generate wrong access type for PLC TPDO and RPDO HOT 3
- PDO Mapping 'Invalid' not work while 'Export CanOpenNode' HOT 2
- TPDO and RPDO Assigned COB IDs HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from canopeneditor.