lua-instrument is a lua module for instrument controlling through VISA interface.
vc2008 or higher
* lua library
* visa library
Put lua and visa library into external directory in a structure described in external README.
Run build/vc2008/build.bat
or open build/vc2008/lvisa.sln
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
Add API document.