diff --git a/DeviceAdapters/Standa8SMC4/Standa8SMC4.cpp b/DeviceAdapters/Standa8SMC4/Standa8SMC4.cpp index c6cbc06c3..b019aeae5 100644 --- a/DeviceAdapters/Standa8SMC4/Standa8SMC4.cpp +++ b/DeviceAdapters/Standa8SMC4/Standa8SMC4.cpp @@ -349,6 +349,8 @@ int Standa8SMC4Z::SetPositionUm(double pos) return DEVICE_UNKNOWN_POSITION; } + command_wait_for_stop(device_, 1); + // Set future position OnStagePositionChanged(pos); @@ -404,6 +406,8 @@ int Standa8SMC4Z::SetPositionSteps(long steps) return DEVICE_UNKNOWN_POSITION; } + command_wait_for_stop(device_, 1); + // Set future position OnStagePositionChanged(steps * unitMultiplier_); @@ -1015,6 +1019,9 @@ int Standa8SMC4XY::SetPositionUm(double x, double y) return DEVICE_UNKNOWN_POSITION; } + command_wait_for_stop(deviceX_, 1); + command_wait_for_stop(deviceY_, 1); + // Set future position OnXYStagePositionChanged(x, y); @@ -1080,6 +1087,9 @@ int Standa8SMC4XY::SetRelativePositionUm(double dx, double dy) return DEVICE_UNKNOWN_POSITION; } + command_wait_for_stop(deviceX_, 1); + command_wait_for_stop(deviceY_, 1); + // Set future position UpdatePositions(dx, dy); diff --git a/DeviceAdapters/Standa8SMC4/Standa8SMC4.vcxproj b/DeviceAdapters/Standa8SMC4/Standa8SMC4.vcxproj index 5b8c556cf..9d0180af8 100644 --- a/DeviceAdapters/Standa8SMC4/Standa8SMC4.vcxproj +++ b/DeviceAdapters/Standa8SMC4/Standa8SMC4.vcxproj @@ -1,4 +1,4 @@ - + @@ -68,7 +68,7 @@ MaxSpeed true true - $(MM_3RDPARTYPRIVATE)\XIMC\ximc-2.10.5\ximc;%(AdditionalIncludeDirectories) + $(MM_3RDPARTYPRIVATE)\XIMC\ximc-2.8.4\ximc;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) @@ -76,7 +76,7 @@ true true true - $(MM_3RDPARTYPRIVATE)\XIMC\ximc-2.7.6\ximc\win64;%(AdditionalLibraryDirectories) + $(MM_3RDPARTYPRIVATE)\XIMC\ximc-2.8.4\ximc\win64;%(AdditionalLibraryDirectories) libximc.lib;%(AdditionalDependencies)