# devices.pfeiffer:MPT200


MPT200 pressure gauge interface.


Usage

``` python
devices.pfeiffer:MPT200(interface)
```


Provides methods to interact with a MPT200 pressure gauge through a VISA interface.


## Methods

| Name | Description |
|----|----|
| [__init__()](#__init__) | Initialize the MPT200 device. |
| [checksum()](#checksum) | Calculate the checksum for a command string. |
| [getFilamentState()](#getFilamentState) | Get the current filament state. |
| [getPressure()](#getPressure) | Get the current pressure reading. |
| [id()](#id) | Get the identification information of the device. |
| [query()](#query) | Send a query to the device with calculated checksum. |
| [resolvePressureValue()](#resolvePressureValue) | Convert the device pressure reading to a float value. |
| [setFilamentState()](#setFilamentState) | Set the filament state. |

------------------------------------------------------------------------


### \_\_init\_\_()


Initialize the MPT200 device.


Usage

``` python
__init__(interface)
```


#### Parameters


`interface: str`  
VISA resource name or interface identifier.


------------------------------------------------------------------------


### checksum()


Calculate the checksum for a command string.


Usage

``` python
checksum(var)
```


#### Parameters


`var: str`  
The string to calculate checksum for.


#### Returns


`int`  
The calculated checksum (0-255).


------------------------------------------------------------------------


### getFilamentState()


Get the current filament state.


Usage

``` python
getFilamentState()
```


#### Returns


`int`  
The current filament state (0=off, 1=on).


------------------------------------------------------------------------


### getPressure()


Get the current pressure reading.


Usage

``` python
getPressure()
```


#### Returns


`float`  
The current pressure value.


------------------------------------------------------------------------


### id()


Get the identification information of the device.


Usage

``` python
id()
```


#### Returns


`str`  
The device identification string.


------------------------------------------------------------------------


### query()


Send a query to the device with calculated checksum.


Usage

``` python
query(msg)
```


#### Parameters


`msg: str`  
The message to be sent.


#### Returns


`str`  
The response from the device.


------------------------------------------------------------------------


### resolvePressureValue()


Convert the device pressure reading to a float value.


Usage

``` python
resolvePressureValue(reading)
```


#### Parameters


`reading: str`  
The raw pressure reading from the device.


#### Returns


`float`  
The pressure value in appropriate units.


------------------------------------------------------------------------


### setFilamentState()


Set the filament state.


Usage

``` python
setFilamentState(state)
```


#### Parameters


`state: int`  
The desired filament state (0=off, 1=on).
