11-16-2010 02:47 PM
I need to create a 5E-6s high and 5E-6s low TTL signal to send to a Parallax Ping. I then need to be able to measure the pulse width of the return signal. I am trying to do this in order to measure distance with sonar. Any suggestions?
11-16-2010 03:01 PM
Sorry. The USB-6008 has software timed digital I/O. You cannot run it fast enough to create the 5 us pulses you want. You will need a faster DAQ device or some external circuitry that you trigger from the 6008.
Lynn
11-16-2010 03:09 PM
Would it be possible with a NI USB-6501?
11-16-2010 03:29 PM
On page 13 of the User Guide and Specifications it says that the DIO is software timed, so that device will not work.
Lynn
11-16-2010 04:26 PM
Well since you seem familiar with Parallax you might want to use one of their microcontrollers as the trigger generating device. Or you could use a $2.00 controller like the ATMEL ATTINY13 (8 pin 20Mhz). Use your USB-6008 to create a pin change on the external micro via a DIO on the 6008. Then listen for the ping return from the Parallax Ultrasonic on the USB-6008 counter input. Remember to divide the width of the return pulse by 2 (ping time down and back) to get the correct distance.
You could have a simple push button on the LV FP to start the ping and an Indicator to display the result. On the Block Diagram you could probably getaway with an Express VI for DAQAssist, since the timing will be sloppy any way.
Alan