0.2.5 • Published 6 years ago

sa44b v0.2.5

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

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]);
0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago