background task in Python 3.5 (TXT4.0)

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
vleeuwen
Beiträge: 1564
Registriert: 31 Okt 2010, 22:23
Wohnort: Enschede (NL)
Kontaktdaten:

background task in Python 3.5 (TXT4.0)

Beitrag von vleeuwen » 27 Dez 2021, 00:57

How to create a background task.
Python 3.5 is a little bit old.
From Python 3.7 the background task is well documented but now for Python 3.5?

I need a websocket server running in the background.
With C++ on the TXT this was also very simpel and well documented.
software enigineer/teacher/advisor
Google translate
http://tescaweb.nl/Carel/?p=713

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

Re: background task in Python 3.5 (TXT4.0)

Beitrag von vleeuwen » 31 Dez 2021, 10:34

Problem has been resolved.
software enigineer/teacher/advisor
Google translate
http://tescaweb.nl/Carel/?p=713

Benutzeravatar
Bjoern
Beiträge: 634
Registriert: 04 Jan 2018, 12:34

Re: background task in Python 3.5 (TXT4.0)

Beitrag von Bjoern » 31 Dez 2021, 12:02

Hi,

I´m not interested in this topic but I assume others.
And due to the fact that a lot of things seems to be not well documented for the TXT 4.0 it would be a good idea to share your knowledge with others.

Wish you a happy new year and a lot of fun with ft.

Björn
https://gundermann-software.de/shop/
Der Shop für viele Community Projekte

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

Re: background task in Python 3.5 (TXT4.0)

Beitrag von vleeuwen » 31 Dez 2021, 12:18

Searching and studying the old Python 3.5 documentation and examples.
Dreaming about the original RoboPro with C++
And also studying the TXT4.0 example code.

RoboPro Coding with Blockly is only a simple text generator for Python code.
A nice practice could be: create with Blocklies the Python code for the TXT actuators and sensors coding, switch to the Python mode and use Python code. I am using Visual Studio with Python to developing and testing the Python code snips and copy them into the RoboPro Coding pages.
software enigineer/teacher/advisor
Google translate
http://tescaweb.nl/Carel/?p=713

Benutzeravatar
MasterOfGizmo
Beiträge: 2720
Registriert: 30 Nov 2014, 07:44

Re: background task in Python 3.5 (TXT4.0)

Beitrag von MasterOfGizmo » 31 Dez 2021, 14:10

Blockly is nothing more than a graphical code editor. That's how it's advertised. It e.g. does not come with a runtime environment.

See
https://developers.google.com/blockly
Arduino für fischertechnik: ftDuino http://ftduino.de, ftDuino32 http://ftduino.de/32

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

Re: background task in Python 3.5 (TXT4.0)

Beitrag von vleeuwen » 03 Jan 2022, 22:13

See my websocket experiment.
viewtopic.php?f=8&t=7195
software enigineer/teacher/advisor
Google translate
http://tescaweb.nl/Carel/?p=713

Antworten