MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
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.
 

Function Documentation

◆ main()

int main ( void )

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 27 of file mitkSerialCommunicationTest.cpp.