arttyiv
Posts: 4
Joined: Sat Jan 09, 2016 12:27 am

Pyserial Progress Bar

Wed Nov 09, 2016 8:17 pm

Is it possible to have a progress bar in console while sending a file over serial with pyserial?

Some of the files are a bit large, and you wait and wait and you're never sure how much is left, so I'm curious if it is possible.

scotty101
Posts: 3958
Joined: Fri Jun 08, 2012 6:03 pm

Re: Pyserial Progress Bar

Wed Nov 09, 2016 8:21 pm

Of course it is.

Does your python script have a GUI or does it run from the command line?
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

arttyiv
Posts: 4
Joined: Sat Jan 09, 2016 12:27 am

Re: Pyserial Progress Bar

Wed Nov 09, 2016 8:24 pm

Runs from the command line. It's about as basic as it gets. It just asked for a file name, and sends that file to our CNC machine. I figured there had to be a way, but I'm still learning python so I'm not too knowledgeable. Any help or a point in the right direction would be fantastic.

scotty101
Posts: 3958
Joined: Fri Jun 08, 2012 6:03 pm

Re: Pyserial Progress Bar

Wed Nov 09, 2016 8:48 pm

Then there is pretty good example on stack overflow

http://stackoverflow.com/questions/3173 ... he-console
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

Return to “Python”