Hi,
I am not sure if this is possible or should go in feature requests.
I have some python code I am going through which seems to do what I need, I have a lot to learn yet. It uses an Arduino to input the data which I do not want to do. I have the data already in Flowcode so I wondered if it is possible to run the flowcode to get / format the data and then run the python code to display it.
So there are 2 questions,
1/ Is it possible to run external python programs from within flowcode, all I think it would need is to just call the file.
2/ Would it be possible to pass parameters/data in to the running python program.
Regards,
Bob
Python code in Flowcode
-
- Posts: 340
- http://meble-kuchenne.info.pl
- Joined: Sat Mar 19, 2022 4:53 pm
- Has thanked: 34 times
- Been thanked: 36 times
-
- Valued Contributor
- Posts: 1630
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 142 times
- Been thanked: 761 times
Re: Python code in Flowcode
Yes - you need to use ShellExecute (in built-in functions - system)
Starting a python file with #!python3 - allows you to just 'run the file' - without this you'd need to run "python myfile.py"
You can pass arguments too..
Martin
Starting a python file with #!python3 - allows you to just 'run the file' - without this you'd need to run "python myfile.py"
You can pass arguments too..
Martin