Jump to content

LVar for Chrono


gardan

Recommended Posts

Hi,

The question is in the title.

For make the chrono ON, STOP, and OFF,

And congratulations at team of AAX :excellenttext_s:

Thank you and sorry for my English

Michel

Link to comment
Share on other sites

Thk Joshua

Hi,

Why this do not work :confused_s:

-- 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

  • Aerosoft

Hi,

Why this do not work :confused_s:

-- 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

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

Hi,

Why this do not work :confused_s:

-- 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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy & Terms of Use