I have discovered a problem while trying to program the q18 sensor (http://www.bannerengineering.com/en-US/products/8/Sensors/30/Ultrasonic-Sensors/144/WORLD-BEAM-QS18-Ultrasonic-Sensors/#overview)
It seems like I wired everything properly - brown on 12V from the PD board and blue on ground from PD. The white runs to the signal on the Digital I/O on the DSC. The LEDs on the sensor work fine and respond to the range/out of range objects.
However, now I’m stuck in LabView. The example for the ultasonic involves sensors with send/receive. The one I have is an integrated one.
How do I go about programming such a sensor?
Any help is greatly appreciated.
I’d try to integrate the MaxBotix EZ1 example into your code and see if that works.
The sensor you’ve specified is a simple on/off switch. It doesn’t provide any information about how far away what it’s sensing is. All it tells you is whether or not something is being sensed within its calibrated range of distances. Read it as a DIO input, as if it were a limit switch, giving you a true/false value.