Hi TeamPicatinny,
Error -200431 means that you've tried to create a task type that the specified channel can't handle. In your case, it sounds like you tried to create a counter input task on an analog input channel.
NickelsAndDimes
Product Support Engineer - sbRIO
National Instruments