<< mdaqDIORead Data acquisition mdaqDIOWrite >>

MicroDAQ toolbox >> MicroDAQ toolbox > Data acquisition > mdaqDIOFunc


Controls alternative DIO function

Calling Sequence

mdaqDIOFunc(dioFunction, isEnabled)
mdaqDIOFunc(linkID, 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
linkID = mdaqOpen(); 
mdaqDIOFunc(linkID, 1, 0);

See Also

Report an issue
<< mdaqDIORead Data acquisition mdaqDIOWrite >>