Working with the Power Meter using MATLAB class

In this short post, I shall mostly discuss about using the power meter using a MATLAB class called, “ClassThorlabsPM100D.m” written by Dr. Farfurnik. (It should be available in the shared google drive)

Some primary information about the power-meter:

Type: PM100D

Serial Number: P0045229

Sensor serial number: 240208323

USB Visa address: ‘USB0::0x1313::0x8078::P0045229::0::INSTR’ (I retrieved this address from Keysight Connection Expert Software. When you connect the device via USB, the device is listed in the ‘My Instruments’ tab in the software. The visa address is available there)

Using it from the MATLAB class

pmd = ClassThorlabsPM100D.getInstance() %Creates the object

pmd.connect() %connects the instrument with MATLAB

pmd.SetWavelength(920) % sets the wavelength for the measurement

pmd.GetWavelength() %You can see what wavelength the power meter is currently operating at

pmd.GetPower() % Outputs the power the power meter is currently measuring

Leave a Reply

Your email address will not be published. Required fields are marked *