Closed sudorook closed 9 years ago
I've tested the DIO on multiple computers and it does work with the analogy drivers. I have approximately 6 DIO in use and actively working.
Let's start smaller - using the TTL module, set up the output to a DIO line and check that the scope shows an output?
and what is the input signal that the amplifier is looking for? Is it looking for a single rising edge?
The amp takes three inputs that are set to either 0 or 5 V. The combination of inputs that are 'off' and 'on' tells the amp which mode to use. I'll look through the manual to see how it differentiates between 0 and 5 V.
I don't think anyone is using the rig today. I'll update you as soon as I've tried those simple IO tests. On Jun 13, 2015 11:11 AM, "Yogi Patel" notifications@github.com wrote:
I've tested the DIO on multiple computers and it does work with the analogy drivers. I have approximately 6 DIO in use and actively working.
Let's start smaller - using the TTL module, set up the output to a DIO line and check that the scope shows an output?
and what is the input signal that the amplifier is looking for? Is it looking for a single rising edge?
— Reply to this email directly or view it on GitHub https://github.com/RTXI/rtxi/issues/72#issuecomment-111717843.
This should now be resolved. The issue was that the bit masks for the DIO were not being updated properly (errors in | and ^ operations). Please checkout the diofix branch and test your amplifier module.
The DIO fix works. The amplifier gets the command signal from the analogy driver.
On Wed, Jun 24, 2015 at 12:10 PM, Yogi Patel notifications@github.com wrote:
This should now be resolved. The issue was that the bit masks for the DIO were not being updated properly (errors in | and ^ operations). Please checkout the diofix https://github.com/RTXI/rtxi/tree/diofix branch and test your amplifier module.
— Reply to this email directly or view it on GitHub https://github.com/RTXI/rtxi/issues/72#issuecomment-114927600.
This statement isn't very well characterized on my part. It's more of an assumption based on troubleshooting several things.
What I'm trying to do: Use the digital lines to send a command signal to an amplifier.
What I've tested:
comedi_device
andni_device
), and the analogy driver is backported from the version currently at the head of the master branch. (By "backported", I mean I changed qt4-specific string commands to be qt3-compatible.)comedi
to compile with RTAI 4.1 (I last tried a few months ago).The module that send the command signal is
am-amp2400
. When using RTXI 1.4, I used the code in the v1.4 branch, and when using RTXI 2.0, I used the code on that module's master branch.What the command signal does is tell the amplifier what mode to use. When the signal doesn't work (i.e., when the analogy driver is in use), the amplifier does not change mode properly. Instead, the amplifier produces output inconsistent with expected values.
Given that I can get digital I/O working in v1.4 using comedi and ni driver and that essentially the same analogy driver will not work in v1.4 or v2.0, the likeliest conclusion is that there is some error with the way the analogy driver (probably something in the
analogy_device
files) is handling the digital signals.