03-10-2025 04:15 AM
Dear all,
I want to measure the average power and standard deviation in a given time. I tried the attached code but could not succeed. What should I do to get average time and std dev?
03-12-2025 09:14 AM
Hi anyone! can you help me?
03-12-2025 09:33 AM
Can you share more detail on your Power Meter, make, model, link to driver/manual?
03-12-2025 10:42 AM
Hi Santhosh!
The powermeter is from Ophir model name is StarLite. here, is the link of manual.
https://www.ophiropt.com/en/g/starlab-for-usb
Thanks
03-12-2025 11:00 AM
It looks like I need to register/share my details to get the documents, which I am not going to.
I notice that they do have a LabVIEW example code https://www.ophiropt.com/en/g/labview-com-demo
I hope that you were able to collect data using their COM drivers, if so, do you know if the readings come with any sort of timestamp or time synchronization that you can rely on? example, set it up to read at 100Hz, and you read several samples and you can trust that each sample is 10ms apart?
Do you need it to be time gated statistics or a kind of latest N sample statistics?
03-20-2025 05:17 AM
Hi!
I used two shift registers, one for storing the data and one for the counting the sample. How can I sum the array? I used if condition and shift register to get an average in a defined time interval and reset the stored data once it reached the given time interval.
Does the below code give the correct measurement?
averaging power in a given interval