LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

benchmark

Solved!
Go to solution

Hello all,

 

I was trying to make my own "benchmarking program" 

too see if my code can become faster.

 

I already a vi for it, see attachment.

The strange part is that it gives 0.0000000000 for the following program:

benchmark.PNG

 

Is there a problem in my code?

Or is my pc too fast Smiley Very Happy

 

Koen

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 1 of 11
(3,533 Views)

Your attachment and VI doesn't match

 

when I downloaded the code then this is the imageUntitled10.png

--------------------------------------------------------------------------------------------------------
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 2 of 11
(3,530 Views)

The vi is the benchmarking vi that i made.

the picture that i delivered was just a way to test if it worked, the tested vi has no purpose.

 

 

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 3 of 11
(3,524 Views)

where you receiving 0.000000?

--------------------------------------------------------------------------------------------------------
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 4 of 11
(3,521 Views)

which is following 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 5 of 11
(3,518 Views)

Yes, I was receiving that over the flat sequence. As elapsed time.

 

Here is the test vi

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 6 of 11
(3,516 Views)

 

 

 

 

 Dibujo.PNG

You have to temporize your loop. Otherwise you are collapsing your computer processor.

0 Kudos
Message 7 of 11
(3,509 Views)

You have to temporize your loop. Otherwise you are collapsing your computer processor.


 

 

Thats actually what I'm trying to do. To see how fast it can run.

Though I don't like the ms counter i made my own counter (benchmark.vi).

The problem is when I wire it in a flat sequence it will give 0.000000 when they are substracted

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 8 of 11
(3,503 Views)
Solution
Accepted by topic author KoenR94

I think that it is too fast, just try it:

 

Dibujo.PNG

 

 

0 Kudos
Message 9 of 11
(3,495 Views)

Yes you were right. The loop was just faster then 0.0000000000s 

increased the iterations to 8000000, and it gave an answer:0.0312504768371582031s

 

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 10 of 11
(3,483 Views)