visa32

0.1.6 • Public • Published

visa32.js

Simple VISA SCPI interface for node.js (tested only on Windows7 + Library not for commercial use!!!)

install

npm install visa32

example (test_visa_query.js)

var visa    = require('visa32');
 
var address = process.argv[2]; // ip or hostname, e.g. 192.168.123.123
var query   = process.argv[3]; // query, e.g. *IDN? or *OPT?
 
if (!address) address = '192.168.123.123';
if (!query)   query = '*IDN?';
 
visa.query('tcpip::' + address + '::instr', query, function(err, result){
  if (err) console.log('Error: ' + err);
  console.log(result);
});

commandline call

> node test_visa_query.js 192.168.123.123 *IDN?
Rohde&Schwarz,ESW-26,XXXXXXX,XXXXXX

Readme

Keywords

Package Sidebar

Install

npm i visa32

Weekly Downloads

4

Version

0.1.6

License

MIT

Last publish

Collaborators

  • jorgen-vikinggod