I wish to configure the RealSense device, and then save the configuration into a file. Then, at a later time, I would like to use this configuration file to start the pipe. My understanding is that I can load the configuration file using config.enable_device_from_file. Am I on the right path? If not, please suggest the correct way of doing this.
You can use the Advanced Mode controls in the RealSense Viewer software to create a customized 'Visual Preset' for future use.
If you need to do this in scripting, the page linked to below shows how to write the Advanced Mode values to a file called a JSON and then load the data back in.