visa32
v0.1.6
Published
visa SCPI remote interface for node.js
Downloads
6
Readme
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