out = ''
if ( getValue('cycloplegisk_refraktion.mangler.odxt') == '' )
then
out = out .. 'Cycloplegisk refraktion, o.dxt: ' .. getValue('cycloplegisk_refraktion.sf.odxt') .. ' sf'
if ( getValue('cycloplegisk_refraktion.cyl.odxt') ~= '' )
then
out = out .. ', ' .. getValue('cycloplegisk_refraktion.cyl.odxt') .. ' cyl'
end
if ( getValue('cycloplegisk_refraktion.grader.odxt') ~= '' )
then
out = out .. ', ' .. getValue('cycloplegisk_refraktion.grader.odxt') .. ' grader\n'
else
out = out .. '\n'
end
end
if ( getValue('cycloplegisk_refraktion.mangler.osin') == '' )
then
out = out .. 'Cycloplegisk refraktion, o.sin: ' .. getValue('cycloplegisk_refraktion.sf.osin') .. ' sf'
if ( getValue('cycloplegisk_refraktion.cyl.osin') ~= '' )
then
out = out .. ', ' .. getValue('cycloplegisk_refraktion.cyl.osin') .. ' cyl'
end
if ( getValue('cycloplegisk_refraktion.grader.osin') ~= '' )
then
out = out .. ', ' .. getValue('cycloplegisk_refraktion.grader.osin') .. ' grader\n'
else
out = out .. '\n'
end
end
return out
value = 0
timestamp = 0
source = 'pracro'
if( missing_eye_odxt )
then
if( missing_eye_odxt.value and missing_eye_odxt.value == '' )
then
value = ''
timestamp = missing_eye_odxt.timestamp
else
value = 'mangler'
timestamp = missing_eye_odxt.timestamp
end
end
return value, timestamp, source
value = 0
timestamp = 0
source = 'pracro'
if( missing_eye_osin )
then
if( missing_eye_osin.value and missing_eye_osin.value == '' )
then
value = ''
timestamp = missing_eye_osin.timestamp
else
value = 'mangler'
timestamp = missing_eye_osin.timestamp
end
end
return value, timestamp, source
-- Returning 0, 0 invalidates the result
value = 0
timestamp = 0
source = 0
if(visutron900plus and visutron900plus.osin and visutron900plus.osin.sph_near and visutron900plus.osin.sph_near.value and visutron900plus.osin.sph_near.timestamp)
then
value = visutron900plus.osin.sph_near.value
-- convert . to ,
value = string.gsub(value, '[.]', ',')
timestamp = visutron900plus.osin.sph_near.timestamp
source = visutron900plus.osin.sph_near.source
end
return value, timestamp, source
-- Returning 0, 0 invalidates the result
value = 0
timestamp = 0
source = 0
if(visutron900plus and visutron900plus.osin and visutron900plus.osin.cyl and visutron900plus.osin.cyl.value and visutron900plus.osin.cyl.timestamp)
then
value = visutron900plus.osin.cyl.value
-- convert . to ,
value = string.gsub(value, '[.]', ',')
timestamp = visutron900plus.osin.cyl.timestamp
source = visutron900plus.osin.cyl.source
end
return value, timestamp, source
-- Returning 0, 0 invalidates the result
value = 0
timestamp = 0
source = 0
if(visutron900plus and visutron900plus.osin and visutron900plus.osin.axis and visutron900plus.osin.axis.value and visutron900plus.osin.axis.timestamp)
then
value = visutron900plus.osin.axis.value
-- convert . to ,
value = string.gsub(value, '[.]', ',')
timestamp = visutron900plus.osin.axis.timestamp
source = visutron900plus.osin.axis.source
end
return value, timestamp, source
-- Returning 0, 0 invalidates the result
value = 0
timestamp = 0
source = 0
if(visutron900plus and visutron900plus.odxt and visutron900plus.odxt.sph_near and visutron900plus.odxt.sph_near.value and visutron900plus.odxt.sph_near.timestamp)
then
value = visutron900plus.odxt.sph_near.value
-- convert . to ,
value = string.gsub(value, '[.]', ',')
timestamp = visutron900plus.odxt.sph_near.timestamp
source = visutron900plus.odxt.sph_near.source
end
return value, timestamp, source
-- Returning 0, 0 invalidates the result
value = 0
timestamp = 0
source = 0
if(visutron900plus and visutron900plus.odxt and visutron900plus.odxt.cyl and visutron900plus.odxt.cyl.value and visutron900plus.odxt.cyl.timestamp)
then
value = visutron900plus.odxt.cyl.value
-- convert . to ,
value = string.gsub(value, '[.]', ',')
timestamp = visutron900plus.odxt.cyl.timestamp
source = visutron900plus.odxt.cyl.source
end
return value, timestamp, source
-- Returning 0, 0 invalidates the result
value = 0
timestamp = 0
source = 0
if(visutron900plus and visutron900plus.odxt and visutron900plus.odxt.axis and visutron900plus.odxt.axis.value and visutron900plus.odxt.axis.timestamp)
then
value = visutron900plus.odxt.axis.value
-- convert . to ,
value = string.gsub(value, '[.]', ',')
timestamp = visutron900plus.odxt.axis.timestamp
source = visutron900plus.odxt.axis.source
end
return value, timestamp, source