07-22-2014 01:36 AM
Wait a minute, try this.
07-22-2014 01:43 AM
Why did i forget to mention that ..........
07-22-2014 03:01 AM
I think you dont need shift register. Try this code =))
07-23-2014 07:05 AM
@Hohohihijj wrote:
I think you dont need shift register. Try this code =))
One caveat about your code is that it's a little dangerous to be comparing doubles like that. By their very nature they are imprecise, and that imprecision could lead to a bad comparison.
07-23-2014 07:12 AM
@billko wrote:
@Hohohihijj wrote:
I think you dont need shift register. Try this code =))
One caveat about your code is that it's a little dangerous to be comparing doubles like that. By their very nature they are imprecise, and that imprecision could lead to a bad comparison.
Not to mention you don't even need a loop! Panand's solution is by far the simplest.
07-23-2014 07:20 AM
True, Panad solution is best for this case.
But i think OP has misunderstanding about loops and shift registers also.
I would recammond LabVIEW basic courses for that.
07-23-2014 08:41 AM
@crossrulz wrote:
@billko wrote:
@Hohohihijj wrote:
I think you dont need shift register. Try this code =))
One caveat about your code is that it's a little dangerous to be comparing doubles like that. By their very nature they are imprecise, and that imprecision could lead to a bad comparison.
Not to mention you don't even need a loop! Panand's solution is by far the simplest.
Of course - but the code works and I wanted to emphasize the more important issue. 🙂
07-23-2014 09:10 AM
@billko wrote:
Of course - but the code works and I wanted to emphasize the more important issue. 🙂
You pointed out correctly. That is one of the ameture's mistake, I have seen few in very critial places.
07-23-2014 09:44 AM
billko wrote:Of course - but the code works and I wanted to emphasize the more important issue. 🙂
But a Less Than for a floating point isn't really the dangerous one. It is the Equal To.
07-23-2014 09:48 AM
@crossrulz wrote:
billko wrote:Of course - but the code works and I wanted to emphasize the more important issue. 🙂
But a Less Than for a floating point isn't really the dangerous one. It is the Equal To.
You're right.