# devices.hewlettpackard:HP3245A


HP3245A AC function generator.


Usage

``` python
devices.hewlettpackard:HP3245A(
    interface,
    **kwargs,
)
```


Typically connected via `GPIB::<address>::INSTR`


## Parameters


`interface: str`  
VISA resource string for the instrument.

`**kwargs: dict`  
Additional keyword arguments passed to VisaDevice.


## Attributes


`output: list`  
Current and offset values \[current, offset\].

`frequency: float`  
The current frequency setting.

`config_params: dict`  
Configuration parameters for the device.


## Methods

| Name | Description |
|----|----|
| [__init__()](#__init__) | Initialize the HP3245A function generator. |
| [ident()](#ident) | Query the instrument identification. |
| [set_current()](#set_current) | Set the output current amplitude. |
| [set_freq()](#set_freq) | Set the output frequency. |
| [set_offset()](#set_offset) | Set the DC offset value. |

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


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


Initialize the HP3245A function generator.


Usage

``` python
__init__(
    interface,
    **kwargs,
)
```


#### Parameters


`interface: str`  
VISA resource string for the instrument.

`**kwargs: dict`  
Additional keyword arguments passed to VisaDevice.


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


### ident()


Query the instrument identification.


Usage

``` python
ident()
```


#### Returns


`str`  
Instrument identification string.


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


### set_current()


Set the output current amplitude.


Usage

``` python
set_current(curr)
```


#### Parameters


`curr: float`  
Current amplitude value in amperes.


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


### set_freq()


Set the output frequency.


Usage

``` python
set_freq(freq)
```


#### Parameters


`freq: float`  
Frequency value in hertz.


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


### set_offset()


Set the DC offset value.


Usage

``` python
set_offset(dcoff)
```


#### Parameters


`dcoff: float`  
DC offset value in volts.
