52 of 323
ZBasic System Library 42 ZX Microcontroller Family 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 not available in BasicX compatibility mode nor is it available on ATmega-based ZX devices. See Also DAC, OpenDAC