My understanding, you have a script/program that collects data and displays this data on the screen. You would like to have the display on a desktop PC, but the data collection code executing on raspberry PI.
This is the beginning of industrial control and automation, which is a very wide topic.
Software Engineering
You may split the program into a client/server where you have one application acting as a server, accepting commands to control the motor.
There are a variety of approaches, a simple web server may be enough. In industrial systems, PLCs are used to interface controllers and sensors.
XPRA
xpra (docs) is a X11 forwarder that allows remote code to run against a local X Server, and allows for connect/disconnect like screen or tmux. It has better performance and ability to reconnect compared to ssh -X, but the principle is the same.
start a remote terminal
xpra start ssh:SERVERHOSTNAME --start=xterm
reattach to a remote display
xpra attach ssh:serverhostname
VLC
A simple solution is to have the desktop act as a full fledged remote display to the raspberry PI.