Jump to content
  • 0

Trouble reading from USB-PDISO8 Isolated Inputs


ntallen

Question

We have a USB-PDISO8, which we hope to use to control a couple motors and read status from mechanical switches.

I am using libuldaq-1.2.1 under Ubuntu 22.04.3

I am testing with examples/DOut and DIn. DOut behaves as I would expect. The summary info is:

------------------------
Found 1 DAQ device(s)
  [0] USB-PDISO8: (0228D830)

Connecting to device USB-PDISO8 - please wait ...

USB-PDISO8 ready
    Function demonstrated: ulDOut()
    Port: AUXPORT0
    Port I/O type: DPIOT_OUT
-----------------------

and writing values out controls the relays as expected.

DIn, on the other hand, always reports 0. It's summary looks like this:

------------------------
Found 1 DAQ device(s)
  [0] USB-PDISO8: (0228D830)

Connecting to device USB-PDISO8 - please wait ...

USB-PDISO8 ready
    Function demonstrated: ulDIn()
    Port: AUXPORT0
    Port I/O type: DPIOT_OUT
------------------------

Note that it appears to be addressing the same port as DOut, with Port type: DPIOT_OUT, which doesn't sound like an input port. How is this supposed to work?

 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...