06-27-2019 09:42 PM - edited 06-27-2019 09:46 PM
hi
i use ultrasonic with myrio
when i run the code the distance equal 0
this 2 vi i use
the Untitled3 inside Untitled2
i run Untitled2
plz help me
06-27-2019 10:04 PM
Please use capitalization and punctuation. Don't use "text speak".
Help you how? Do you understand how your VI's are written? I don't understand how your code implements what you want to try to do. Your terminals have generic names (numeric 1, numeric 2) and your subVI has some plain solid red color or an icon. The default icon would have been better.
Your second loop seems like it would run as fast as it can, and I bet you are not getting any changes in inputs in such a short period of time.Your tick count puts out millisec, when perhaps microseconds or ticks would be better.
Before you wrote this VI, did you write down on a piece of paper the steps you need to do to solve your problem?