LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino uno and Parallax PING)))

This is what i have so far. It's putting out a number, but trying to make sense. Something is still wrong

ping-read.png

main.png

0 Kudos
Message 11 of 13
(903 Views)

It looks like you will have a conflict if your WHILE loop is going to start reconfiguring your ouput pin before you have time to receive a response.

It would be pretty hard to get any sense out of that one without putting at least some kind of delay in to both see a response and tell what it was.

Also, in the upper vi I think you should continue the ouput of the arduino resource for good measure.

And also carry the resource and error lines in your pinging vi within the loop to the loop wall and close.

Right now I think you are close... the vi is running around in circles not waiting for a response while the arduino is perhaps flailing around changing inputs to outputs and vice versa...

Your LIFA code should be setting your inputs and ouputs for the chosen pin and waiting for the response.

Tim

Will send you something when I can actually send email out the door.

0 Kudos
Message 12 of 13
(903 Views)

I worked a code, but not working with LIFA allowed me to take accurate readings of the sensor, add the code, Greetings

Download All
0 Kudos
Message 13 of 13
(903 Views)