From: <can...@li...> - 2010-12-03 08:52:23
|
The question is easily answered but neither that easy to accomplish. Within the package I see no use of dynamically allocation of memory. What's not that bad. Out of the box it's not possible. You have to change CO_DATA Structure The way the [NodeName]_objdict[] table is created and recreated The way the [NodeName]_PDO_status[] Table is created and recreated The way [NodeName]_scanIndexOD works Maybe the way how a Node made up the timers for the new pdos All that and be saved for saved for access violation. Could be a great change for an very dynamic master or CanOpen Tester. Please commit the changes on a repository like Christian Traecke on BitBucket. (Thanks by the way for his work) http://bitbucket.org/christianIca/canfestival-3-ica/wiki/Home Mit freundlichen Grüßen with kind regards Christian Böpple Christian Böpple Developer ********************************************** Von: can...@li... [mailto:can...@li...] Gesendet: Mittwoch, 1. Dezember 2010 15:48 An: can...@li... Betreff: [Canfestival-devel] Dynamically creating the Object Dictionary Hello, we would like to dynamically create the OD in a CanFestival application. For the moment we are using the Object Dictionary Editor, generate the OD.h and OD.c files and include them in our application to compile everything together and get the executable, but this way, the OD is static, we can change values, but we cannot change the structure (add more PDOs, variables, mappings, ...). Does anybody know if it is possible and if there is any way to do that? Thank you! Jordi Blanch Carles Unidad de Ensayo y Control ENCOPIM S.L. C/. del Parc, 5 (nave 13) P.I. Els Pinetons E-08291 RIPOLLET (Barcelona) Tel: (+34) 935 94 23 47 Fax: (+34) 935 94 64 15 ========================================================== La información contenida en la presente transmisión es confidencial y su uso únicamente está permitido a su(s) destinatario(s). Si Ud. no es la persona destinataria de la presente transmisión, rogamos nos lo comunique de manera inmediata por teléfono (+34 935 942 347) y destruya cualquier copia de la misma (tanto digitales como en papel). The information contained in this transmission is confidential and is intended only for the use of the addressee(s). If you are not the designated recipient of this transmission, please advise us immediately by telephone (+34 935 942 347) and destroy any copies (digital and paper). ====================================================== ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Canfestival-devel mailing list Can...@li... https://lists.sourceforge.net/lists/listinfo/canfestival-devel |