X-Series Measurement Applications for Modular Instruments Startup Guide
42
3.
Start the M90XA Software.
M90XA.Initialize
try
{
Console.WriteLine("Starting the M90XA, please be patient.");
// Start the M90XA
_myM90XA = new AgM90XA();
}
catch (Exception e)
{
Console.WriteLine("Could not instantiate the M90XA (details
follow).");
Console.WriteLine(e.ToString());
WaitForUser();
Cleanup();
return 3;
}
const bool withDisplay = true;
string iviOptions = "Simulate=true";
string driverSetupOptions = withDisplay ? "withdisplay=true" :
"withdisplay=false";
string optionString = iviO ", DriverSetup= " +
driverSetupOptions;
try
{
_myM90XA.Initialize(_resourceName, false, false,
optionString);
}
catch (Exception e)
{
Console.WriteLine("Could not initialize the M90XA (details
follow).");
Console.WriteLine(e.ToString());
WaitForUser();
Cleanup();
return 3;
}