Code covered by the BSD License  

Highlights from
Matlab LibTiePie 0.4.3 instrument driver for Handyscope HS5

Matlab LibTiePie 0.4.3 instrument driver for Handyscope HS5

by

 

03 Oct 2013 (Updated )

MatlabLibTiePie : TiePie engineering's instrument library for Matlab 7.6 = 2008a and higher.

LibTiePie.VersionNumber2String( nVersion )
% VersionNumber2String converts a 64 bit version number to a string.
%
% (c) 2012-2013 TiePie engineering.

function VersionString = VersionNumber2String( nVersion )
  VersionString = [ sprintf( '%d' , bitand( nVersion , 65535 ) ) ];
  for k = 1:3
    VersionString = [ sprintf( '%d' , bitand( bitshift( nVersion , -k * 16 ) , 65535 ) ) , '.' , VersionString ];
  end
end

Contact us