--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>MainWindow</class>
+ <widget class="QMainWindow" name="MainWindow">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>612</width>
+ <height>585</height>
+ </rect>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="windowTitle">
+ <string>MainWindow</string>
+ </property>
+ <widget class="QWidget" name="centralWidget">
+ <widget class="QLabel" name="label">
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>10</y>
+ <width>421</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property name="font">
+ <font>
+ <pointsize>14</pointsize>
+ <weight>75</weight>
+ <bold>true</bold>
+ </font>
+ </property>
+ <property name="text">
+ <string>Humusoft MF624 DAQ input/output interface</string>
+ </property>
+ </widget>
+ <widget class="QGroupBox" name="groupBox">
+ <property name="geometry">
+ <rect>
+ <x>11</x>
+ <y>41</y>
+ <width>591</width>
+ <height>70</height>
+ </rect>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>16777213</width>
+ <height>70</height>
+ </size>
+ </property>
+ <property name="title">
+ <string>DIN</string>
+ </property>
+ <widget class="QWidget" name="horizontalLayoutWidget">
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>30</y>
+ <width>574</width>
+ <height>31</height>
+ </rect>
+ </property>
+ <layout class="QHBoxLayout" name="horizontalLayout">
+ <item>
+ <widget class="QCheckBox" name="checkBox_8">
+ <property name="text">
+ <string>7</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="checkBox_7">
+ <property name="text">
+ <string>6</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="checkBox_6">
+ <property name="text">
+ <string>5</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="checkBox_5">
+ <property name="text">
+ <string>4</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="checkBox_4">
+ <property name="text">
+ <string>3</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="checkBox_3">
+ <property name="text">
+ <string>2</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="checkBox_2">
+ <property name="text">
+ <string>1</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="checkBox">
+ <property name="text">
+ <string>0</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </widget>
+ <widget class="QGroupBox" name="groupBox_2">
+ <property name="geometry">
+ <rect>
+ <x>11</x>
+ <y>115</y>
+ <width>591</width>
+ <height>70</height>
+ </rect>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>16777215</width>
+ <height>70</height>
+ </size>
+ </property>
+ <property name="title">
+ <string>DOUT</string>
+ </property>
+ <widget class="QWidget" name="horizontalLayoutWidget_2">
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>40</y>
+ <width>571</width>
+ <height>24</height>
+ </rect>
+ </property>
+ <layout class="QHBoxLayout" name="horizontalLayout_2">
+ <item>
+ <widget class="QCheckBox" name="checkBox_16">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>7</string>
+ </property>
+ <property name="checkable">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="checkBox_15">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>6</string>
+ </property>
+ <property name="checkable">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="checkBox_14">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>5</string>
+ </property>
+ <property name="checkable">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="checkBox_13">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>4</string>
+ </property>
+ <property name="checkable">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="checkBox_12">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>3</string>
+ </property>
+ <property name="checkable">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="checkBox_11">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>2</string>
+ </property>
+ <property name="checkable">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="checkBox_10">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>1</string>
+ </property>
+ <property name="checkable">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="checkBox_9">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>0</string>
+ </property>
+ <property name="checkable">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </widget>
+ <widget class="QGroupBox" name="groupBox_3">
+ <property name="geometry">
+ <rect>
+ <x>11</x>
+ <y>189</y>
+ <width>281</width>
+ <height>331</height>
+ </rect>
+ </property>
+ <property name="title">
+ <string>ADC</string>
+ </property>
+ <widget class="QWidget" name="layoutWidget">
+ <property name="geometry">
+ <rect>
+ <x>20</x>
+ <y>30</y>
+ <width>241</width>
+ <height>286</height>
+ </rect>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout_2">
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_3">
+ <item>
+ <widget class="QSlider" name="horizontalSlider">
+ <property name="minimum">
+ <number>-100</number>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ <property name="singleStep">
+ <number>1</number>
+ </property>
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QSpinBox" name="spinBox">
+ <property name="minimum">
+ <number>-100</number>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_5">
+ <item>
+ <widget class="QSlider" name="horizontalSlider_2">
+ <property name="minimum">
+ <number>-100</number>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QSpinBox" name="spinBox_2">
+ <property name="minimum">
+ <number>-100</number>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_6">
+ <item>
+ <widget class="QSlider" name="horizontalSlider_3">
+ <property name="minimum">
+ <number>-100</number>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QSpinBox" name="spinBox_3">
+ <property name="minimum">
+ <number>-100</number>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_7">
+ <item>
+ <widget class="QSlider" name="horizontalSlider_4">
+ <property name="minimum">
+ <number>-100</number>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QSpinBox" name="spinBox_4">
+ <property name="minimum">
+ <number>-100</number>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_8">
+ <item>
+ <widget class="QSlider" name="horizontalSlider_5">
+ <property name="minimum">
+ <number>-100</number>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QSpinBox" name="spinBox_5">
+ <property name="minimum">
+ <number>-100</number>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_9">
+ <item>
+ <widget class="QSlider" name="horizontalSlider_6">
+ <property name="minimum">
+ <number>-100</number>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QSpinBox" name="spinBox_6">
+ <property name="minimum">
+ <number>-100</number>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_10">
+ <item>
+ <widget class="QSlider" name="horizontalSlider_7">
+ <property name="minimum">
+ <number>-100</number>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QSpinBox" name="spinBox_7">
+ <property name="minimum">
+ <number>-100</number>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_11">
+ <item>
+ <widget class="QSlider" name="horizontalSlider_8">
+ <property name="minimum">
+ <number>-100</number>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QSpinBox" name="spinBox_8">
+ <property name="minimum">
+ <number>-100</number>
+ </property>
+ <property name="maximum">
+ <number>100</number>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ </widget>
+ <widget class="QGroupBox" name="groupBox_4">
+ <property name="geometry">
+ <rect>
+ <x>300</x>
+ <y>190</y>
+ <width>301</width>
+ <height>331</height>
+ </rect>
+ </property>
+ <property name="title">
+ <string>DAC</string>
+ </property>
+ </widget>
+ </widget>
+ <widget class="QMenuBar" name="menuBar">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>612</width>
+ <height>28</height>
+ </rect>
+ </property>
+ </widget>
+ <widget class="QToolBar" name="mainToolBar">
+ <attribute name="toolBarArea">
+ <enum>TopToolBarArea</enum>
+ </attribute>
+ <attribute name="toolBarBreak">
+ <bool>false</bool>
+ </attribute>
+ </widget>
+ <widget class="QStatusBar" name="statusBar"/>
+ </widget>
+ <layoutdefault spacing="6" margin="11"/>
+ <resources/>
+ <connections>
+ <connection>
+ <sender>horizontalSlider</sender>
+ <signal>valueChanged(int)</signal>
+ <receiver>spinBox</receiver>
+ <slot>setValue(int)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>437</x>
+ <y>341</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>554</x>
+ <y>341</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>horizontalSlider_2</sender>
+ <signal>valueChanged(int)</signal>
+ <receiver>spinBox_2</receiver>
+ <slot>setValue(int)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>113</x>
+ <y>348</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>234</x>
+ <y>348</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>horizontalSlider_3</sender>
+ <signal>valueChanged(int)</signal>
+ <receiver>spinBox_3</receiver>
+ <slot>setValue(int)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>113</x>
+ <y>384</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>234</x>
+ <y>384</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>horizontalSlider_4</sender>
+ <signal>valueChanged(int)</signal>
+ <receiver>spinBox_4</receiver>
+ <slot>setValue(int)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>113</x>
+ <y>420</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>234</x>
+ <y>420</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>horizontalSlider_5</sender>
+ <signal>valueChanged(int)</signal>
+ <receiver>spinBox_5</receiver>
+ <slot>setValue(int)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>113</x>
+ <y>456</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>234</x>
+ <y>456</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>horizontalSlider_6</sender>
+ <signal>valueChanged(int)</signal>
+ <receiver>spinBox_6</receiver>
+ <slot>setValue(int)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>113</x>
+ <y>492</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>234</x>
+ <y>492</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>horizontalSlider_7</sender>
+ <signal>valueChanged(int)</signal>
+ <receiver>spinBox_7</receiver>
+ <slot>setValue(int)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>113</x>
+ <y>528</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>234</x>
+ <y>528</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>horizontalSlider_8</sender>
+ <signal>valueChanged(int)</signal>
+ <receiver>spinBox_8</receiver>
+ <slot>setValue(int)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>113</x>
+ <y>564</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>180</x>
+ <y>569</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>spinBox</sender>
+ <signal>valueChanged(int)</signal>
+ <receiver>horizontalSlider</receiver>
+ <slot>setValue(int)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>234</x>
+ <y>312</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>113</x>
+ <y>312</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>spinBox_2</sender>
+ <signal>valueChanged(int)</signal>
+ <receiver>horizontalSlider_2</receiver>
+ <slot>setValue(int)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>234</x>
+ <y>348</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>113</x>
+ <y>348</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>spinBox_3</sender>
+ <signal>valueChanged(int)</signal>
+ <receiver>horizontalSlider_3</receiver>
+ <slot>setValue(int)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>234</x>
+ <y>384</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>113</x>
+ <y>384</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>spinBox_4</sender>
+ <signal>valueChanged(int)</signal>
+ <receiver>horizontalSlider_4</receiver>
+ <slot>setValue(int)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>234</x>
+ <y>420</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>113</x>
+ <y>420</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>spinBox_5</sender>
+ <signal>valueChanged(int)</signal>
+ <receiver>horizontalSlider_5</receiver>
+ <slot>setValue(int)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>234</x>
+ <y>456</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>113</x>
+ <y>456</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>spinBox_6</sender>
+ <signal>valueChanged(int)</signal>
+ <receiver>horizontalSlider_6</receiver>
+ <slot>setValue(int)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>234</x>
+ <y>492</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>113</x>
+ <y>492</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>spinBox_7</sender>
+ <signal>valueChanged(int)</signal>
+ <receiver>horizontalSlider_7</receiver>
+ <slot>setValue(int)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>234</x>
+ <y>528</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>113</x>
+ <y>528</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>spinBox_8</sender>
+ <signal>valueChanged(int)</signal>
+ <receiver>horizontalSlider_8</receiver>
+ <slot>setValue(int)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>180</x>
+ <y>569</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>113</x>
+ <y>564</y>
+ </hint>
+ </hints>
+ </connection>
+ </connections>
+</ui>
--- /dev/null
+#include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <netdb.h>
+#include <stdio.h>
+#include "socket_thread.h"
+#include "mf624_io_status.h"
+#include "mainwindow.h"
+#include "ui_mainwindow.h"
+extern mf624_io_status_t mf624_io_status;
+
+
+socket_thread::socket_thread(QObject *parent)
+: QThread(parent)
+{
+
+}
+
+void socket_thread::socket_send(const char* str, int val)
+{
+ int n;
+ char buffer[256];
+ sprintf(buffer, str, val);
+
+ n = ::write(sockfd, buffer, strlen(buffer));
+ if (n < 0) {
+ perror("write()");
+ }
+ printf(str, val);
+}
+
+
+void socket_thread::run()
+{
+#define STRING_BUFF_SIZE 256
+ qDebug() << "Executing in new independant thread, GUI is NOT blocked";
+
+ int portno;
+ int n;
+ int status;
+ struct sockaddr_in serv_addr;
+ struct hostent *server;
+ char read_buffer[STRING_BUFF_SIZE];
+ char reg[STRING_BUFF_SIZE+1];
+ int val;
+ char buffer[256];
+
+ //if (argc < 3) {
+ // fprintf(stderr,"usage %s hostname port\n", argv[0]);
+ // exit(0);
+ //}
+ //portno = atoi(argv[2]);
+ portno = atoi("55555");
+
+ sockfd = ::socket(AF_INET, SOCK_STREAM, 0);
+ if (sockfd < 0) {
+ perror("socket()");
+ exit(0);
+ }
+
+ //server = gethostbyname(argv[1]);
+ server = ::gethostbyname("127.0.0.1");
+ if (server == NULL) {
+ perror("gethostbyname()");
+ exit(0);
+ }
+
+ memset((char *) &serv_addr, '\0', sizeof(serv_addr));
+ serv_addr.sin_family = AF_INET;
+ bcopy((char *)server->h_addr,
+ (char *)&serv_addr.sin_addr.s_addr,
+ server->h_length);
+
+ serv_addr.sin_port = htons(portno);
+ if (::connect(sockfd, (struct sockaddr *) &serv_addr, sizeof(serv_addr)) < 0) {
+ perror("connect()");
+ }
+
+
+ memset(buffer, '\0', 256);
+ while(1) {
+ n = read(sockfd, buffer, 255);
+ if (n < 0) {
+ perror("read()");
+ }
+
+ status = sscanf(buffer, "%[A-Z]=%u", reg, &val);
+ if (status == 2) {
+ if(!strcmp(reg, "DOUT")) {
+ mf624_io_status.DOUT = val;
+ }
+ }
+
+ ((MainWindow*) parent())->ui->checkBox_9->setChecked(false);
+ ((MainWindow*) parent())->ui->checkBox_10->setChecked(false);
+ ((MainWindow*) parent())->ui->checkBox_11->setChecked(false);
+ ((MainWindow*) parent())->ui->checkBox_12->setChecked(false);
+ ((MainWindow*) parent())->ui->checkBox_13->setChecked(false);
+ ((MainWindow*) parent())->ui->checkBox_14->setChecked(false);
+ ((MainWindow*) parent())->ui->checkBox_15->setChecked(false);
+ ((MainWindow*) parent())->ui->checkBox_16->setChecked(false);
+ if (mf624_io_status.DOUT & (1 << 0)) {
+ ((MainWindow*) parent())->ui->checkBox_9->setChecked(true);
+ }
+ if (mf624_io_status.DOUT & (1 << 1)) {
+ ((MainWindow*) parent())->ui->checkBox_10->setChecked(true);
+ }
+ if (mf624_io_status.DOUT & (1 << 2)) {
+ ((MainWindow*) parent())->ui->checkBox_11->setChecked(true);
+ }
+ if (mf624_io_status.DOUT & (1 << 3)) {
+ ((MainWindow*) parent())->ui->checkBox_12->setChecked(true);
+ }
+ if (mf624_io_status.DOUT & (1 << 4)) {
+ ((MainWindow*) parent())->ui->checkBox_13->setChecked(true);
+ }
+ if (mf624_io_status.DOUT & (1 << 5)) {
+ ((MainWindow*) parent())->ui->checkBox_14->setChecked(true);
+ }
+ if (mf624_io_status.DOUT & (1 << 6)) {
+ ((MainWindow*) parent())->ui->checkBox_15->setChecked(true);
+ }
+ if (mf624_io_status.DOUT & (1 << 7)) {
+ ((MainWindow*) parent())->ui->checkBox_16->setChecked(true);
+ }
+
+ //printf("%s\n", buffer);
+ }
+ //close(sockfd);
+
+ exec();
+}
+