Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Ultrasonic Sensors? (http://www.chiefdelphi.com/forums/showthread.php?t=101091)

farmersvilleRob 24-01-2012 23:26

Ultrasonic Sensors?
 
Am I missing something or how does labview get the integer from the ultrasonic range finder? There isn't an echo block to get the info back from the ping block. Do I need to create one myself? I also went through the blocks them selves and nothing is giving me an output.

Mark McLeod 25-01-2012 11:05

Re: Ultrasonic Sensors?
 
If you are using the MaxBotix ultrasonic sensor that came in the 2012 Kit, then you do not program it through the LabVIEW FRC Ultrasonic vi's.
The LV ultrasonic vi's are for a different make/model of sensor.

The MaxBotix sensor can get wired for analog and plugged into the analog bumper, then accessed as a standard analog input. The analog value has a direct correlation to inches-to-target.
It can also be wired for digital and plugged into the sidecar.

There are code examples for both analog and digital from the LV Start page under Support -> Find FRC Examples..., then Sensors->EZ1...

cilginbilgin 01-02-2012 08:39

Re: Ultrasonic Sensors?
 
Quote:

Originally Posted by Mark McLeod (Post 1113263)
There are code examples for both analog and digital from the LV Start page under Support -> Find FRC Examples..., then Sensors->EZ1...

how do we integrate the analog example to our robot project? I mean, how are we going to split the example into begin, teleop etc. VIs.

Mark McLeod 01-02-2012 09:27

Re: Ultrasonic Sensors?
 
From the Getting Started page, look at:
Tutorials -> Tutorial 7 - Integrating Examples into Robot Code
Basically the Open, and the Sets go in Begin.vi, the Close in Finish.vi, and just Get Avg with the scaling factor applied might go in Teleop and/or Autonomous.


All times are GMT -5. The time now is 11:35.

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