Jump to content

Remi B

Members
  • Posts

    4
  • Joined

  • Last visited

Remi B's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. > You could try setting the 15 don't care lines to input with ulDConfigBit, but it may throw an error when you call ulDOutScan. Yup, this is exactly what I tried at first and the library threw an error. This is surprising to me, since port bits can be a mix of inputs and outputs for single bit read/writes, so that looks like a library limitation for output scans? What would happen if that check in the library was to be removed? https://github.com/mccdaq/uldaq/blob/24ba881e81ceeb24ff924852c7f56dda072d0282/src/DioDevice.cpp#L258
  2. Hi John, Sorry, I think I'm expressing myself inaccurately. I'm using the USBDIO32HS to test a device that has multiple bidirectional IOs. In this specific case, I'm trying to simulate a UART signal out of one of the USBDIO32HS pins, so I'm using the ulDOutScan function at ~100k samples/second, which works perfectly to simulate my signal. However, the function requires all 16 pins of the port to be configured as outputs, and I'd like the other 15 pins of the port to be inputs / high-impedance, to avoid conflicts with the other signals my device outputs. Is that possible? I know the library does not allow it, but is this limitation strictly from the library? Or the device itself cannot perform an output scan if some pins are inputs? In other words, is the library artificially limiting what the device can do, by enforcing that all pins of the port must be outputs, while the hardware doesn't necessarily need them to be?
  3. Is this a hardware or library limitation? I would be very happy if the function still scanned the whole port, but worked even if some pins are configured as inputs (and let them as inputs, without turning them into outputs).
  4. Hi, I'm using the C++ API with a USBDIO32HS on Ubuntu. I can successfully use `ulDOutScan` to output data to a whole port, but I need to do that on a single pin of that port, not the entire port, as I need the other pins as inputs. Is it possible to do a digital out scan to a single pin of a port, while keeping the other pins as inputs or High-Z? Thanks!
×
×
  • Create New...