Device.CloseDevice()
Info | Value |
---|---|
Package | mvnc |
Module | mvncapi |
Version | 1.0 |
See also | Device.__init__() Device.OpenDevice() |
Overview
This function is used to cease communication and reset the device.
Syntax
dev.CloseDevice()
Parameters
None.
Return
None.
Known Issues
Example
# Open and close the first NCS device
import mvnc.mvncapi as ncs
deviceNames = ncs.EnumerateDevices()
firstDevice = ncs.Device(deviceNames[0])
# Open the device
firstDevice.OpenDevice()
# Use device here
# Close the device
firstDevice.CloseDevice()