02-25-2010 01:23 PM
02-26-2010 12:02 PM
Yes, there is.
You need to add to your project the MAX Configuration Measurement Studio Library. This library, contains a class called Configuration. You can use any of its Copy methods to load MAX configuration files, for example:
Configuration.Copy("C:\\MySystem.nce", "system://127.0.0.1", CopyOptions.ReplaceDestination, null);
However, these methods require the apartment state of the calling thread to be Single-Threaded Apartment (STA). One way to accomplish that is to add the STAThread attribute to the method that contains this call.
Please let me know if I can further assist you with this matter.
Anzurio Parra
02-26-2010 01:07 PM
Hi,
Thanks for your question. Yes, there is a way to programmatically load an .nce file using Measurement Studio and .NET. You would use the Configuration.Copy method to do this. Go to the Measurement Studio help and search "max copy configuration" for more information on how to use this method.
Regards,
Todd V