KAGRA MIR (General)
ShalikaSingh - 17:49, Friday 14 February 2025 (3914)
Issue with interfacing new power meter with PCI labview [Resolved]

A new power meter had to be installed to monitor power fluctuations during birefringence mesaurement in the PCI room. 

There were several issues to integrate and read power using the power meter in labview.

1. First it seemed that the power meter driver was not present. So, we installed new drivers. But this didn't resolve the issue.

2. We thought the port of connection is not being recognized and so we tried changing the port definintion to IVI driver. Although, we could see the new port on NI max, we didn't resolve the issue. 

3. The issue in reality was that the windows is 64bit but labview was 32bit. I uninstalled the thorlabs opm and installed again. The new VI to read was directly made from the thorlabs folder for power meter and not by the labview palette options. The error is resolved completely. You don't need to use 1 and 2, because the issue was due to labview not able to find the libraries in palette. The labview VIs in palette don't exist because of different version of windows and labview. When your issue is resolved, even though NI max won't recognize your power meter, it exists, and can be read, simply by using the port number like USB0::0x:1313::0x8078::P0048841::INSTR

To anyone who woould get into this issue

1. Check the versions of softwares installed. Most likely this is the issue. This was the case for everytime I encountered the issue during interfacing thorlabs measuring tools with labview

2. If the Issue is 1. 

      a. Don't use the VIs avaialble for the measuring tool in labview palette.

      b. Use the VIs for the tool from something like "C:\Program Files (x86)\National Instruments\LabVIEW 2018\instr.lib\TLPM". Just go directly wheere the version was installed. 

     c. Don't try to fix the labview driver for the tool if you see the broken arrow. You will need to either ignore errors to resolve, or reinstall.

3. If the issue is not resolved using 3, your only hope is to use the suitable version of labview which is compatible with your windows.