Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Power measurement powermeter

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?

 

image.png

0 Kudos
Message 1 of 6
(193 Views)

Hi anyone! can you help me?

0 Kudos
Message 2 of 6
(155 Views)

Can you share more detail on your Power Meter, make, model, link to driver/manual?

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 3 of 6
(152 Views)

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

 

0 Kudos
Message 4 of 6
(146 Views)

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?

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 5 of 6
(144 Views)

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 intervalaveraging power in a given interval

0 Kudos
Message 6 of 6
(60 Views)