RTXI / rtxi

Tutorials, FAQs, and more at http://rtxi.org/docs
GNU General Public License v3.0
53 stars 15 forks source link

I/O connections from loaded workspaces do not work #58

Closed sudorook closed 9 years ago

sudorook commented 9 years ago

(using RTXI @ a20cabfd1fda390860bef5f45edce4ae8c8c9b5e )

When loading a workspace with saved I/O connections, the connections don't work. All the UI elements are correct (i.e. the control panel has the correct channels enabled and the connector has the correct connections set), but no output appears when unpausing modules.

Take for example this setup: (Analog output is also connected to a hardware oscilloscope. The oscilloscope displays the same waveforms as the oscilloscope module)

screen1

Everything is working as it should. I then save the current workspace, close RTXI, and then reopen it. I load the workspace and I get this:

screen2

The control panel and connector are missing and the oscilloscope is in the wrong place. When I unpause the signal generator, I get no output on either the hardware oscilloscope or the oscilloscope module.

I then re-open the control panel and connector. (I also moved the oscilloscope).

screen3

All of the buttons that should be pressed are pressed, but there is no signal when I unpause the signal generator. This remains the same if I manually disable and then reenable the output channel and also disconnect the connection and reconnect it. No output.

I also cannot enable the channel via the "Enable Channel" button on the oscilloscope. When I click the "Enable Channel" and then "Apply", the UI reverts to showing the channel being disabled.

The only way I can regain I/O functionality is if I restart RTXI and manually open the modules, enable channels, edit connections, etc without loading a workspace. At no point in any of these steps do error messages appear in the terminal apart from the usual: QObject::connect: Incompatible sender/receiver arguments.