gardan 4 Posted August 12, 2013 Share Posted August 12, 2013 Hi, The question is in the title. For make the chrono ON, STOP, and OFF, And congratulations at team of AAX Thank you and sorry for my English Michel Link to comment Share on other sites More sharing options...
Joshua Che. 1601 Posted August 16, 2013 Share Posted August 16, 2013 Hi, The var is L:AB_MPL_CLOCK_ET_SW, number 0 = start 1 = stop 2 = reset. Link to comment Share on other sites More sharing options...
gardan 4 Posted August 17, 2013 Author Share Posted August 17, 2013 Hi, The var is L:AB_MPL_CLOCK_ET_SW, number 0 = start 1 = stop 2 = reset. Thk Joshua Link to comment Share on other sites More sharing options...
gardan 4 Posted August 19, 2013 Author Share Posted August 19, 2013 Thk Joshua Hi, Why this do not work -- CHRONO button toggle if ipcPARAM == 225 then LVarSet = "L:AB_MPL_CLOCK_ET_SW" LVarGet = ipc.readLvar(LVarSet) if LVarGet == 2 then LVarGet = -1 end ipc.writeLvar(LVarSet,LVarGet+1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end Thk at all Link to comment Share on other sites More sharing options...
Aerosoft Aerosoft Team [Inactive Account] 51558 Posted August 20, 2013 Aerosoft Share Posted August 20, 2013 Hi, Why this do not work -- CHRONO button toggle if ipcPARAM == 225 then LVarSet = "L:AB_MPL_CLOCK_ET_SW" LVarGet = ipc.readLvar(LVarSet) if LVarGet == 2 then LVarGet = -1 end ipc.writeLvar(LVarSet,LVarGet+1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end Thk at all The developer of the SDK is back from vacation next monday and I'll ask him to check on this. Link to comment Share on other sites More sharing options...
guenseli 76 Posted August 20, 2013 Share Posted August 20, 2013 The LINDA module actaly contains the clock section. Here is the code (But I must say, I haven't tried it actaly - maybe codes have changed ...) With this code, you should be able to make your own script, if you don't want to use LINDA ... -- ## Clock Main Panel ############### function AB_MPL_CLOCK_Chrono_start () ipc.writeLvar("L:AB_MPL_CLOCK_Chrono_start", 1) SmallOverheadPushButtons () DspShow ("CHR", "strt") end function AB_MPL_CLOCK_Chrono_stop () ipc.writeLvar("L:AB_MPL_CLOCK_Chrono_start", 0) SmallOverheadPushButtons () DspShow ("CHR", "stop") end function AB_MPL_CLOCK_Chrono_toggle () if _tl("AB_MPL_CLOCK_Chrono_start", 0) then AB_MPL_CLOCK_Chrono_start () else AB_MPL_CLOCK_Chrono_stop () end end function AB_MPL_CLOCK_Chrono_reset () ipc.writeLvar("L:AB_MPL_CLOCK_RST", 1) SmallOverheadPushButtons () DspShow ("CHR", "rset") end ----- function AB_MPL_CLOCK_run () ipc.writeLvar("AB_MPL_CLOCK_ET_SW", 0) DspShow ("CLCK", "run") ASC_KnobRotate () end function AB_MPL_CLOCK_stp () ipc.writeLvar("AB_MPL_CLOCK_ET_SW", 1) DspShow ("CLCK", "stp") ASC_KnobRotate () end function AB_MPL_CLOCK_st () ipc.writeLvar("AB_MPL_CLOCK_ET_SW", 2) DspShow ("CLCK", "st") ASC_KnobRotate () end function AB_MPL_CLOCK_inc () CLCK = ipc.readLvar("AB_MPL_CLOCK_ET_SW") if CLCK == 0 then AB_MPL_CLOCK_stp () elseif CLCK == 1 then AB_MPL_CLOCK_st () end end function AB_MPL_CLOCK_dec () CLCK = ipc.readLvar("AB_MPL_CLOCK_ET_SW") if CLCK == 2 then AB_MPL_CLOCK_stp () elseif CLCK == 1 then AB_MPL_CLOCK_run () end end Link to comment Share on other sites More sharing options...
Joshua Che. 1601 Posted August 28, 2013 Share Posted August 28, 2013 Hi, Why this do not work -- CHRONO button toggle if ipcPARAM == 225 then LVarSet = "L:AB_MPL_CLOCK_ET_SW" LVarGet = ipc.readLvar(LVarSet) if LVarGet == 2 then LVarGet = -1 end ipc.writeLvar(LVarSet,LVarGet+1) ipc.writeLvar("L:SmallOverheadPushButtons", 1) end Thk at all Hi, The variable you got should be working and is for the CLOCK CHRONO. If you are requesting for the ND Chrono, its a different variable. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.