Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Using cRIO 9073 with 9403 module and Ping Sensor

Solved!
Go to solution

I am trying to get a Parallax Ping))) ultrasonic sensor to work with my cRIO. I have it connected to a 9403 Digital I/O module and am using the PulseGen, SW.vi example. I've connected and configured pin 0 for output and have a scope attatched to the output pin to monitor the output. When I set the pulse width to be anything less than 10 ms long and I try triggering it doesn't always output and when it does it is always 10ms long. Is there a way to reduce this so I can get a pulse of about 5us?

0 Kudos
Message 1 of 3
(4,284 Views)
Solution
Accepted by topic author digilogik

Hi digilogik,

 

You may want to post how you modified the code so we have a better understanding of what to expect from it.  From breifly looking at the shipping example code I could not  guess why a 10 ms long pulse is the only thing you see if all you did was replace the Output 0 indicator with IO nodes.

 

However, if your end goal is to get a 5 usec pulse, then the NI 9403 module is not going to meet your needs as the update rate for the module is 7usec max.  You would be able to do what you need with an NI 9401 module, with the draw back being you go from 32 channels down to 8 with the 9401 vs the 9403.

 

Bassett Hound

Message 2 of 3
(4,273 Views)
I guess my issue was not that I needed a 5us pulse but my circuit was wrong. Was missing a pull down resistor. Since I'm using two shared pins and the sensor only has one signal pin, the output pin of the DI/O module was forcing the line to 0. Luckly the sensor works with a longer pulse. I was not aware of the timing issue which I now will consider. Thanks for your responce.
0 Kudos
Message 3 of 3
(4,271 Views)