# sa44b

> sa44b driver for nodejs (using FFI)

Latest version **0.2.5** (published 2019-05-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install sa44b
pnpm add sa44b
yarn add sa44b
bun add sa44b
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; large bundle; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.5 |
| Published | 2019-05-21 |
| First published | 2019-05-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 11.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | harel.ashwal |
| Maintainers | ashwalh |

## Links

- npm: https://www.npmjs.com/package/sa44b
- Repository: https://github.com/HarelAshwal/sa44b
- Homepage: https://github.com/HarelAshwal/sa44b#readme
- Issues: https://github.com/HarelAshwal/sa44b/issues
- npm.io page: https://npm.io/package/sa44b

## Dependencies (4)

- [ffi](https://npm.io/package/ffi.md) ^2.3.0
- [ref](https://npm.io/package/ref.md) ^1.3.5
- [ref-array](https://npm.io/package/ref-array.md) ^1.2.0
- [ref-struct](https://npm.io/package/ref-struct.md) ^1.1.0

## Recent versions

- 0.2.5 (latest) — 2019-05-21
- 0.2.4 — 2019-05-07
- 0.2.3 — 2019-05-07
- 0.2.2 — 2019-05-07
- 0.2.1 — 2019-05-07
- 0.2.0 — 2019-05-07
- 0.1.9 — 2019-05-06
- 0.1.8 — 2019-05-05
- 0.1.7 — 2019-05-05
- 0.1.6 — 2019-05-05
- 0.1.5 — 2019-05-04
- 0.1.4 — 2019-05-04
- 0.1.3 — 2019-05-03
- 0.1.2 — 2019-05-02
- 0.1.1 — 2019-05-01
- … 1 more at https://npm.io/package/sa44b/versions

## README

sa44b Driver For NodeJS

## Installation
```
npm i sa44b --save
```

## Usage

```
import sa44b = require("sa44b");

var device = new Sa44b();

var stat = device.Open();
console.log(device.isOpen);

//var ver = device.GetApiVersion();
//var name = device.GetDeviceName();
//var sn = device.GetSerialString();
//var fw = device.GetFirmwareVersion();
var voltage = device.QueryDiagnostics();

// Configuring Device For a Sweep
var RefLevel = 20;
var Center = 1.0e9;
var Span = 10.0e6;

device.ConfigLevel(RefLevel);
device.ConfigAcquisition(Sa44b.sa_AVERAGE, Sa44b.sa_LOG_SCALE);
device.ConfigCenterSpan(Center, Span);
device.ConfigSweepCoupling(10.0e3, 10.0e3, 0.001, Sa44b.sa_NON_NATIVE_RBW, Sa44b.sa_NO_SPUR_REJECT);
device.ConfigProcUnits(Sa44b.sa_LOG);
var status = device.Initiate(Sa44b.sa_SWEEPING, 0);
if (status !== saStatus.saNoError) {
    console.log("Error: Unable to initialize Analyzer");
}

var sweepInfo = device.QuerySweepInfo();
var points = device.GetSweep_32f(sweepInfo);

console.log(points[0]);


```

---
_Source: https://npm.io/package/sa44b · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
