View Single Post
  #14   Spotlight this post!  
Unread 17-01-2016, 20:51
GGorman GGorman is offline
Registered User
FRC #5419 (A-Team)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2010
Location: United States
Posts: 5
GGorman is an unknown quantity at this point
Re: LidarLite v2 communications issues

Thanks SLAB! I also figured it out tonight -- thanks to Kevin O'Connor at FIRST as well!

Yes - you have to separate the write and the read. Took me a while to figure it out and Kevin sent me a VI with just a Read command wrapped in it (I'll attach). WPI_I2CReadOnly.vi

Here's my Begin.vi to set up the LidarLite (just a screen shot):
Click image for larger version

Name:	BeginVi.JPG
Views:	76
Size:	78.3 KB
ID:	19778

Then I use this in PeriodicTasks.vi (any tips and comments on my coding is greatly appreciated!)
Click image for larger version

Name:	PeriodicTasks.JPG
Views:	60
Size:	42.3 KB
ID:	19779

Thanks everyone for your help. I hope this also helps others!

/Greg
Mentor 2478 and 5419

Last edited by GGorman : 17-01-2016 at 21:24.
Reply With Quote