%Close the stream for the VT acq ent. This stops streaming of VT data without
%disconnecting from the server
succeeded = NlxCloseStream(vt_acq_ent);
if succeeded == 0
    disp(sprintf('FAILED to close stream for %s', char(vt_acq_ent)));
elseif succeeded == 1
    disp(sprintf('PASSED to close stream for %s', char(vt_acq_ent)));
end
%Disconnect from the server.
succeeded = NlxDisconnectFromServer();
if succeeded == 1
    fprintf('Disconnected from %s.\r', serverName);
else
    disp 'FAILED disconnect from server'
end