阻抗功能
@ -17,34 +17,34 @@ Popup {
 | 
			
		||||
    function colorChange(index,color) {
 | 
			
		||||
 | 
			
		||||
        switch(index) {
 | 
			
		||||
        case 1:
 | 
			
		||||
        case 0:
 | 
			
		||||
            radius1.color=color
 | 
			
		||||
            break;
 | 
			
		||||
        case 2:
 | 
			
		||||
        case 1:
 | 
			
		||||
            radius2.color=color
 | 
			
		||||
            break;
 | 
			
		||||
        case 3:
 | 
			
		||||
        case 9:
 | 
			
		||||
            radius3.color=color
 | 
			
		||||
            break;
 | 
			
		||||
        case 4:
 | 
			
		||||
        case 10:
 | 
			
		||||
            radius4.color=color
 | 
			
		||||
            break;
 | 
			
		||||
        case 5:
 | 
			
		||||
        case 2:
 | 
			
		||||
            radius5.color=color
 | 
			
		||||
            break;
 | 
			
		||||
        case 6:
 | 
			
		||||
        case 3:
 | 
			
		||||
            radius6.color=color
 | 
			
		||||
            break;
 | 
			
		||||
        case 7:
 | 
			
		||||
        case 4:
 | 
			
		||||
            radius7.color=color
 | 
			
		||||
            break;
 | 
			
		||||
        case 8:
 | 
			
		||||
        case 5:
 | 
			
		||||
            radius8.color=color
 | 
			
		||||
            break;
 | 
			
		||||
        case 9:
 | 
			
		||||
        case 6:
 | 
			
		||||
            radius9.color=color
 | 
			
		||||
            break;
 | 
			
		||||
        case 10:
 | 
			
		||||
        case 7:
 | 
			
		||||
            radius10.color=color
 | 
			
		||||
            break;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@ -5,7 +5,7 @@ import BCIManager 2.0
 | 
			
		||||
Item {
 | 
			
		||||
    property int hitIndex: -1
 | 
			
		||||
    property bool bStimulate: false
 | 
			
		||||
    property int responseTime: 5
 | 
			
		||||
    property int responseTime: 6
 | 
			
		||||
    property bool bTest: false
 | 
			
		||||
    property bool bConnect: false;
 | 
			
		||||
    property var brainTrainForm: null
 | 
			
		||||
@ -17,105 +17,127 @@ Item {
 | 
			
		||||
    property int currentIndexTenHz: 0
 | 
			
		||||
    property var imageFilesTenHz:
 | 
			
		||||
         [
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L01.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L02.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L03.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L04.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L06.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L06.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L07.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L08.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L09.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L10.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L11.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L12.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L13.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L14.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L15.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L14.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L13.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L12.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L11.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L10.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L09.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L08.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L07.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L06.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L05.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L04.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L03.png",
 | 
			
		||||
             "qrc:/DependFile/Source/brainTrain/up/upper_stretch_L02.png"
 | 
			
		||||
            /*"qrc:/DependFile/Source/brainTrain/girl/girl_00.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_01.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_02.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_03.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_04.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_05.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_06.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_07.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_08.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_09.png",*/
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_0.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_1.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_2.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_3.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_4.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_5.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_6.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_7.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_8.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_9.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_10.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_11.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_12.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_13.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_14.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_15.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_16.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_17.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_18.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_19.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_20.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_21.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_22.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_23.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_24.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_25.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/up/upper_26.png"
 | 
			
		||||
         ]
 | 
			
		||||
 | 
			
		||||
    property int currentIndexTwelevHz: 0
 | 
			
		||||
    property var imageFilesTwelevHz:
 | 
			
		||||
         [
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L01.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L02.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L03.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L04.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L05.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L06.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L07.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L08.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L09.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L10.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L11.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L12.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L13.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L14.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L15.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L14.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L13.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L12.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L11.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L10.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L09.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L08.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L07.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L06.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L05.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L04.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L03.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/down/lower_stretch_L02.png"
 | 
			
		||||
            /*"qrc:/DependFile/Source/brainTrain/girl/girl_00.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_01.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_02.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_03.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_04.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_05.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_06.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_07.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_08.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_09.png"*/
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/down/lower_0.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/down/lower_1.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/down/lower_2.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/down/lower_3.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/down/lower_4.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/down/lower_5.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/down/lower_6.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/down/lower_7.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/down/lower_8.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/down/lower_9.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/down/lower_10.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/down/lower_11.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/down/lower_12.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/down/lower_13.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/down/lower_14.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/down/lower_15.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/down/lower_16.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/down/lower_17.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/down/lower_18.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/down/lower_19.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/down/lower_20.png"
 | 
			
		||||
         ]
 | 
			
		||||
 | 
			
		||||
    property int currentIndexFifteenHz: 0
 | 
			
		||||
    property var imageFilesFifteenHz:
 | 
			
		||||
         [
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR01.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR02.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR03.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR04.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR05.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR06.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR07.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR08.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR09.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR10.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR11.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR12.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR13.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR14.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR15.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR14.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR13.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR12.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR11.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR10.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR09.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR08.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR07.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR06.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR05.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR04.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR03.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/dpdown/limbs_stretch_LR02.png"
 | 
			
		||||
            /*"qrc:/DependFile/Source/brainTrain/girl/girl_00.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_01.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_02.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_03.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_04.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_05.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_06.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_07.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_08.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/girl/girl_09.png"*/
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_01.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_02.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_03.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_04.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_05.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_06.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_07.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_08.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_09.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_10.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_11.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_12.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_13.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_14.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_15.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_16.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_17.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_18.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_19.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_20.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_21.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_22.png",
 | 
			
		||||
            "qrc:/DependFile/Source/brainTrain/test/updown/UL_23.png"
 | 
			
		||||
         ];
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    function startStimulate()
 | 
			
		||||
    {
 | 
			
		||||
        if(stimulateTimer.running)
 | 
			
		||||
        {
 | 
			
		||||
            stimulateTimer.stop()
 | 
			
		||||
        }
 | 
			
		||||
        stimulateTimer.start();
 | 
			
		||||
        animationTenHz.start();
 | 
			
		||||
        animationTwelveHz.start();
 | 
			
		||||
        animationFifteenHz.start();
 | 
			
		||||
@ -129,6 +151,10 @@ Item {
 | 
			
		||||
 | 
			
		||||
    function stopStimulate()
 | 
			
		||||
    {
 | 
			
		||||
        if(stimulateTimer.running)
 | 
			
		||||
        {
 | 
			
		||||
            stimulateTimer.stop()
 | 
			
		||||
        }
 | 
			
		||||
        if(animationTenHz.running)
 | 
			
		||||
        {
 | 
			
		||||
            animationTenHz.stop();
 | 
			
		||||
@ -179,6 +205,19 @@ Item {
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    Timer {
 | 
			
		||||
        id: stimulateTimer
 | 
			
		||||
        interval: 10*1000;
 | 
			
		||||
        repeat: false
 | 
			
		||||
        onTriggered: {
 | 
			
		||||
            animationTip.start()
 | 
			
		||||
            if(bStimulate)
 | 
			
		||||
            {
 | 
			
		||||
                stimulateTimer.start();
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    Timer {
 | 
			
		||||
        id: connectTimer
 | 
			
		||||
@ -198,23 +237,27 @@ Item {
 | 
			
		||||
        {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
        if(index === "0")
 | 
			
		||||
        if(stimulateTimer.running)
 | 
			
		||||
        {
 | 
			
		||||
            stimulateTimer.stop()
 | 
			
		||||
        }
 | 
			
		||||
        if(index === "2")
 | 
			
		||||
        {
 | 
			
		||||
            ssvepTenHzTimer.start();
 | 
			
		||||
            hitTimer.start();
 | 
			
		||||
            bci.startTrain(0,responseTime-1);
 | 
			
		||||
            bci.startTrain(0,responseTime-2);
 | 
			
		||||
             hitIndex = 0;
 | 
			
		||||
        }else if(index === "1")
 | 
			
		||||
        }else if(index === "0")
 | 
			
		||||
        {
 | 
			
		||||
            ssvepTwelveHzTimer.start();
 | 
			
		||||
            hitTimer.start();
 | 
			
		||||
            bci.startTrain(1,responseTime-1);
 | 
			
		||||
            bci.startTrain(1,responseTime-2);
 | 
			
		||||
            hitIndex = 1;
 | 
			
		||||
        }else if(index === "2")
 | 
			
		||||
        }else if(index === "1")
 | 
			
		||||
        {
 | 
			
		||||
            ssvepFifteenHzTimer.start();
 | 
			
		||||
            hitTimer.start();
 | 
			
		||||
            bci.startTrain(2,responseTime-1);
 | 
			
		||||
            bci.startTrain(2,responseTime-2);
 | 
			
		||||
            hitIndex = 2;
 | 
			
		||||
        }else
 | 
			
		||||
        {
 | 
			
		||||
@ -268,6 +311,26 @@ Item {
 | 
			
		||||
            console.info("Client received: " + cmd);
 | 
			
		||||
            if(cmd !== "0" && cmd !== "1" && cmd !== "2")
 | 
			
		||||
            {
 | 
			
		||||
                //判断是不是阻抗数据
 | 
			
		||||
                var parts = cmd.split(":");
 | 
			
		||||
                //通道序列号
 | 
			
		||||
                var channels = [0,1,2,3,4,5,6,7]
 | 
			
		||||
                for(var i=0;i<channels.length;i++)
 | 
			
		||||
                {
 | 
			
		||||
                    if(channels[i] < parts.length)
 | 
			
		||||
                    {
 | 
			
		||||
                        if(Number(parts[channels[i]]) < popimpedance.minImpedance)
 | 
			
		||||
                        {
 | 
			
		||||
                             popimpedance.colorChange(i,green)
 | 
			
		||||
                        }else if(Number(parts[channels[i]]) > popimpedance.maxImpedance)
 | 
			
		||||
                        {
 | 
			
		||||
                            popimpedance.colorChange(i,red)
 | 
			
		||||
                        }else
 | 
			
		||||
                        {
 | 
			
		||||
                            popimpedance.colorChange(i,yellow)
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
            ssvepHit(cmd);
 | 
			
		||||
@ -312,6 +375,39 @@ Item {
 | 
			
		||||
        id:bci;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    Rectangle {
 | 
			
		||||
        width: 300;
 | 
			
		||||
        height: 60;
 | 
			
		||||
        anchors.centerIn: parent
 | 
			
		||||
        opacity: 0
 | 
			
		||||
        color:"#F9FAFD";
 | 
			
		||||
        border.width: 1
 | 
			
		||||
        border.color: "#ADCFDD"
 | 
			
		||||
        radius: 20;
 | 
			
		||||
        z:1
 | 
			
		||||
        Text {
 | 
			
		||||
            text: qsTr("请集中注意力!")
 | 
			
		||||
            width: 144;
 | 
			
		||||
            height: 46;
 | 
			
		||||
            anchors.top: parent.top;
 | 
			
		||||
            anchors.topMargin: 6;
 | 
			
		||||
            anchors.left: parent.left;
 | 
			
		||||
            anchors.leftMargin: 31;
 | 
			
		||||
            color: "#10275A";
 | 
			
		||||
            horizontalAlignment: Text.AlignLeft
 | 
			
		||||
            verticalAlignment: Text.AlignVCenter
 | 
			
		||||
            font.pixelSize: 36;
 | 
			
		||||
            font.family: "Medium";
 | 
			
		||||
            font.bold: true;
 | 
			
		||||
        }
 | 
			
		||||
        SequentialAnimation on opacity {
 | 
			
		||||
            id: animationTip
 | 
			
		||||
            running: false;
 | 
			
		||||
            NumberAnimation { to: 1; duration: 0 }
 | 
			
		||||
            NumberAnimation { to: 0; duration: 2000 }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    Rectangle{
 | 
			
		||||
            anchors.top: parent.top
 | 
			
		||||
            anchors.topMargin: 42
 | 
			
		||||
@ -567,13 +663,14 @@ Item {
 | 
			
		||||
                            }
 | 
			
		||||
                        }
 | 
			
		||||
                   }
 | 
			
		||||
                   Item {
 | 
			
		||||
                   Rectangle {
 | 
			
		||||
                       width: 520;
 | 
			
		||||
                       height: 280;
 | 
			
		||||
                       anchors.bottom: parent.bottom
 | 
			
		||||
                       radius:20
 | 
			
		||||
                       Timer {
 | 
			
		||||
                           id: ssvepTwelveHzTimer
 | 
			
		||||
                           interval: 30;
 | 
			
		||||
                           interval: 70;
 | 
			
		||||
                           repeat: true
 | 
			
		||||
                           onTriggered: {
 | 
			
		||||
                               currentIndexTwelevHz = (currentIndexTwelevHz + 1) % imageFilesTwelevHz.length;
 | 
			
		||||
@ -707,7 +804,7 @@ Item {
 | 
			
		||||
                       anchors.bottom: parent.bottom
 | 
			
		||||
                       Timer {
 | 
			
		||||
                           id: ssvepFifteenHzTimer
 | 
			
		||||
                           interval: 30;
 | 
			
		||||
                           interval: 70;
 | 
			
		||||
                           repeat: true
 | 
			
		||||
                           onTriggered: {
 | 
			
		||||
                               currentIndexFifteenHz = (currentIndexFifteenHz + 1) % imageFilesFifteenHz.length;
 | 
			
		||||
@ -936,14 +1033,34 @@ Item {
 | 
			
		||||
                anchors.fill: parent
 | 
			
		||||
                onClicked: {
 | 
			
		||||
                    popimpedance.show()
 | 
			
		||||
                    popimpedance.colorChange(2,green)
 | 
			
		||||
                    popimpedance.colorChange(3,green)
 | 
			
		||||
                    popimpedance.colorChange(9,green)
 | 
			
		||||
                    popimpedance.colorChange(10,green)
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
            }
 | 
			
		||||
    }
 | 
			
		||||
    PopImpedance{
 | 
			
		||||
        id:popimpedance
 | 
			
		||||
        property int maxImpedance: 6
 | 
			
		||||
        property int minImpedance: 3
 | 
			
		||||
        Timer {
 | 
			
		||||
            id: impedanceTimer
 | 
			
		||||
            interval: 1000
 | 
			
		||||
            repeat: true
 | 
			
		||||
            onTriggered: {
 | 
			
		||||
                clientSocket.writeBytes(getIntArr("0"));
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        onVisibleChanged:
 | 
			
		||||
        {
 | 
			
		||||
            if(visible)
 | 
			
		||||
            {
 | 
			
		||||
                impedanceTimer.start();
 | 
			
		||||
            }else
 | 
			
		||||
            {
 | 
			
		||||
                impedanceTimer.stop();
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
		 After Width: | Height: | Size: 87 KiB  | 
| 
		 After Width: | Height: | Size: 88 KiB  | 
| 
		 After Width: | Height: | Size: 87 KiB  | 
| 
		 After Width: | Height: | Size: 87 KiB  | 
| 
		 After Width: | Height: | Size: 88 KiB  | 
| 
		 After Width: | Height: | Size: 88 KiB  | 
| 
		 After Width: | Height: | Size: 87 KiB  | 
| 
		 After Width: | Height: | Size: 87 KiB  | 
| 
		 After Width: | Height: | Size: 88 KiB  | 
| 
		 After Width: | Height: | Size: 87 KiB  | 
| 
		 After Width: | Height: | Size: 93 KiB  | 
| 
		 After Width: | Height: | Size: 97 KiB  | 
| 
		 After Width: | Height: | Size: 102 KiB  | 
| 
		 After Width: | Height: | Size: 100 KiB  | 
| 
		 After Width: | Height: | Size: 100 KiB  | 
| 
		 After Width: | Height: | Size: 101 KiB  | 
| 
		 After Width: | Height: | Size: 101 KiB  | 
| 
		 After Width: | Height: | Size: 100 KiB  | 
| 
		 After Width: | Height: | Size: 99 KiB  | 
| 
		 After Width: | Height: | Size: 96 KiB  | 
| 
		 After Width: | Height: | Size: 95 KiB  | 
| 
		 After Width: | Height: | Size: 92 KiB  | 
| 
		 After Width: | Height: | Size: 102 KiB  | 
| 
		 After Width: | Height: | Size: 93 KiB  | 
| 
		 After Width: | Height: | Size: 104 KiB  | 
| 
		 After Width: | Height: | Size: 107 KiB  | 
| 
		 After Width: | Height: | Size: 102 KiB  | 
| 
		 After Width: | Height: | Size: 105 KiB  | 
| 
		 After Width: | Height: | Size: 106 KiB  | 
| 
		 After Width: | Height: | Size: 105 KiB  | 
| 
		 After Width: | Height: | Size: 104 KiB  | 
| 
		 After Width: | Height: | Size: 78 KiB  | 
| 
		 After Width: | Height: | Size: 74 KiB  | 
| 
		 After Width: | Height: | Size: 86 KiB  | 
| 
		 After Width: | Height: | Size: 83 KiB  | 
| 
		 After Width: | Height: | Size: 79 KiB  | 
| 
		 After Width: | Height: | Size: 72 KiB  | 
| 
		 After Width: | Height: | Size: 70 KiB  | 
| 
		 After Width: | Height: | Size: 70 KiB  | 
| 
		 After Width: | Height: | Size: 69 KiB  | 
| 
		 After Width: | Height: | Size: 71 KiB  | 
| 
		 After Width: | Height: | Size: 79 KiB  | 
| 
		 After Width: | Height: | Size: 86 KiB  | 
| 
		 After Width: | Height: | Size: 73 KiB  | 
| 
		 After Width: | Height: | Size: 93 KiB  | 
| 
		 After Width: | Height: | Size: 92 KiB  | 
| 
		 After Width: | Height: | Size: 93 KiB  | 
| 
		 After Width: | Height: | Size: 92 KiB  | 
| 
		 After Width: | Height: | Size: 90 KiB  | 
| 
		 After Width: | Height: | Size: 86 KiB  | 
| 
		 After Width: | Height: | Size: 83 KiB  | 
| 
		 After Width: | Height: | Size: 73 KiB  | 
| 
		 After Width: | Height: | Size: 73 KiB  | 
| 
		 After Width: | Height: | Size: 76 KiB  | 
| 
		 After Width: | Height: | Size: 77 KiB  | 
| 
		 After Width: | Height: | Size: 79 KiB  | 
| 
		 After Width: | Height: | Size: 81 KiB  | 
| 
		 After Width: | Height: | Size: 84 KiB  | 
| 
		 After Width: | Height: | Size: 115 KiB  | 
| 
		 After Width: | Height: | Size: 115 KiB  | 
| 
		 After Width: | Height: | Size: 115 KiB  | 
| 
		 After Width: | Height: | Size: 115 KiB  | 
| 
		 After Width: | Height: | Size: 115 KiB  | 
| 
		 After Width: | Height: | Size: 115 KiB  | 
| 
		 After Width: | Height: | Size: 114 KiB  | 
| 
		 After Width: | Height: | Size: 114 KiB  | 
| 
		 After Width: | Height: | Size: 112 KiB  | 
| 
		 After Width: | Height: | Size: 111 KiB  | 
| 
		 After Width: | Height: | Size: 110 KiB  | 
| 
		 After Width: | Height: | Size: 110 KiB  | 
| 
		 After Width: | Height: | Size: 110 KiB  | 
| 
		 After Width: | Height: | Size: 109 KiB  | 
| 
		 After Width: | Height: | Size: 111 KiB  | 
| 
		 After Width: | Height: | Size: 112 KiB  | 
| 
		 After Width: | Height: | Size: 106 KiB  | 
| 
		 After Width: | Height: | Size: 109 KiB  | 
| 
		 After Width: | Height: | Size: 111 KiB  | 
| 
		 After Width: | Height: | Size: 113 KiB  | 
| 
		 After Width: | Height: | Size: 113 KiB  | 
| 
		 After Width: | Height: | Size: 114 KiB  | 
| 
		 After Width: | Height: | Size: 115 KiB  | 
| 
		 After Width: | Height: | Size: 114 KiB  | 
| 
		 After Width: | Height: | Size: 114 KiB  | 
| 
		 After Width: | Height: | Size: 110 KiB  | 
| 
		 After Width: | Height: | Size: 110 KiB  | 
| 
		 After Width: | Height: | Size: 109 KiB  | 
| 
		 After Width: | Height: | Size: 111 KiB  | 
| 
		 After Width: | Height: | Size: 112 KiB  | 
| 
		 After Width: | Height: | Size: 106 KiB  | 
| 
		 After Width: | Height: | Size: 109 KiB  | 
| 
		 After Width: | Height: | Size: 111 KiB  | 
| 
		 After Width: | Height: | Size: 113 KiB  | 
| 
		 After Width: | Height: | Size: 113 KiB  | 
| 
		 After Width: | Height: | Size: 114 KiB  | 
| 
		 After Width: | Height: | Size: 114 KiB  | 
| 
		 After Width: | Height: | Size: 115 KiB  | 
| 
		 After Width: | Height: | Size: 114 KiB  | 
| 
		 After Width: | Height: | Size: 115 KiB  |