SCRIPT TO TEST RESULTS WHEN getChannel('NAME') IS USED ... ***** tickCnt = 0 setTickRate(10) testChID = addChannel('test',1,0,1,10) setChannel(testChID,0) println('Channel "test" has the value-via-ID "'..getChannel(testChID)..'"') println('Tick rate = 10') function onTick() if tickCnt == 50 then setTickRate(50); println('Tick rate = 50'); end if tickCnt == 100 then setTickRate(100) println('Tick rate = 100'); end if tickCnt == 500 then setTickRate(500) println('Tick rate = 500'); end if tickCnt == 1000 then setTickRate(500) println('Tick rate = 1000'); end if tickCnt == 2000 then setTickRate(1); println('End of test'); return; end tickCnt = tickCnt + 1 local chVal = getChannel('test') if chVal ~= nil then println('Channel "test" has the value-via-name "'..chVal..'"') end end ===================== RESULTS: getChannel('NAME') YIELDS _VERY_ SPORATIC (CORRECT) RETURN OF AN "ALWAYS SET" VIRTUAL CHANNEL VALUE ... ***** [lua] Gracefully stopping Lua Task [lua] Destroying Lua State [luaScript] Completed updating LUA. Flashing... win! [lua] Initializing Lua state [lua] memory usage: 17KB [lua] Starting Lua Task [USB] Stale sample. Dropping [lua] Loading script. Length: 735 Channel "test" has the value-via-ID "0.0" timebase/logging/telemetry sample rate: 100/100/50 Tick rate = 10 [lua] Successfully loaded script. Channel "test" has the value-via-name "0.0" Tick rate = 50 Tick rate = 100 Channel "test" has the value-via-name "0.0" Channel "test" has the value-via-name "0.0" Channel "test" has the value-via-name "0.0" Channel "test" has the value-via-name "0.0" Tick rate = 500 Channel "test" has the value-via-name "0.0" Channel "test" has the value-via-name "0.0" Channel "test" has the value-via-name "0.0" Channel "test" has the value-via-name "0.0" Channel "test" has the value-via-name "0.0" Tick rate = 1000 Channel "test" has the value-via-name "0.0" Channel "test" has the value-via-name "0.0" Channel "test" has the value-via-name "0.0" Channel "test" has the value-via-name "0.0" Channel "test" has the value-via-name "0.0" Channel "test" has the value-via-name "0.0" Channel "test" has the value-via-name "0.0" Channel "test" has the value-via-name "0.0" Channel "test" has the value-via-name "0.0" Channel "test" has the value-via-name "0.0" End of test ===================== SCRIPT TO TEST RESULTS WHEN getChannel(channelID) IS USED ... ***** tickCnt = 0 setTickRate(10) testChID = addChannel('test',1,0,1,10) setChannel(testChID,0) println('Channel "test" has the value-via-ID "'..getChannel(testChID)..'"') println('Tick rate = 10') function onTick() if tickCnt == 20 then setTickRate(50); println('Tick rate = 50'); end if tickCnt == 40 then setTickRate(100) println('Tick rate = 100'); end if tickCnt == 60 then setTickRate(500) println('Tick rate = 500'); end if tickCnt == 80 then setTickRate(500) println('Tick rate = 1000'); end if tickCnt == 100 then setTickRate(1); println('End of test'); return; end tickCnt = tickCnt + 1 local chVal = getChannel(testChID) if chVal ~= nil then println('Channel "test" has the value-via-ID "'..chVal..'"') end end ===================== RESULTS: getChannel(channelID) YIELDS 100% (CORRECT) RETURN OF AN "ALWAYS SET" VIRTUAL CHANNEL VALUE ... ***** [lua] Gracefully stopping Lua Task [lua] Destroying Lua State [luaScript] Completed updating LUA. Flashing... win! [lua] Initializing Lua state [lua] memory usage: 17KB [lua] Starting Lua Task [lua] Loading script. Length: 730 Channel "test" has the value-via-ID "0.0" timebase/logging/telemetry sample rate: 100/100/50 Tick rate = 10 [lua] Successfully loaded script. Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Tick rate = 50 Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Tick rate = 100 Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Tick rate = 500 Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Tick rate = 1000 Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" Channel "test" has the value-via-ID "0.0" End of test