Thorlabs CSS2000 spectrometer infterface with Matlab using NI VISA

1 view (last 30 days)
I am trying to automate the Thorlabs CSS2000 series spectrometer using Matlab. VISA was provided with the software, and below is the code I am using to interface it. The problem is that matlab does not have the .mdd file for this particular spectrometer. Is there any way I can get/create it? I doubt using midedit will work.
thanks
% Create a VISA-USB object. interfaceObj = instrfind('Type', 'visa-usb', 'RsrcName', 'USB0::0x0699::0x0401::C001309::0::INSTR', 'Tag', '');
% Create the VISA-USB object if it does not exist % otherwise use the object that was found. if isempty(interfaceObj) interfaceObj = visa('NI', 'USB0::0x0699::0x0401::C001309::0::INSTR'); else fclose(interfaceObj); interfaceObj = interfaceObj(1); end
% Create a device object. deviceObj = icdevice('<_how do I create this file?_>.mdd', interfaceObj); ==<
% Connect device object to hardware. connect(deviceObj);

Answers (0)

Categories

Find more on Instrument Control Toolbox Supported Hardware in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!