function [ t,version ] = prologix_connect(ipAddress,port) %PROLOGIX_CONNECT open TCP/IP connection with Prologix Ethernet GPIB %converter % Detailed explanation goes here if nargin < 2 port = 1234; if nargin < 1 ipAddress = '10.0.0.2'; end end echotcpip('on', port); t = tcpip(ipAddress,port); fopen(t); fprintf(t, '++mode 1'); fprintf(t, '++auto 0'); fprintf(t, '++ver'); version = ['Firmware Version: ', fscanf(t)]; end