/// <summary>Saves the RFmx Instr configuration file as is appropriate to the file type.</summary>
        /// <param name="instr">Specifies the RFmx Instr configuration to save.</param>
        /// <param name="outputDirectory">Specifies the output directory in which to save the file.</param>
        public virtual void SaveConfiguration(RFmxInstrMX instr, string outputDirectory)
        {
            string newFileName = RFmxFilePrefix + Path.GetFileNameWithoutExtension(FilePath) + ".tdms";

            string absoluteDirectoryPath = Path.GetFullPath(outputDirectory);

            if (!Directory.Exists(outputDirectory))
            {
                Directory.CreateDirectory(absoluteDirectoryPath);
                Log.Debug("Created directory {Path}", absoluteDirectoryPath);
            }

            string newPath = Path.Combine(absoluteDirectoryPath, newFileName);

            Log.Debug("Output path {Path}", newPath);

            instr.SaveAllConfigurations(newPath);
            Log.Information("Configuration saved to {Path}", newPath);
        }