Controls alternative DIO function
mdaqDIOFunc(dioFunction, isEnabled)
This function sets alternative function for DIO channels. By default alternative DIO channel functions ENC1, ENC2, PWM1, PWM2, PWM3 and UART are enabled. This function will return error if direction of DIO channels does not allow to set selected function (e.g DIO channel configured as an output can't be configured as ENC1 (input direction)).
DIO alternative functions ('dioFunction' argument):
dioFunction: Alternative DIO function
isEnabled: true/false to enable or disable
% disable Encoder1 function - set to DIO mdaqDIOFunc(1, false);