| Hello, For purpose of an academic research, I need your inputs on implementing the following software so I can give better recommendations to a friend. The software will display images in frequencies ( Images are flickering between the image itself and a black screen).
When an image is shown a trigger will be sent to an external device, and another trigger will be sent when the image is no longer visible (black screen appears). The frequency of images is about 50Hz, meaning that for 20ms an image is shown, and for 20ms the black screen is shown. The synchronization between the code, the visual output of the images and trigger sent to device is very important, it should be as close as possible to real-time. (<5ms delay). (For the moment we are not bringing the latency of the external device in to account) As this is a research project, choices of the tech would highly impact the results. So far the options for the language are: - C - C# - Matlab (and external toolboxes or Matlab’s realtime workshop) - Python (and external libraries) 1 - Considering the performance, development time, availability of external libraries, etc. which of the above languages you choose to implement the system, and why? (Python and Matlab are preferable because ease of use and faster development, but doubtful about the required low latency) 2 - What would be your pick for the OS for such software? Which allows the software to have a high priority execution thread. An OS with low latency.
(Probably a RTOS, Real Time Operating System, is not needed) Any opinion is much appreciated. |