LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

periodic counting

Solved!
Go to solution

Wait there is a bug. Let me fix it & post new VI.

 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 11 of 22
(914 Views)

Hi 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 12 of 22
(911 Views)

Try this & let me know if you found any other bug 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 13 of 22
(910 Views)

Hi Henok,

                                 Please remove break point then run this VI.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 14 of 22
(907 Views)

Hi Ranjeet,

 

instead of rounding up you should simply compare to "greater or equal":

check.png

Also remember: Adding small fractional numbers repeatedly (like you do) will introduce numeric errors due to floating point accuracies...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 15 of 22
(904 Views)

This is also another way to do it. I found that, you found this & both are copyright. Just kidding Smiley Very Happy.

 

Nice job but i dont think that this will generate numeric error becasue the precision is 1 digit only. So may be, i am not sure..

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 16 of 22
(907 Views)

Hi Ranjeet,

 

it will generate numeric errors as you CANNOT express "0.1" with usual floating point numbers!!!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 17 of 22
(905 Views)

I see! Big lesson learned for myself here. I would watchout not to make this mistake in the future myself.

 

But thanks both of you guys!

 

I can scale up your solution, GerdW, to fit my need and that way it is perfect for my testing as I'd be able to know what to look for in my test results.

 

Good day!

0 Kudos
Message 18 of 22
(903 Views)

Hi,

I run it and worked fine for 0.1 but when I tried for precision of 0.01, it just gave one decimal point counts.

0 Kudos
Message 19 of 22
(899 Views)

Hi Henok,

 

ever tried to adjust the (display) settings of the indicators? Just one right-click away...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 20 of 22
(896 Views)