I am driving a Tic T249 stepper motor controller via a Ruby script on a Windows machine, and using the conventions outlined in https://www.pololu.com/docs/0J71/12.2. I’m having no issue interacting with the controller (either sending commands or retrieving status). My issue, however, comes from the fact that I am polling the controller at a relatively high rate for its status (about 10x a second), and this causes a command line window to launch and then close each time I make a call to ticcmd. The effect is that a command line window flashes on the screen 10 times a second, taking focus away from the gui that wraps my Ruby script. This is rendering the gui unusable to my end user, who needs to be able to interact with it.
I’m aware that this may just be a fact of life for how Open3/Ruby works, but I must not be the only one who needs to send commands to my T249 often without having a command line launching each time, because it impedes the usability of my program. Does anyone have an idea for a workaround on this problem? Note that I cannot use a language other than Ruby, and I’ve already attempted to wrap ticcmd in other Ruby functions for launching processes (backtick, spawn, %x) instead of open3.