Page 76 of 346 Start Back Next End ZBasic System Library 64 ZBasic Microcontrollers CloseDAC Type Subroutine Invocation CloseDAC(channel) CloseDAC(channel, status) Parameter Method Type Description channel ByVal Byte The DAC channel to close. status ByRef Boolean A variable to receive the status code. Discussion This subroutine terminates the DAC operation on the specified channel. The status parameter, if supplied, receives a value to indicate success or failure of the call. If the second channel of the DAC channel pair is also open, it will continue to operate unaffected. Example Call CloseDAC(1) ' terminate DAC on channel 1 Compatibility This subroutine is only available for xmega devices and is not available in BasicX compatibility mode. See Also DAC, OpenDAC