Python Forum

Full Version: Files to store configuration and steps for a industrial process control application
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everyone this is my first post Smile . I am a beginner in python and interested in industrial application. I have had some previous experience with C and Matlab but my background is more on hardware than software.

Imagine a basic manufacturing process where I need to send some parameters to a machine to set the way of doing the job (settings), and then a sequence of steps to define what the job is, for example this time at this temperature and then that time at this higher temperature etc (lets call it process sequence).

I would like to type this information in a GUI and save to a file so the main script would read from it and start the job.

I have been doing some research and found a library called configparser that seems to be what I need for the settings. I do not know if there is any thing similar for the "process sequence". I guess the process sequence would end in a list in a variable in memory but I do not know if there is a proper way to put it in a file. Maybe just a flat csv file?

Thank you in advance for your answer Wink ,
there are plenty of options, apart from configparser format. As you said a sequence of actions, I would say the configparser is not best option.
a lot will depend on exact data.
as you said csv file is also an option
another one - look at json for example (maybe it will be the best option if I understand your setup correctly)
xml, yaml may also do the job

probably sqlite3 database may also do what you need