PyJEM.TEM3.__detector¶
Created on Wed Apr 9 13:10:30 2025
@author: dmaekawa
- class PyJEM.TEM3.__detector.Detector3(*args, **kw)¶
Bases:
_DummyTEM3AccessorDetector index table.
Table 1 Detector Index¶ index
Detector type
1
SEI
2
EDS
3
BI-PRISM
4
DFI-EF
5
TVCAM-U
6
SSCAM-U
7
FARADAY-CAGE
8
BS
9
HRD
10
DFI-U
11
BFI-U
12
SCR-F
13
SCR-L
14
DFI-B
15
BFI-B
16
SSCAM-B
17
TVCAM-B
18
EELS
19
TVCAM-GIF
20
SSCAM-GIF
21
BEI-TOPO
22
BEI-COMPO
23
SEI-TOPO
24
SEI-COMPO
- GetBrt(detector)¶
Get Brightness of detector.
- Parameters:
detector (int) – Detector index
- Returns:
brighness value. range is 0-4095
- Return type:
int
Example
>>> TEM3.Def3().GetBrt(10) 2000
- GetCont(detector)¶
Get Contrast of detector.
- Parameters:
detector (int) – Detector index
- Returns:
contrast value. range is 0-4095
- Return type:
int
Example
>>> TEM3.Def3().GetCont(10) 2000
- GetContBrtInfo(detector)¶
Get the contrast / brightness of the designated detector.
- Parameters:
detector (int) – Detector index. See Detector Index for the mapping.
- Returns:
A tuple (contrast, brightness) with values in the following range:
Field
Range
contrast
0-4095
brightness
0-4095
- Return type:
list
Example
>>> TEM3.Def3().GetContBrtInfo(10) (2000,2000)
- GetImageSw(detector)¶
Get input signal switch from detector.
- Parameters:
detector (int) – Detector index. See Detector Index for the mapping.
- Returns:
Image switch status.
index
Description
0
OFF
1
ON
- Return type:
int
Example
>>> TEM3.Def3().GetImageSw(10) 0
- GetPosition(detector)¶
Get the detector position (In/Out)
- Parameters:
detector (int) – Detector index. See Detector Index for the mapping.
- Returns:
In/Out status.
index
Description
0
Out
1
In
- Return type:
int
Example
>>> TEM3.Def3().GetPosition(10) 0
- GetScreen()¶
Get the screen angle.
- Returns:
Angle index.
index
Angle (deg)
0
0
1
7
2
90
- Return type:
int
Example
>>> TEM3.Def3().GetScreen() 0 # 0(deg)
- SetBrt(detector, value)¶
Set Brightness of detector.
- Parameters:
detector (int) – Detector index.
value (int) – brighness value. range is 0-4095
- Return type:
None
Example
>>> TEM3.Def3().SetBrt(10,2000)
- SetCont(detector, value)¶
Set Contrast of detector.
- Parameters:
detector (int) – Detector index.
value (int) – contrast value. range is 0-4095
- Return type:
None
Example
>>> TEM3.Def3().SetCont(10,2000)
- SetImageSw(detector, sw)¶
Change the input signal switch from detector.
- Parameters:
detector (int) – Detector index
sw (int) – image switch. 0=OFF, 1=On
- Return type:
None
Example
>>> TEM3.Def3().SetImageSw(10,0)
- SetPosition(detector, index)¶
Control the detector position (In/Out)
- Parameters:
detector (int) – Detector index
sw (int) – in/out status. 0=Out, 1=In
index (int)
- Return type:
None
Example
>>> TEM3.Def3().SetPosition(10,0)
- SetScreen(index)¶
Control the screen angle.
- Parameters:
index (int) –
- angle index.
0= 0(deg)
1= 7(deg)
2= 90(deg)
- Return type:
None
Example
>>> TEM3.Def3().SetScreen(0) # 0(deg)