Remote Control and Other Programming Languages
Running Zapit stimuli in other programming languages or from a different PC
Controlling Zapit via TCP/IP
Configuring the YML file
Connecting to Zapit using the TCP/IP client
% Start the client on a remote PC, specifying the IP address of the Zapit server
client = zapit_tcp_bridge.TCPclient('ip','122.14.143.200');
client.connect;
% present the last stimulus condition for a short period using software timing
nCond = client.getNumConditions;
client.sendSamples('conditionNumber',nCond, 'hardwareTriggered', false);
pause(3)
client.stopOptoStim;
% Disconnect
delete(client)Precise timing over TCP/IP
Rolling your own stimulus presentation code
Last updated