Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Maxbotix US "digital" example. (XL EZ1) (http://www.chiefdelphi.com/forums/showthread.php?t=125308)

billbo911 26-01-2014 21:16

Maxbotix US "digital" example. (XL EZ1)
 
Here's a funny situation. We run the example and it works perfectly. But when we copy the code into our robot code, or create itvmanually, it's no longer works. We have the address's is set properly, but still no go.Has anyone else ever experienced this?

Alan Anderson 26-01-2014 22:21

Re: Maxbotix US "digital" example. (XL EZ1)
 
How are you copying it to your robot code? Make sure you understand what parts of the example go into which VIs in the robot project. See Tutorial 7 - Integrating Examples into Robot Code.

billbo911 27-01-2014 09:54

Re: Maxbotix US "digital" example. (XL EZ1)
 
Quote:

Originally Posted by Alan Anderson (Post 1332945)
How are you copying it to your robot code? Make sure you understand what parts of the example go into which VIs in the robot project. See Tutorial 7 - Integrating Examples into Robot Code.

We've followed the tutorial, after trying a copy and paste, and then manually replicating the code, and none of these approaches have worked. And yes, the correct components are in Begin.vi and Periodic tasks.

It is quite perplexing!

billbo911 28-01-2014 10:19

Re: Maxbotix US "digital" example. (XL EZ1)
 
We switched over to Analog sampling and now have reliable sub inch accuracy.
I still don't know why the "Digital" Pulse width sampling only works in the example.
At this point in the build season, as long as we have a reliable measurement, we are satisfied. Maybe after the build is finished we will have time to investigate further.

Greg McKaskle 28-01-2014 20:53

Re: Maxbotix US "digital" example. (XL EZ1)
 
Please let us know if you figure out what it was.

Greg McKaskle

billbo911 31-01-2014 23:27

Re: Maxbotix US "digital" example. (XL EZ1)
 
Quote:

Originally Posted by Greg McKaskle (Post 1333913)
Please let us know if you figure out what it was.

Greg McKaskle

Well, I wish I could tell you why, but it works perfectly now in Digital mode.

This time around, I built the code from scratch using the example as a guide, not my student. Obviously he did something incorrectly, but I watched him do it and it looked correct to me....at the time.

The only thing I can think of is, he might have used a Digital Set RefNum instead of a Timer Set RefNum.

Oh well, at least we now have two reliable ways to measure distance.


All times are GMT -5. The time now is 09:51.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi