API Programmierschnittstelle von LinuxCNC

More
2 years 10 months ago #288886 by Aciera
Von einer Dokumentation für das C++ API habe ich noch nie was gehört.
Ich glaube am besten schaust du dir die Dateien im Ordner 'src/emc/nml_intf/' an.

Vorallem:
'emc.hh'
'emc.cc'
'emc_nml.hh'

Please Log in or Create an account to join the conversation.

More
2 years 10 months ago #288985 by Muecke
Das ist sehr schade, dann muss ich mich da durchwuseln, das kann lustig und spaßig werden.

Danke für den Hinweis mit den Dateien, das schaue ich mir die Tage mal an, ...

Please Log in or Create an account to join the conversation.

More
2 years 10 months ago #288987 by rodw
I think what has happened, Linuxcnc predates C++ and was written in C, some later parts have been written in C++.
The NML code is quite messy as come key structures are duplicated into C++ to talk to the older C format.
Try playing with the state_tag structure in emc/motion/state_tag.h which also pops up in classes in emc/nml_intf/emc_nml.hh
The following user(s) said Thank You: Muecke

Please Log in or Create an account to join the conversation.

More
2 years 10 months ago #289434 by Muecke

Von einer Dokumentation für das C++ API habe ich noch nie was gehört.
Ich glaube am besten schaust du dir die Dateien im Ordner 'src/emc/nml_intf/' an.

Vorallem:
'emc.hh'
'emc.cc'
'emc_nml.hh'
 
Ich kann den Ordner von dir nicht finden.
Habe die Datei "emc.hh" und "emc_nml.hh" hier gefundene: "/usr/include/linuxcnc".
Die Datei "emc.cc" habe ich gar nicht gefunden.



 

Please Log in or Create an account to join the conversation.

More
2 years 10 months ago #289435 by Aciera
In einer vorkompilierten Installation wirst du nicht alle Dateien auf deinem Rechner finden.
Schau mal hier:
github.com/LinuxCNC/linuxcnc/tree/master/src/emc/nml_intf
The following user(s) said Thank You: Muecke

Please Log in or Create an account to join the conversation.

More
2 years 9 months ago - 2 years 9 months ago #290071 by Muecke
Ich schätze das ist eine dumme Frage, da ich mich mit Programmierung nicht so gut auskenne, ist mir das noch nicht ganz klar.

Angenommen ich würde LinuxCNC nur über die C++ Schnittstelle nutzen wollen, wird dann LinuxCNC zur Laufzeit normal geladen? Also man sieht die GUI von LinuxCNC. Oder ruft man LinuxCNC dann im "Hintergrund ohne GUI" auf?
Last edit: 2 years 9 months ago by Muecke.

Please Log in or Create an account to join the conversation.

Moderators: Muecke
Time to create page: 0.061 seconds
Powered by Kunena Forum