Hi NI team,
We're having difficulty with USB-6501 and the software and hoping you can help. Our system has:
1. DELL Windows 10 Enterprise x64 computer
2. 2 NI USB-6501 in our test fixture hooked up to the Win10 computer via the included USB cables, and a relay driver IC on the DIOs
3. NI MAX Version 2022 Q3 with NI DAQmx
4. Python 3.10 and nidaqmx 0.6.5 from https://pypi.org/project/nidaqmx/
This page, https://www.ni.com/docs/en-US/bundle/usb-6501-feature/page/digital-output.html, says two things:
1. "The default configuration of the NI USB-6501 DIO ports is open collector, allowing 5 V operation, with an onboard 4.7 kΩ pull-up resistor."
2. "Additionally, you can configure the DIO ports as active drive. When configured as active drive, the total current sourced by all DO lines simultaneously should not exceed 65 mA."
This page, https://www.ni.com/docs/en-US/bundle/usb-6501-specs/page/specs.html, says:
Output driver type | Active drive (push-pull) or open collector (open-drain), software selectable |
Since Active Drive is configurable and software selectable, how does one toggle between both (we want to know how to change to either mode any time we need) Active Drive and Open Collector in:
1. NI MAX
a. So we can always do it manually, as needed. We don't see any option in the Test Panel. Right-clicking in the Device Tree has no Configure option.
2. Python nidadmx package
a. We're confused by the API. It doesn't tell you what the full line(s) of code should look like https://nidaqmx-python.readthedocs.io/en/latest/do_channel.html#nidaqmx._task_modules.channels.do_channel.DOChannel.do_output_drive_type
b. Can you provide a full code example to configure the DAQs' drive type? We tried this and it doesn't work (and we'll need all Ports and Lines later):