LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ Assist

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

 

0 Kudos
Message 1 of 4
(2,726 Views)

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,

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
Message 2 of 4
(2,706 Views)

Hey,

 

I'm good aye. Yeah, i found the problem myself. But thats anyway.

 

Cheers

 

K

0 Kudos
Message 3 of 4
(2,685 Views)

Hi.

 

Im glad your issue is sorted.  

 

Could you please post your solution for future reference for other users.

 

Kind Regards, 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 4 of 4
(2,669 Views)