Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
200 views
in Technique[技术] by (71.8m points)

python - Storing files locally and sending jobs to printer for speed

I'm operating in a factory setting where speed is important. I store order information in the cloud. Barcodes are printed by querying the database for information. Operators use a tkinter app on a raspberry pi that runs a python script to query the cloud.

Currently printing out a barcode takes about 5 seconds to make that query and then use os.system() to print out the barcode.

  1. Is there a faster way to send jobs to the printer?
  2. I've been looking into storing files locally to speed this process up, does anyone have any of what to look into? Network attached storage that downloads relevant files from the cloud nightly?
  3. Any suggestions for running modern factory automation with python?
question from:https://stackoverflow.com/questions/65888739/storing-files-locally-and-sending-jobs-to-printer-for-speed

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

checkout subprocess.Popen(), which is a flexible/lite version of os.system()


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...