No BSD License  

Highlights from
Lambda-Physik FL3002 GPIB Instrument Drivers

Lambda-Physik FL3002 GPIB Instrument Drivers

by

 

15 May 2008 (Updated )

Provides a basic command set to control the FL3001/2 dye laser over GPIB.

DyeLaserDecToAscii(DecIn, NumDigits)
% Created by Tom Spinka on Sept. 28, 2007 for converting a decimal position
% count to the stacked-ascii format read by the Lambda Physik FL3001/3002.
function StrOut = DyeLaserDecToAscii(DecIn, NumDigits)

StrMiddle = dec2hex(DecIn,NumDigits);
StrLen = length(StrMiddle);

for n = 1:StrLen
    StrOut(StrLen + 1 - n) = char(hex2dec(StrMiddle(n)) + 'A');
end

Contact us