Page 1 of 1

Create Virtual Channel

Posted: Tue Jan 15, 2019 4:29 am
by d_gatorfan
Trying to create a virtual channel to allow use of the shiftX2 button to trigger logging and goPro.
The addChannel function is returning a nil value.

Code: Select all

ButtonId = addChannel("Sx2Button",10,0,0,100,'')
if ButtonID == nil then println('it is nil') end
I simplified to the example in the addChannel function documentation.

Code: Select all

ButtonId = addChannel("EGT",1)
if ButtonID == nil then println('it is nil') end
Same result.
I am using an Apex with V2.13.6 firmware.

Thanks for the help.
Dennis

Posted: Tue Jan 15, 2019 7:06 pm
by MikeD
You may review your capital letters on ButtonId vs ButtonID...

Posted: Tue Jan 15, 2019 11:41 pm
by d_gatorfan
MikeD wrote:You may review your capital letters on ButtonId vs ButtonID...
Thank you, I had that correct in my actual script, so that wasn't my exact problem.
Similar though, I used "GetChannel()" instead of "getChannel()"
Duh...

Thanks for the response.
Dennis