User Data

The User Data view provides user data information sent from the currently connected kit. User data can be transmitted via QDebug protocol to QTouch Analyzer.

The user data is displayed in three display formats : Hexadecimal (Hex), Decimal and Binary . User can select desired format from combo box Display Format .

Figure 1. User Data

Example code to transmit user data through QDebug protocol :

In the file main.c add the below code and include the QDebug.h header file.

char ch[3] = "abc";
for( ; ; ){
    touch_measure();
    
    if(GET_SENSOR_STATE(0) == 1) {
        ch[0]++;
        ch[1]++;
        ch[2]++;
        Transmit_QT_User_Data(&ch,3);
    }
}