Zapit-Optostim / zapit

General purpose optostimulation system
GNU Lesser General Public License v2.1
6 stars 1 forks source link

Fail gracefully if instrument control toolbox is missing #137

Closed raacampbell closed 9 months ago

raacampbell commented 9 months ago
Warning: The following error was caught while executing 'zapit.interfaces.TCPserver' class destructor:
Undefined function 'flush' for input arguments of type 'double'.

Error in zapit.interfaces.TCPserver/delete (line 74)
            flush(obj.hSocket)

Error in zapit.interfaces.TCPserver (line 33)
            params = inputParser;

Error in zapit.pointer (line 146)
                obj.tcpServer = zapit.interfaces.TCPserver(...

Error in start_zapit (line 75)
            hZP = zapit.pointer(ZPargs{:}); 
> In zapit.interfaces.TCPserver (line 33)
In zapit.pointer (line 146)
In start_zapit (line 75) 
Build of hZP failed
'tcpserver' requires Instrument Control Toolbox.

Error in zapit.interfaces.TCPserver (line 44)
            obj.hSocket = tcpserver(obj.ip, obj.port);

Error in zapit.pointer (line 146)
                obj.tcpServer = zapit.interfaces.TCPserver(...

Error in start_zapit (line 75)
            hZP = zapit.pointer(ZPargs{:});
raacampbell commented 9 months ago

d3d62b1f2a9d7f9888546f4c4cbf9c443807c46c