API connection already exists
How do I resolve Python or MATLAB error 'API connection already exists'
When using MATLAB or Python APIs, the script should ideally release the connection to the Moku once it finishes. This is done with :
i.relinquish_ownership()
Sometimes the connection is not released. It is possible to force the new API connection with : force_connect=True
For example :
i = LockInAmp('192.168.xxx.xxx', force_connect=True)