lua-instrument is a lua module for controlling instruments through VISA interface (GPIB...).
Switch branches/tags
Nothing to show
Clone or download
Latest commit 066b427 May 5, 2014
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build load visa lib dynamically Sep 25, 2013
demo add a gsm test demo for 8960 test set May 7, 2013
external init Apr 10, 2013
src tabify Sep 25, 2013
tests init Apr 10, 2013
.gitignore Initial commit Apr 9, 2013
LICENSE add license file Apr 11, 2013
Makefile add mingw support Apr 15, 2013
README.md Update README.md May 5, 2014

README.md

lua-instrument

lua-instrument is a lua module for instrument controlling through VISA interface.

To build:

Tool:

vc2008 or higher

Dependencies:

* lua library
* visa library

Put lua and visa library into external directory in a structure described in external README.

Build:

Run build/vc2008/build.bat or open build/vc2008/lvisa.sln

To Run:

Make sure lvisa.dll and instrument.lua in lua's package search path. Try some simple code:

require("instrument")

local i = instrument("?*::5::INSTR")

print(i:q("*IDN?"))

local s,m = i:q("SYST:ERR?", "*l")
if s ~= 0 then
  print("bad status: "..m)
end

Downloads

Demo for win32

TODO:

Add API document.