Skip to content

Receives a real-time stream of raw data and renders a sonogram

Notifications You must be signed in to change notification settings

RoxyFarhad/Real-Time-Sonogram

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 

Repository files navigation

Real-Time-Sonogram

Prerequisites

SDL2

Installing

macOS

  1. Install SDL2 using brew:
brew install sdl2
  1. Navigate to the directory that sdl2 was installed into. For example:
/usr/local/Cellar/sdl2/2.0.5
  1. Copy the contents of:
/usr/local/Cellar/sdl2/2.0.5/include/

into:

Real-Time-Sonogram/src/include
  1. Copy the directory:
/usr/local/Cellar/sdl2/2.0.5/lib/

into the directory:

Real-Time-Sonogram/src/lib

Try it out!

Change into the Real-Time-Sonogram/src directory and build the sonogram renderer and its corresponding server:

make all

Run the renderer & server, which will listen on port 11112:

./main

Run a test client (in a different terminal):

cd Real-Time-Sonogram/test
while true; do cat new_protoc_test.csv; done | nc localhost 11112

If everything went smoothly, you should see an image akin to the one at the top of this page.

The SDL2 installation instructions are based on: Setting up SDL2 on mac without Xcode

License

Copyright © 2019 Saveliy Yusufov

About

Receives a real-time stream of raw data and renders a sonogram

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 96.6%
  • Makefile 3.4%