Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Need some help with (http://www.chiefdelphi.com/forums/showthread.php?t=131665)

Zephex 22-12-2014 13:37

Need some help with
 
I've connected everything on the correct ports, but for some reason this won't work. When I run the program nothing happens when the condition is met.
Here are some pics:

Begin:


Teleop:


Thanks in advance!

Mark McLeod 22-12-2014 13:49

Re: Need some help with
 
The Pot will never exactly equal 5.

You might want to use > 4.9 or something.

Try probing the actual pot values so you know what you are getting.

Ether 22-12-2014 14:08

Re: Need some help with
 
Quote:

Originally Posted by Mark McLeod (Post 1415879)
The Pot will never exactly equal 5.

@OP: Mark's statement applies not only to your particular issue: It applies whenever you are comparing floating-point numbers in a computer program.

Here are a couple of articles which may be of interest:

http://randomascii.wordpress.com/201...-2012-edition/

http://c-faq.com/fp/fpequal.html





All times are GMT -5. The time now is 08:47.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi