LUA Scripting Examples 4
The context is:
$ROICIIndex contains index of ROI sampling point
$ROICIIndexMin = 1
$ROICIIndexMax = 7
$ROICIIndexMin <= $ROICIIndex <= $ROICIIndexMax
The following example shows the use of local and library functions:
local function _if(condition, value1, value2)
if(condition) then return value1 else return value2 end
end
local file=io.open('Y:\Test222.txt', 'a')
file:write('--test')
file:close()
_luareturnvalue = _if(M3!Temperature > 14, M3!Temperature*0.1, M3!Temperature)