This commit is contained in:
@@ -156,6 +156,11 @@ namespace CMS_CORE_Library.Siemens
|
||||
// Try to get information
|
||||
try
|
||||
{
|
||||
//Check if Siemens Environment is started
|
||||
CmsError cmsError = CheckSiemensEnv();
|
||||
if (cmsError.IsError())
|
||||
return cmsError;
|
||||
|
||||
// InitializeSiemens objects
|
||||
if (AxesSvc == null)
|
||||
AxesSvc = new DataSvc();
|
||||
@@ -175,11 +180,6 @@ namespace CMS_CORE_Library.Siemens
|
||||
});
|
||||
}
|
||||
|
||||
//Check if Siemens Environment is started
|
||||
CmsError cmsError = CheckSiemensEnv();
|
||||
if (cmsError.IsError())
|
||||
return cmsError;
|
||||
|
||||
// Set Connected to FALSE and close the session
|
||||
Connected = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user