TX Controller mit C++ programmieren

Alles rund um TX(T) und RoboPro, mit ft-Hard- und Software
Computing using original ft hard- and software
Forumsregeln
Bitte beachte die Forumsregeln!
Antworten
Benutzeravatar
hefeteig
Beiträge: 56
Registriert: 01 Nov 2010, 15:17

TX Controller mit C++ programmieren

Beitrag von hefeteig » 26 Jun 2011, 13:37

Hallo,
wisst ihr näheres dazu wie man den TX Contoller mit C++ programmieren kann?
Ich habe Windows 7, im Internet habe ich meistens nur Artikel zu dem alten Robo Interface gefunden und nichts zu Windows 7.
ich glaube ich brauche einen bestimmten Compiler, aber welcher ist der beste?
Könnt ihr mich bitte informieren.

Gruß Hefeteig

Zwergnase
Beiträge: 178
Registriert: 01 Nov 2010, 19:45
Wohnort: Düsseldorf
Kontaktdaten:

Re: TX Controller mit C++ programmieren

Beitrag von Zwergnase » 26 Jun 2011, 16:56

Hallo
Auf der Fischertechnik Seite gibt es doch ein C-Compiler Programmierpaket und PC Programming Robo TXC 1.2 zum Downloaden.
Viele Grüße,
Manuel Neumann

vleeuwen
Beiträge: 1609
Registriert: 31 Okt 2010, 22:23
Wohnort: Enschede (NL)
Kontaktdaten:

Re: TX Controller mit C++ programmieren

Beitrag von vleeuwen » 26 Jun 2011, 22:50

Programming the TX-C object oriented with C++ is posible.
You need to wrap the C lib function into C++ classes.
And use static function pointers for the call back's.

C++ managed classes for dotNET framework is partial possible.
The thread model of the TX-C is not completely compatible with C++ managed.
The callback are not working very well in C++ managed code.

Advisable is to write a real .dotNET framework wrapper for the FTMscLib.

Antworten