LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication problem with Thorlabs PM100USB Power meter

Solved!
Go to solution

I have a LabView Instrument in which I use the Thorlabs PM100USB Power meter. (VI attached). During measurement, the programm suddenly stops measuring and stops responding, then starts and stops arbitrarily instead of measuring continuously (screenshot). What could be done in this case?

 

 

Download All
0 Kudos
Message 1 of 5
(3,724 Views)
Solution
Accepted by topic author Ayushya

Hi Ayusha,

 

what about implementing some error handling?

What about implementing a loop in your VI instead of using the "run continuous" button?

What about not calling Init/Deinit with each iteration your your VI (or the future loop)?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,718 Views)
Solution
Accepted by topic author Ayushya

Try adding a for or while loop. Keep the ThorLabs open and close functions outside of the loop. 

 

thorlabs.png

Kevin Terry
Test Development Engineer @ McGregor and Associates
http://www.mcgregor-surmount.com
0 Kudos
Message 3 of 5
(3,703 Views)

Thanks GerdW. I followed your points and was able to solve my problem.

0 Kudos
Message 4 of 5
(3,684 Views)

Thanks Kevin. I tried with adding a while loop and also kept the getWavelength part outside the loop. It works.

0 Kudos
Message 5 of 5
(3,683 Views)