| 678 | } |
| 679 | |
| 680 | void FlowViewWindow::updateDataView() |
| 681 | { |
| 682 | |
| 683 | ui->txtCurr1->setText(Utility::formatNumber(currBytes[0])); |
| 684 | ui->txtCurr2->setText(Utility::formatNumber(currBytes[1])); |
| 685 | ui->txtCurr3->setText(Utility::formatNumber(currBytes[2])); |
| 686 | ui->txtCurr4->setText(Utility::formatNumber(currBytes[3])); |
| 687 | ui->txtCurr5->setText(Utility::formatNumber(currBytes[4])); |
| 688 | ui->txtCurr6->setText(Utility::formatNumber(currBytes[5])); |
| 689 | ui->txtCurr7->setText(Utility::formatNumber(currBytes[6])); |
| 690 | ui->txtCurr8->setText(Utility::formatNumber(currBytes[7])); |
| 691 | |
| 692 | ui->txtRef1->setText(Utility::formatNumber(refBytes[0])); |
| 693 | ui->txtRef2->setText(Utility::formatNumber(refBytes[1])); |
| 694 | ui->txtRef3->setText(Utility::formatNumber(refBytes[2])); |
| 695 | ui->txtRef4->setText(Utility::formatNumber(refBytes[3])); |
| 696 | ui->txtRef5->setText(Utility::formatNumber(refBytes[4])); |
| 697 | ui->txtRef6->setText(Utility::formatNumber(refBytes[5])); |
| 698 | ui->txtRef7->setText(Utility::formatNumber(refBytes[6])); |
| 699 | ui->txtRef8->setText(Utility::formatNumber(refBytes[7])); |
| 700 | |
| 701 | ui->flowView->setReference(refBytes, false); |
| 702 | ui->flowView->updateData(currBytes, true); |
| 703 | |
| 704 | for (int i = 0; i < 8; i++) |
| 705 | { |
| 706 | if (currBytes[i] == triggerValues[i]) |
| 707 | { |
| 708 | playbackActive = false; |
| 709 | playbackTimer->stop(); |
| 710 | break; //once any trigger is hit we can stop looking |
| 711 | } |
| 712 | } |
| 713 | |
| 714 | updateGraphLocation(); |
| 715 | |
| 716 | updateFrameLabel(); |
| 717 | |
| 718 | } |
| 719 | |
| 720 | void FlowViewWindow::updatePosition(bool forward) |
| 721 | { |
nothing calls this directly
no test coverage detected