Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkSerialCommunicationTest.cpp File Reference
#include <iostream>
#include "mitkSerialCommunication.h"

Go to the source code of this file.

Functions

int main ()
 SerialCommunicationTest - send and receive bytes over a com port. More...
 

Function Documentation

int main ( )

SerialCommunicationTest - send and receive bytes over a com port.

Documentation This is a simple test program for the mitk::SerialCommunication class It opens a com port, sends two strings and receives two messages with different timeout modes - first it waits indefinitely until all characters are received, next it waits not more than 6 seconds. you can use the windows program HpyerTerminal to receive text from this program and send text back to it.

Definition at line 31 of file mitkSerialCommunicationTest.cpp.

References mitk::SerialCommunication::BaudRate115200, mitk::SerialCommunication::COM7, mitk::SerialCommunication::DataBits8, mitk::SerialCommunication::Even, mitk::SerialCommunication::HardwareHandshakeOff, mitk::SerialCommunication::New(), and mitk::SerialCommunication::StopBits1.