09-16-2009 06:57 PM
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?
Solved! Go to Solution.
09-17-2009 08:01 AM
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
09-17-2009 08:45 AM