Jump to content
  • 0

Defining DT9817-R Pins in C code


mi987654

Question

Hello!

I already read through all the documentation (SDK and also User Manual for DT9817) however I couldn't find anything on how to define pins on the module with C SDK. I want to set an output signal to 1 on a certain single Digital Out pin (lets say Digital Out 2), how to do that exactly? Thank you!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

Thank you for the reply, I've already went through the code but still couldn't find where can I initialize certain port to have an output 1. I guess maybe this one, but I am not sure... 

/* put all 1's single value */

   CHECKERROR (olDaGetResolution(board.hdass,&resolution));
   value = (1L<<resolution)-1;

   CHECKERROR (olDaPutSingleValue(board.hdass,value,channel,gain));

 

Edited by mi987654
Link to comment
Share on other sites

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...