@ikalogic/cs8000-api
v1.0.5
Published
Node.js API for CS8000 series RF switches
Readme
CS8000 API
This package contains the Node.js API for CS8000.
What is CS8000
CS8000 is a family fully programmable, RF switches. It's used for various lab and industrial applications, like 5G MIMO testing, multi-port VNA setups antenna switching, and signal routing.
More information about the hardware can be found on the product page.
Installation
You can install the package via npm:
npm install @ikalogic/cs8000-apiUsage
Here's a simple example of how to use the CS8000 API in your Node.js application:
import { CS8000 } from '@ikalogic/cs8000-api';
const sw = new CS8000(); // model is detected from the device; or new CS8000("CS8216") to require one
await sw.open(); // Auto-detect first available device
console.log(sw.model); // "CS8216" or "CS8224"
sw.prepare(1, 1);
sw.prepare(2, 0);
await sw.commit();
await sw.close();Supported products
| Model | Topology | Channels | |--------|--------------|----------| | CS8216 | 2 x SP16T | 16 | | CS8224 | 2 x SP24T | 24 |
The product table (PRODUCTS, getProduct(), detectModel()) is exported from the package:
import { PRODUCTS, CS8000 } from '@ikalogic/cs8000-api';
const devices = await CS8000.listDevices(); // [{ path, serialNumber, manufacturer, model }]
console.log(PRODUCTS.CS8216.channels); // 16