PyJEM.TEM3.__apt

class PyJEM.TEM3.__apt.Apt3(*args, **kw)

Bases: _DummyTEM3Accessor

GetExpKind()

Get the selected aperture type for expansion commands.

Returns:

Aperture kind index. the mapping between index and aperture type.

Aperture exp kind

index

name

0

CL1

1

CL2

2

OL (OL upper)

3

HC (OL lower)

4

SA

5

ENT

6

HX

7

BF

8

AUX1

9

AUX2

10

AUX3

11

AUX4

Return type:

int

Note

  • Supported only on ARM200F.

  • Requires a 6-axis compatible system.

Examples

>>> TEM3.Apt3().GetExpKind()
0  # CL1
GetExpSize(kind)

Get aperture number.(Expansion command)

Parameters:

kind (int) – Aperture kind index. See Aperture exp kind for values.

Returns:

Hole number of the selected aperture.

Return type:

int

Note

  • Supported only on ARM200F.

  • Requires a 6-axis compatible system.

Example

>>> TEM3.Apt3().GetExpSize(0)  # CL1
0
GetKind()

Get the type of selected aperture. Below is the aperture indicated by the return.

Returns:

Aperture kind index. The following table shows the mapping between the returned index and the corresponding aperture type.

index

Aperture type

0

Nothing

1

CLA

2

OLA

3

HCA

4

SAA

5

ENTA

6

EDS

Return type:

int

Example

>>> TEM3.Apt3().GetKind()
0
GetPhasePlateState()

Get plate move state.

Returns:

Plate move state.

index

State

0

Stop

1

Moving

Return type:

int

Note

This function work on Cryo ARM.

Example

>>> TEM3.Apt3().GetPhasePlateState()
0
GetPosition()

Get aperture position. The selected aperture is the reading target.

Returns:

A tuple (index, value) containing:

  • x(int) : Target aperture’s X position.

  • y(int) : Target aperture’s Y position.

Return type:

list

Example

>>> TEM3.Apt3().GetPosition()
(0,0)
GetSize(kind)

Get aperture number index.

Parameters:

kind (int) – Aperture kind. See GetKind() for the index-to-aperture mapping.

Returns:

Get hole number about selected aperture.

Return type:

int

Example

>>> TEM3.Apt3().GetSize(1)
0
SelectExpKind(kind)

Select aperture.

Parameters:

kind (int) – Aperture kind index. See Aperture exp kind for values.

Return type:

None

Note

  • This function work on ARM200F or laterd.

  • only 6-axis compatible.

Example

>>> TEM3.Apt3().SelectExpKind(1)
SetSize(hole)

Set aperture hole number. The selected aperture is the operation target.

Parameters:

hole (int) –

Hole index.

index

Description

0

Open

1-4

Hole index

Return type:

None

Example

>>> TEM3.Apt3().SetSize(1)
SetExpSize(kind, hole)

Set aperture number.(Expansion command)

Parameters:
  • kind (int) – Aperture kind. See Aperture exp kind for values.

  • hole (int) –

    Hole index.

    index

    Description

    0

    Open

    1-4

    Hole index

Return type:

None

Note

  • Supported only on ARM200F.

  • Requires a 6-axis compatible system.

Example

>>> TEM3.Apt3().SetExpSize(1,1)
SetPhasePlateToNext()

Move to next position.

Note

This function work on Cryo ARM.

Example

>>> TEM3.Apt3().SetPhasePlateToNext()
Return type:

None

SetPosition(x, y)

Set aperture position.The selected aperture is the operation target.

Parameters:
  • x (int) – x axis position.

  • y (int) – y axis position.

Return type:

None

Example

>>> TEM3.Apt3().SetPosition(100,100)
SelectKind(kind)

SelectKindSelect aperture type.

Parameters:

kind (int) – Aperture kind. See GetKind() for the index-to-aperture mapping.

Return type:

None

Example

>>> TEM3.Apt3().SelectKind(1)