Quantcast
Channel: All LabVIEW posts
Viewing all articles
Browse latest Browse all 202769

Ni 6211 DAQ to HC-sr04 Connecting and code (fails in while loop)

$
0
0

Hello, I'm trying to get my distance sensor to work for a school project and I am running into a few problems.

 

First off I found this code online when I have tried to look for help but I can seem to get it to connect and work with my daq and system.

I get an error of "-200284" a picture of the error is attached. also I am not sure if I wired it right so that could be the problem. I currently have it wired to digital p0 for the trigger and digital p1 for the echo.

thank you.


Viewing all articles
Browse latest Browse all 202769

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>