HT : 0016

HT : 0016
PRODUCT: K-TOUCH
CHALLENGE: HOW TO PROGRAM A DIALER FOR A TELECONFERENCE UNIT/VC

SCENARIO: CREATE A 10 DIGIT DIALER ON K-TOUCH THAT DISPLAYS THE PRESSED NUMBER IN SEQUENCE, WITH A “REDIAL LAST NUMBER” BUTTON.

START BY BUILDING A BASIC LAYOUT:

16 1

ADD 10 SEPARATE LABELS NEXT TO EACH OTHER: ASSIGN

16 2

ASSIGN A “DIGIT” VARIABLE TO EACH OF THE LABEL'S NAME FIELD:
ex: $DIGIT1$, $DIGIT2$, ETC

16 3

WE NEED TO USE A “COUNT” VARIABLE: WHICH WILL COUNT IN INCREMENTS OF 1.

THE COUNT VARIABLE RUNS IN THE BACKGROUND, SO THERE IS NO NEED TO HAVE A
LABEL DISPLAYING THE COUNT VALUE.

BUT FOR REFERENCE WE COULD ADD A LABEL AND ASSIGN A $COUNT$ VARIABLE TO
THE NAME FIELD. WE'LL ALSO HAVE TO CREATE AN ENTRANCE RESETTING THE COUNT TO 0
ONCE THE USER NAVIGATES TO THE PAGE.

16 4

THE LOGIC BEHIND THE BUTTONS:

EVERYTIME A BUTTON GET'S PRESSED WE WANT THE $COUNT$ TO INCREASE BY 1 IN VALUE.
WHEN THE USER ENTERS THE PAGE THE COUNT IS AT 0. WITH THE USE OF CONDITIONALS
WE HAVE TO ENQUIRE AT WHICH NUMBER THE COUNT IS AT, BETWEEN THE NUMBERS 0-9.
THIS IS SO THAT WE CAN PLACE THE “CURRENT” DIGIT BEING PRESSED TO THE CORRESPONDING LABEL ACCORDING TO THE COUNT NUMBER.

WHEN CREATING THE FIRST BUTTON:(USE BELOW TABLE 1 AS REFERENCE)

16 5

FIRSTLY, ADD THE DEVICE COMMAND TO THE BUTTON, THEN A SET VARIABLE $DIGIT$ = 1 (VALUE).

16 6

LET'S ADD 1 x “IF” CONDITIONAL, FOLLOWING BY 9 x “ELSE IF” CONDITIONALS.
THIS WILL GIVE US A COUNT UP TO 10 DIGITS. WE WILL ADD 2 x SET VARIABLES TO EACH “IF” CONDITIONAL (REFERENCE TO THE TABLE 1).

16 7


PLEASE NOTE: EVERY SET VARIABLE HAS TWO EVALUATED STATES: “VALUE” OR “EXPRESSION”.
ALL THE VARIABLES INSIDE OF THE “IF” CONDITIONALS NEEDS TO BE SET AS “EXPRESSIONS”.
LASTLY, AFTER THE “END IF” WE'LL SET A VARIABLE (EXPRESSION) TO CHANGE THE $COUNT$ VALUE +1.
THIS WILL MAKE THE $COUNT$ VARIABLE GO UP IN VALUE IN INCREMENTS OF 1.

16 8


