09-16-2008 05:00 PM
Hello,
I'm trying to get this code to work.
I am using the NI PC6229 with a SCB-68 interface box.
Basically, we have a mobile robot that can send an audible beep. The code sends an audible beep through a speaker at 1900 kHz. I have built a beacon, that looks out for the 1900kHz beep, then via radio wave sends back a signal to the robot that it has arrived. I have an external squarewave oscillator at 100kHz that I use as an external counter and have set up DAQ "Square Pulse" to count rising edges.
The Problem:
I have sent up two other DAQs. "Send Beep" will trigger the speaker circuit, and start the count. "Signal In" is when the radio signal has been received. 340.29 is the speed of sound and the calculation works out the distance of the mobile robot to the beacon. The problem is I need three beacons and I can't seem to reset the "Square Pulse" DAQ so that it starts counting from zero again.
Any help?
Cheers
Kamilan
09-17-2008 06:58 AM
Hi Kamilan,
I hope your well and thanks for the post!
Im not sure what you mean by three beacons...
Also, when you say reset the square pulse you mean the internal counter?
Kind Regards,
09-17-2008 08:33 PM
Hey,
I'm good aye. Yeah, i found the problem myself. But thats anyway.
Cheers
K
09-18-2008 05:26 PM
Hi.
Im glad your issue is sorted.
Could you please post your solution for future reference for other users.
Kind Regards,