Page 1 of 2

Neato Lidar project

PostPosted: Fri Jan 03, 2014 5:17 pm
by Kinga
Hi Sam,

I'm completely new to LabView but I have a Neato (three actually) and wanted to see what it was seeing as it is behaving erratically as though it is blind.

I followed the Neato LDS project but Lidar Example.vi does not appear to work. It looks completely different then the version in your screenshot. Most of the fields are missing from the canvas, the polar graph box is blank and green and when I click the Stop button I get a message about "VISA or a Code Library required by VISA could not be located or loaded"

I suspect that the two downloads; LabView 2013 and Lidar Example.VI do not contain everything I need and I have to download more stuff. Can you please confirm and point me in the right direction?

PS since sending that initial message I have downloaded and installed NI-VISA 5.4 but still not working.

Re: Neato Lidar project

PostPosted: Fri Jan 03, 2014 5:24 pm
by samkristoff
Hey Kinga,

Did you install the "labviewhacker_lib_lidar-1.0.0.4.vip" from the Neato project page?

Thanks!

Re: Neato Lidar project

PostPosted: Fri Jan 03, 2014 5:29 pm
by Kinga
Yes I did. That is what contains the Lidar Example.vi file isn't it? So I figure if I have that, it must have installed the VIP correctly.

Re: Neato Lidar project

PostPosted: Fri Jan 03, 2014 5:37 pm
by samkristoff
I took a look at the toolkit and it looks like the VI from the screen shot on the project page never made it into the toolkit.

Are you able to run the examples that are included in the toolkit? Do you still get an error? If so can you post a screen shot.

Thanks!

Re: Neato Lidar project

PostPosted: Fri Jan 03, 2014 5:38 pm
by Kinga
btw not getting the same error when I stop now so I think VISA is now installed. Now I get this error when I click the stop button:

Error -1073807339 occurred at VISA Read in Read Lidar.vi->Lidar Example.vi

Re: Neato Lidar project

PostPosted: Fri Jan 03, 2014 5:46 pm
by Kinga
I only get the error when I click on the STOP button. When I run Lidar Example.vi it runs but just shows me this attached.

Perhaps it's not receiving the data from the Lidar? My FTDI cable is different to yours (only four wires) but I think I have the RX and Ground hooked up correctly. Is there a way I can tell if Labview is receiving anything from the Neato?

Re: Neato Lidar project

PostPosted: Fri Jan 03, 2014 5:55 pm
by Kinga
btw your project instructions don't say anything about how to run the Neato so that it returns lidar data while being hooked up. Did you run it in TestMode? Did you put it up on blocks so that it didn't move? I am trying to run it in testmode with just setLDSRotation on hoping that would be returning LIDAR information.

Perhaps it doesn't and I should be running it normally? But then how to stop it running away? lol

Re: Neato Lidar project

PostPosted: Mon Jan 06, 2014 12:19 pm
by samkristoff
Hey,

I wasn't actually the one who did the Neato stuff (which is why it's in the projects section rather than the Library section).

The Initialize Lidar VI only opens the serial port, it does not send any data to the Lidar. Similarly the read just reads incoming bytes without sending and command / data first.

Here is some good info from Sparkfun

How are you connected to the Lidar? Are you using a 3.3v USB / Serial converter?

Thanks!

Re: Neato Lidar project

PostPosted: Wed Jan 08, 2014 1:22 am
by Kinga
Yes supposedly that is what sort of cable I have. But I bought it off Ebay and it was cheap so who knows! ;) I might look to see if there is a way of testing the cable outside of the Neato Labview project. Something that can just give me a yay or nay on whether any data is coming down the cable

Thanks for your help anyway. I think my LabView evaluation period is about to expire :( Maybe someone else has written something that can map what a Neato sees. Hopefully a nice simple .exe :)

Re: Neato Lidar project

PostPosted: Wed Jan 08, 2014 10:30 am
by samkristoff
Hey,

You can use this 6-month renewable LabVIEW evaluation.

If you have an Arduino or chipkit or some other microcontroller you could use that to test the USB / serial converter. Alteralty you could use a piece of wire to connect the TX an RX pins on the wire and then use PuTTy to send and receive data (just type) to make sure cable drivers are working.

You could also use PuTTy as a simple way to monitor the output from the Lidar just to make sure it is outputting data.

Let me know how it goes and we'll see what else we can come up with.

Good Luck!