Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
GEPARD
GEPARD
Commits
aaa767c1
Commit
aaa767c1
authored
Nov 06, 2019
by
Elisa Kanaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hotfix for WITec Control 5.2
parent
d91bcf42
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
ramancom/WITecCOM.py
ramancom/WITecCOM.py
+9
-2
ramancom/witectesting.py
ramancom/witectesting.py
+1
-1
No files found.
ramancom/WITecCOM.py
View file @
aaa767c1
...
@@ -117,6 +117,13 @@ class WITecCOM(RamanBase):
...
@@ -117,6 +117,13 @@ class WITecCOM(RamanBase):
self
.
ImageRotationInterface
=
IBUCSCore
.
GetSubSystemDefaultInterface
(
"MultiComm|MicroscopeControl|Video|Calibration|RotationDegrees"
)
self
.
ImageRotationInterface
=
IBUCSCore
.
GetSubSystemDefaultInterface
(
"MultiComm|MicroscopeControl|Video|Calibration|RotationDegrees"
)
self
.
ImageRotationMan
=
win32com
.
client
.
CastTo
(
self
.
ImageRotationInterface
,
'IBUCSFloat'
)
self
.
ImageRotationMan
=
win32com
.
client
.
CastTo
(
self
.
ImageRotationInterface
,
'IBUCSFloat'
)
if
vnr
>=
5.2
:
self
.
TimeSeriesSlowNameInterface
=
IBUCSCore
.
GetSubSystemDefaultInterface
(
"UserParameters|Naming|SampleName"
)
self
.
TimeSeriesSlowNumInterface
=
IBUCSCore
.
GetSubSystemDefaultInterface
(
"UserParameters|Naming|Counter"
)
else
:
self
.
TimeSeriesSlowNameInterface
=
IBUCSCore
.
GetSubSystemDefaultInterface
(
"UserParameters|SequencerTimeSeriesSlow|Naming|DataName"
)
self
.
TimeSeriesSlowNumInterface
=
IBUCSCore
.
GetSubSystemDefaultInterface
(
"UserParameters|SequencerTimeSeriesSlow|Naming|DataNumber"
)
self
.
SequencerStartInterface
=
IBUCSCore
.
GetSubSystemDefaultInterface
(
"UserParameters|SequencerSingleSpectrum|Start"
)
self
.
SequencerStartInterface
=
IBUCSCore
.
GetSubSystemDefaultInterface
(
"UserParameters|SequencerSingleSpectrum|Start"
)
self
.
SequencerStartTrigger
=
win32com
.
client
.
CastTo
(
self
.
SequencerStartInterface
,
'IBUCSTrigger'
)
self
.
SequencerStartTrigger
=
win32com
.
client
.
CastTo
(
self
.
SequencerStartInterface
,
'IBUCSTrigger'
)
...
@@ -125,13 +132,13 @@ class WITecCOM(RamanBase):
...
@@ -125,13 +132,13 @@ class WITecCOM(RamanBase):
self
.
TimeSeriesSlowNumMeasurementsInterface
=
IBUCSCore
.
GetSubSystemDefaultInterface
(
"UserParameters|SequencerTimeSeriesSlow|AmountOfMeasurements"
)
self
.
TimeSeriesSlowNumMeasurementsInterface
=
IBUCSCore
.
GetSubSystemDefaultInterface
(
"UserParameters|SequencerTimeSeriesSlow|AmountOfMeasurements"
)
self
.
TimeSeriesSlowNumMeasurementsMan
=
win32com
.
client
.
CastTo
(
self
.
TimeSeriesSlowNumMeasurementsInterface
,
'IBUCSInt'
)
self
.
TimeSeriesSlowNumMeasurementsMan
=
win32com
.
client
.
CastTo
(
self
.
TimeSeriesSlowNumMeasurementsInterface
,
'IBUCSInt'
)
self
.
TimeSeriesSlowNameInterface
=
IBUCSCore
.
GetSubSystemDefaultInterface
(
"UserParameters|SequencerTimeSeriesSlow|Naming|DataName"
)
#
self.TimeSeriesSlowNameInterface = IBUCSCore.GetSubSystemDefaultInterface("UserParameters|SequencerTimeSeriesSlow|Naming|DataName")
self
.
TimeSeriesSlowNameMan
=
win32com
.
client
.
CastTo
(
self
.
TimeSeriesSlowNameInterface
,
'IBUCSString'
)
self
.
TimeSeriesSlowNameMan
=
win32com
.
client
.
CastTo
(
self
.
TimeSeriesSlowNameInterface
,
'IBUCSString'
)
self
.
TimeSeriesSlowNumAccumulationsInterface
=
IBUCSCore
.
GetSubSystemDefaultInterface
(
"UserParameters|SequencerTimeSeriesSlow|SpectrumAcquisition|Accumulations"
)
self
.
TimeSeriesSlowNumAccumulationsInterface
=
IBUCSCore
.
GetSubSystemDefaultInterface
(
"UserParameters|SequencerTimeSeriesSlow|SpectrumAcquisition|Accumulations"
)
self
.
TimeSeriesSlowNumAccumulationsMan
=
win32com
.
client
.
CastTo
(
self
.
TimeSeriesSlowNumAccumulationsInterface
,
'IBUCSInt'
)
self
.
TimeSeriesSlowNumAccumulationsMan
=
win32com
.
client
.
CastTo
(
self
.
TimeSeriesSlowNumAccumulationsInterface
,
'IBUCSInt'
)
self
.
TimeSeriesSlowIntTimeInterface
=
IBUCSCore
.
GetSubSystemDefaultInterface
(
"UserParameters|SequencerTimeSeriesSlow|SpectrumAcquisition|IntegrationTime"
)
self
.
TimeSeriesSlowIntTimeInterface
=
IBUCSCore
.
GetSubSystemDefaultInterface
(
"UserParameters|SequencerTimeSeriesSlow|SpectrumAcquisition|IntegrationTime"
)
self
.
TimeSeriesSlowIntTimeMan
=
win32com
.
client
.
CastTo
(
self
.
TimeSeriesSlowIntTimeInterface
,
'IBUCSFloat'
)
self
.
TimeSeriesSlowIntTimeMan
=
win32com
.
client
.
CastTo
(
self
.
TimeSeriesSlowIntTimeInterface
,
'IBUCSFloat'
)
self
.
TimeSeriesSlowNumInterface
=
IBUCSCore
.
GetSubSystemDefaultInterface
(
"UserParameters|SequencerTimeSeriesSlow|Naming|DataNumber"
)
#
self.TimeSeriesSlowNumInterface = IBUCSCore.GetSubSystemDefaultInterface("UserParameters|SequencerTimeSeriesSlow|Naming|DataNumber")
self
.
TimeSeriesSlowNumMan
=
win32com
.
client
.
CastTo
(
self
.
TimeSeriesSlowNumInterface
,
'IBUCSInt'
)
self
.
TimeSeriesSlowNumMan
=
win32com
.
client
.
CastTo
(
self
.
TimeSeriesSlowNumInterface
,
'IBUCSInt'
)
self
.
TimeSeriesSlowModeInterface
=
IBUCSCore
.
GetSubSystemDefaultInterface
(
"UserParameters|SequencerTimeSeriesSlow|MeasurementMode"
)
self
.
TimeSeriesSlowModeInterface
=
IBUCSCore
.
GetSubSystemDefaultInterface
(
"UserParameters|SequencerTimeSeriesSlow|MeasurementMode"
)
self
.
TimeSeriesSlowModeMan
=
win32com
.
client
.
CastTo
(
self
.
TimeSeriesSlowModeInterface
,
'IBUCSEnum'
)
self
.
TimeSeriesSlowModeMan
=
win32com
.
client
.
CastTo
(
self
.
TimeSeriesSlowModeInterface
,
'IBUCSEnum'
)
...
...
ramancom/witectesting.py
View file @
aaa767c1
...
@@ -41,7 +41,7 @@ print(f"Current user z position is z={userz}µm")
...
@@ -41,7 +41,7 @@ print(f"Current user z position is z={userz}µm")
# image read
# image read
print
(
"Taking image and saving to tmp.bmp"
)
print
(
"Taking image and saving to tmp.bmp"
)
wc
.
saveImage
(
"
tmp.bmp"
)
wc
.
saveImage
(
r
"C:\
tmp.bmp"
)
# moving x and y
# moving x and y
print
(
"Test to move 100µm in x and after that 100µm in y direction followed by 10µm up."
)
print
(
"Test to move 100µm in x and after that 100µm in y direction followed by 10µm up."
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment