Hi, here's my first post
I'm to develop a program (Linux) to fetch data from a sensor connected via RS232. I need to occasionally send commands and constantly receive data and compute it into a graphical frontend.
I'm implementing a multithreaded solution, creating one thread only for reading data from sensor via RS232.
NOTE: The OpenGL frontend is a different binary/application.
So I have 2 questions:
1 . How should I call the OpenGL frontend and send it the data? (create another process? How do I share the variables between 2 executables?)
2 . How do I send an entire string at once to the sensor? (I can't send it byte by byte since the sensor can't distinguish the order of them..)
Thanks a lot for your time Hope I can help someone out there too
PS - if anyone wants I'll be glad to send my code, it's about 200 lines..