LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MYRIO with ultrasonic

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

Download All
0 Kudos
Message 1 of 2
(2,097 Views)

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?

0 Kudos
Message 2 of 2
(2,082 Views)