Test and Measurement Forum

ADC-24 SDK: Get Single Digital Value

Post any questions you may have about our current range of USB data loggers

ADC-24 SDK: Get Single Digital Value

Postby liber » Thu Dec 17, 2015 3:21 pm

Hi, I have a question about the ADC SDK:

I've been able to successfully read analog inputs using HRDLGetSingleValue. In addition to this, I need to be able to set some digital lines as outputs and some as inputs and then read digital inputs in single-shot (nonbuffered) mode.

I've been able to set digital outputs using HRDLSetDigitalIOChannel, but I cannot figure out what API call to use for non-buffered (!) reading of digital inputs. Is there a way to do it?

Thanks!
liber
Active User
Active User
 
Posts: 7
Joined: Sat Feb 26, 2005 5:53 pm

Re: ADC-24 SDK: Get Single Digital Value

Postby liber » Thu Dec 17, 2015 3:34 pm

Never mind, I figured it out. It looks like the same HRDLGetSingleValue can be used to read the digital port as channel 0. I wish the documentation for the SDK were more explicit about it. Thanks!
liber
Active User
Active User
 
Posts: 7
Joined: Sat Feb 26, 2005 5:53 pm


Return to USB PC Data Loggers

Who is online

Users browsing this forum: No registered users and 0 guests