<< mdaqAOWrite Data acquisition mdaqDIORead >>

MicroDAQ Support Package for Matlab/Simulink >> MicroDAQ Support Package for Matlab/Simulink > Data acquisition > mdaqDIOFunc


Controls alternative DIO function

Calling Sequence

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):



% disable Encoder1 function - set to DIO
mdaqDIOFunc(1, false);

See Also

Report an issue
<< mdaqAOWrite Data acquisition mdaqDIORead >>