As you write your general program, you will realize for the most part the DAQmx API is really sound but there are always exceptions for certain devices. For example, most devices coerce an out of range value when setting the range for Analog Input, however, some devices will not coerce and generate an error. Good luck with you program.