THE PROGRAMMING UP TO NOW, IF YOU HAD TO SYNC THE PANEL AND PRESS THE “1” BUTTON,10 TIMES, IT WILL FILL THE VARIABLES $DIGIT1$ TO $DIGIT10$. IF YOU PRESS THE “1” BUTTON
FOR THE 11TH TIME, THE $COUNT$ VARIABLE WILL CONTINUE COUNTING, BUT WE DON'T HAVE ANY CONDITIONALS PARSING THE INFO WHEN THE COUNT'S VALUE IS > 10.
AT THIS POINT, YOU'LL FIND YOURSELF AT A BIFURCATE. THE PROGRAMMING WILL VARY BETWEEN A TELECONFERENCING UNIT AND A VC UNIT. A VC UNIT DOESN'T ALWAYS HAVE AN AUTO DIAL FUNCTION. THAT'S WHERE YOU SHOULD CREATE A DIAL BUTTON THAT EXECUTES THE DIAL FUNCTION TO THE VC UNIT.
IN THIS CASE WE WILL SIMULATE A TELECONFERENCING UNIT AS THEY USUALLY DON'T HAVE ON SCREEN GUI'S, BUT WE WANT TO PROVIDE THE USER WITH FEEDBACK ON THE TOUCH PANEL.
AN EXAMPLE OF A TELECONFERENCING UNIT IS THE CLEARONE 880TA.
IT FUNCTIONS LIKE AN “OLD SCHOOL” TELEPHONE, SO IF YOU SEND THE 10TH DIGIT TO THE UNIT IT WILL AUTO DIAL. LET'S MAKE THE PROGRAMMING SIMULATE THE SAME.
WHEN THE $COUNT$ VARIABLE REACHES 9, WE CAN MAKE A MESSAGE APPEAR, INFORMING THE USER THAT THE UNIT IS NOW DIALLING THE NUMBER.

16 9

WE COULD ALSO MAKE THE VARIABLES $DIGIT1$ TO $DIGIT10$ RESET, AS WELL AS THE $COUNT$ VARIABLE. BECAUSE THE TELECONFERENCE UNIT FUNCTIONS THE WAY IT DOES, RESETTING THE VARIABLE AFTER THE $COUNT$ REACHES 9, IS BEST PRACTICE.
THESE VARIABLES YOU CAN EVALUATE AS VALUES.

16 10

THE VARIABLE $LASTDIAL1$ THROUGH TO $LASTDIAL10$ WILL BE STORED AS WE ARE NOT RESETTING THOSE VARIABLES. WE'LL INCORPORATE THESE INTO THE LAST DIALLED NUMBER BUTTON.

THIS BUTTON'S MACRO COULD BE DUPLICATED TO BUTTONS 2 TO 0, WITH ONE CHANGE TO EACH MACRO, AND THAT WOULD BE THE $DIGIT$ VARIABLE.

16 11

THE REDIAL BUTTON
IN THE CASE OF THE CLEARONE 880TA, THE UNIT HAS A REDIAL COMMAND, WHICH SIMPLIFIES OUR PROGRAMMING A LOT. WE WILL PROGRAM THE REDIAL BUTTON USING THE DEVICE'S COMMAND.
WE CAN MAKE A MESSAGE APPEAR WHEN THE SYSTEM CAN NOT IDENTIFY ANY VALUES IN THE VARIABLES $LASTDIAL1$ TO $LASTDIAL10$. BUT WE ONLY NEED TO ASK 1 OF THESE VARIABLES IF IT HAS A VALUE OR NOT.


WE CAN ACHIEVE THIS BY MEANS OF AN “IF” CONDITIONAL:

16 12

THEN WE ADD AN “ELSE” CONDITIONAL TO THE “IF”. IF THE $LASTDIAL1$ VARIABLE HAS A VALUE, WE CAN SEND THE TELECONFERENCING UNIT’S COMMAND, AND MAKE THE LABELS $DIGIT1$ TO $DIGIT10$ DISPLAY THE $LASTDIAL$ VALUES AS THE SYSTEM STORED IT. ALSO ADD A SET-VARIABLE FOR $COUNT$ AND SET IT TO A VALUE OF 0.

16 13

SYNC YOUR PANEL AND SEE IF EVERYTHING WORKS ACCORDINGLY.
DOUBLE CHECK ALL THE VARIABLES “EVALUATE AS” FIELD.

(PROGRAMMING EXAMPLE BY EUGENE DU BUISSON)

Copyright © 2017