API Programmierschnittstelle von LinuxCNC

More
20 Dec 2023 15:34 #288666 by Muecke
Hallo zusammen,

ich würde mich gerne mit jemanden austauschen, der die API (Programmierschnittstellen) von LinuxCNC verwendet hat / verwendet.

Was für mich interessant ist.
- Wird LinuxCNC bei Nutzung der API noch die GUI gestattet
- kann man die GUI deaktivieren, wenn die API verwendet wird
- auf was kann man denn alles über die API zugreifen
- wie schnell ist die API
- ... weitere fragen kommen sicher, wenn man sich darüber unterhält.

Gruß Mücke

 

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

More
20 Dec 2023 15:48 - 20 Dec 2023 15:51 #288667 by Aciera
Last edit: 20 Dec 2023 15:51 by Aciera. Reason: Deutsch statt Englisch

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

More
20 Dec 2023 15:56 #288668 by Muecke
Python ist, wenn ich es richtig weis eine Skriptsprache, was für die Geschwindigkeit nicht besonders positiv ist.
Ich würde das eher in C mir vorstellen.

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

More
20 Dec 2023 16:08 #288670 by Aciera
Dann meinst du die C++ API, darüber weiss ich aber leider nix.
The following user(s) said Thank You: Muecke

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

More
20 Dec 2023 17:11 #288675 by Muecke
Ja, C++ klingt gut, weil C++ eine Hochsprache ist und dementsprechend schneller Daten verarbeiten kann.
Und in C++ werden auch andere Daten verarbeitet, die für die nächsten Schritte wichtig sind.

Schade, eventuell gibt es ja noch jemanden, der sich damit auskennt.
 

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

More
23 Dec 2023 07:17 #288865 by Muecke
Gibt es im Handbuch das C++ Interface auch?
Habe es bisher noch nicht gefunden :-(

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

More
23 Dec 2023 10:37 #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
24 Dec 2023 10:23 #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
24 Dec 2023 10:42 #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
31 Dec 2023 15:44 #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.

Time to create page: 0.081 seconds
Powered by Kunena Forum