Closed thiagoburghi closed 6 months ago
Thanks for submitting this. Seems to be an issue with the connector not recognizing that DAQ devices are allowed to form cycles in the connection graph. Should be an easy fix.
Thanks for looking into this so quickly! We did a quick test and it's still not allowing us to close the loop between widget and DAQ device. The DAQ device is now able to form a closed loop with itself, though. It looks like the problem is that when connecting the widget to the DAQ, the check of whether there is a closed-loop is still the same, and since it starts with a non-DAQ component it won't allow the loop to be formed.
Added a better fix. Will check very soon to confirm it properly connects on our devices as well
Thanks for such quick fix! Now the connector panel shows the widget can be connected to DAQ device in a closed loop. However it seems like the fix introduces bugs in features dealing with data processing.
We first connected the PCIe output (ai7(, which is just receiving a square wave we generated in a physical waveform generator, to the input of a mimic-signal widget (cloned from Github). Then we connected the output of the mimic-signal widget to an input of the DAQ (ao0):
When we attempt to see the signal in the Oscilloscope, we don`t see our square wave (we see a zero signal instead)..
In addition, trying to record the data from the output of the mimic-signal doesn't work (the data file comes out empty).
This seems to be a bug because PCIe output is indeed a square wave: adding the PCIe output to Oscilloscope will make mimic-signal input disappear (it was previously zero), and show the actual signal at the output of the PCIe device:
We are wondering now if the closed-loop check is being done elsewhere in the code. Would there be a quick way to disable it?
Seems to be an issue introduced by modifying the cycle detection logic. A fix is underway and should be out later today.
This is now working fine, thanks!
Basic Information:
RTXI Version: 3.0.3 Installed from Live CD?: No (compiled from source) DAQ device: NI PCIe-6259
Error Description:
In the Connector panel: After connecting an output of a widget to an input of the DAQ, it becomes impossible to connect an output of the DAQ to an input of the same widget. Conversely, after connecting an output of the DAQ to an input of a widget, it becomes impossible to connect an output of the same widget to an input of the DAQ.
What happened? Clicking the "Connect" button will not add the connection that would have closed the loop between DAQ and widget.
What was supposed to happen? The connection should be added.
What steps will trigger the error? The error seems to happen with any widget, but it can be tested with the FIR filter widge that is readily available after installation: 1) Open RTXI 2) load the fir-window widget 3) open the Connector widget 4) Connect output of fir-window to input of the DAQ: connection is added 5) Attempt to connect output of the DAQ to fir-window: connection is not added
Terminal message:
(does not seem to indicate there is an error)