LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mean PtByPt VI stops working

Hello,

 

currently I'm creating a VI for reading out a multimeter.

In this application I need in parallel a measurement about the last 3s and 30s while tool is continueing and for this I want to use the VI "Mean PtByPt".

Every 25ms I get a new value, so I have a sample length of 120 and 1200.

120 samples are ok, but 1200 seems to stop sporadically  and after a few seconds it keeps going on.

Do you have an idea for this issue?

 

Thanks

 

Stefan

 

0 Kudos
Message 1 of 6
(1,350 Views)

@Stefan_shs wrote:

Hello,

 

currently I'm creating a VI for reading out a multimeter.

In this application I need in parallel a measurement about the last 3s and 30s while tool is continueing and for this I want to use the VI "Mean PtByPt".

Every 25ms I get a new value, so I have a sample length of 120 and 1200.

120 samples are ok, but 1200 seems to stop sporadically  and after a few seconds it keeps going on.

Do you have an idea for this issue?

 

Thanks

 

Stefan

 


Sorry my post wasn't helpful.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 6
(1,348 Views)

Hi Stefan,

 

the problem with images is: we cannot debug them using LabVIEW.

 

So I created a simple test VI:

As this one works as expected (i.e. nothing "stops suddenly") I guess the problem is in other stuff of your VI next to the PtByPt-Mean functions.

 

Recommendation: Debug your VI…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 6
(1,336 Views)

Hello Gerd,

 

thanks for answering so fast.

Now I added the VI 😉 - sorry

I will try your vi-test.

 

best regards

Stefan

0 Kudos
Message 4 of 6
(1,313 Views)

Hi Stefan,

 

I simplified your VI to run the test without any file handling:

No need to build up an ever-growing array just to calculate a min/max value.

Are you sure by adding current values you get the "average voltage"???

I also added a wait time to the loop…

 

Please run such a test to verify your observations!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 6
(1,307 Views)

Hi Gerd,

 

the simply test was successfully without any abnormalities except there seems to be a small difference between LV2013 and LV2018, but that is to neglect, I think.

At the moment I'm working with 2013.

 

And the theme with the average voltage:

The documentation is not so fine till now. I measure a voltage value from a current transducer, add all values and divide them by the index. And the factor to get the current is 60. 

 

And I will insert a wait time - so I get a defined time for the samples by the mean currents.

 

Thanks

 

Best regards 

Stefan

0 Kudos
Message 6 of 6
(1,217 Views)