Closing a Channel

From Phidgets Support
Jump to: navigation, search
 Phidget Programming Basics: Closing a ChannelTOC Icon.png Table of Contents

Nav Back Arrow.pngNavSpacer.jpgWhiteTab1.pngNavSpacer.jpgWhiteTab2.pngNavSpacer.jpgWhiteTab3.pngNavSpacer.jpgWhiteTab4.pngNavSpacer.jpgWhiteTab5.pngNavSpacer.jpgWhiteTab6.pngNavSpacer.jpgWhiteTab7.pngNavSpacer.jpgWhiteTab8.pngNavSpacer.jpgGreenTab9.pngNavSpacer.jpgWhiteTab10.pngNavSpacer.jpgWhiteTab11.pngNavSpacer.jpgWhiteTab12.pngNavSpacer.jpgWhiteTab13.pngNavSpacer.jpgWhiteTab14.pngNavSpacer.jpgWhiteTab15.pngNavSpacer.jpgWhiteTab16.pngNavSpacer.jpgNav Next Arrow.png


9 . Closing a Channel

When you are finished with a channel, you should close and (in some languages) delete it. Once closed, the physical Phidget channel the software channel was matched to will be released, and made available to attach to other software channels.

For example:

ch.close()

ch.close();

ch.Close();

Phidget_close((PhidgetHandle)ch);
PhidgetDigitalInput_delete(&ch); //Replace DigitalInput with the channel class of your channel

ch.close()


When you close a channel, it will reset all of the properties of that channel. For example, a digital output will revert back to FALSE when it is closed.