40kHz ultrasonic pulse and time it take to receive the Pulse.

Hi,
 i have developed  the following circuits:
Tx: a Circuit that generates a 40kHz frequency using an LM555, the LM555 is wired to an AND gate which when using the test panel on MyDAQ(6216) i set cntr0 and set it to edge detecting i can count the number of edge detections when i enable the port High and when i switch it low it stops recording the counts.
Rx: Recieving circuit contains an OpAmp which is fed into an LM567CN tone decoder which is tuned to 40Khz. when the recieving circuit PLL locks on to the 40kHz signal the output of the LM567 pin 8 switches to ground.
Question: I am very new to NI and wondering where the starting point would be to create a VI that will trigger the Tx circuit and then measure the time it takes the Rx circuit to recieve the signal, this will intitial be done through air and then i would like to move it through a meduim such as water. Has  anyone tried or seen anything that would be of use to create a vi that would match this.
Any help would be greatly appericated.
Phil
Solved!
Go to Solution.

Are you using a myDAQ or a 6216?  You mentioned both... I'm going to assume 6216:
You'll want a two edge separation task, and also a digital output task.  
The digital output will control the enable signal for the LM555.  Connect it from the digital output line to your AND gate as well as to one of the PFI lines on the 6216 (it will be the "first" edge).  Connect pin 8 of the LM567 to a different PFI line on the 6216 (the "second" edge). You can configure rising/falling polarity via the Create Channel VI (it sounds like your second edge will be "falling").
Programming would be as follows (in order):
1.  Configure the tasks as shown in the linked examples (i.e. create channel / configure timing).
2.  Start the digital output task.
3.  Write the digital output "low" to make sure it is initialized.
4.  Start the two edge separation task (it should be buffered like in the linked example even though you are only reading one sample).
5.  Write the digital output "high".
6.  Read (one sample) from the two edge separation task.  Specify a read timeout long enough to ensure the falling edge is seen.
7.  Write the digital output "low" (assuming you want to turn off the Tx when you are done with the test)
8.  Stop and Clear both tasks.
The measured result will have a 12.5 ns resolution using the default 80 MHz timebase on the 6216.
Best Regards,
John Passiak

Similar Messages

  • I have a cracked screen, does anyone know the cost and time it take apple to repair?

    I have a cracked screen, does anyone know the cost and time it take apple to repair?

    I'd like to know too for my MacBook Pro Retina (Late 2013). Having spoken to some Apple Stores here in Sydney, I need to bring in the computer for them to tell me. I'll know more tomorrow.

  • Why won't my camera work? I used the screen shot for the first time and since i did that every time i take a picture the shutter closes as though it's taking it but no picture gets taken...help! Any suggestions?

    Why won't my camera work? I used the screen shot for the first time and since i did that every time i take a picture the shutter closes as though it's taking it but no picture gets taken...help! Any suggestions?

    Hey briannagrace96,
    Welcome to Apple Support Communities! I'd check out the following article, it looks like it applies to your situation:
    iPod: Appears in Windows but not in iTunes
    http://support.apple.com/kb/ts1363
    You'll want to go through the following troubleshooting steps, and for more detail on each step follow the link to the article above:
    Try the iPod troubleshooting assistant:
    If you have not already done so, try the steps in the iPod Troubleshooting Assistant (choose your iPod model from the list).
    If the issue remains after following your iPod's troubleshooting assistant, follow the steps below to continue troubleshooting your issue.
    Restart the iPod Service
    Restart the Apple Mobile Device Service
    Empty your Temp directory and restart
    Verify that the Apple Mobile Device USB Driver is installed
    Change your iPod's drive letter
    Remove and reinstall iTunes
    Disable conflicting System Services and Startup Items
    Update, Reconfigure, Disable, or Remove Security Software
    Deleting damaged or incorrect registry keys
    Take care,
    David

  • Can Iphoto display the date and time of a pic on the pic?

    I know I can get info and see a pics info, but can Iphoto display the date and time of a pic on the pic itself?

    Use the Photos->Batch Change menu option to set the Title to Date and Time. That will give you what you want under each thumbnail.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier versions) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. There are versions that are compatible with iPhoto 5, 6, 7 and 8 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    NOTE: iPhoto 8's new option in the library rebuild pane, "Rebuild the iPhoto Library Database from automatic backup" may make this tip obsolete. We'll know when users have occasion to use it and see if that's the case.

  • My Macbook pro Early 2008 is randomly slow at starting up and when I am backing up to my time capsule I am receiving the following message 'Time machine could not complete the backup. '' ''The backup disk image ''/Volumes/name time capsule/ my name MacBoo

    My Macbook pro Early 2008 is randomly slow at starting up and when I am backing up to my time capsule I am receiving the following message 'Time machine could not complete the backup. '' ''The backup disk image ''/Volumes/name time capsule/ my name MacBook Pro (4).sparsebundle'' could not be accessed (error-1).
    Problem started after deleting parrell desktop and window7 ?
    Please help?

    Look at the more like this column on the right.. this is the most frequently asked question in this discussion area.
    Reboot the TC.. restart the whole network if the simple reboot did not work.. start in order. modem.. router/TC.. clients. 2min gap.
    Read C12 here. http://pondini.org/TM/Troubleshooting.html

  • While listening to a podcast on my iPhone I can e-mail the podcast ID. The email contains the url for the specific podcast. So you would assume that you could put that url into iTunes and it would take you to the podcast. This used to work but no longer.

    While listening to a podcast on my iPhone I can e-mail the podcast ID to share it with someone else. The email contains the url for the specific podcast. So you would assume that you could put that url into iTunes and it would take you to the podcast. This used to work but no longer. Months ago when I would e-mail myself the url all I had to do was click on the link in the e-mail and it took me right to the specific podcast in iTunes. Now it only opens iTunes and I can't figure out how to find the specific one. What good is the e-mail tab on the iPhone if it doesn't connect you to the podcast you sent?

    Same here. I just posted a question too.

  • I am using Adobe Photshop Elements 11, I just transferred all of my data from an old computer to a new computer, all my pictures and documents transferred fine but, my albums are missing and the date and time that is usually under the picture are missing.

    I am using Adobe Photoshop Elements 11, I just transferred all of my data from an old computer to a new computer, all my pictures and documents transferred fine but, my albums are missing and the date and time that is usually under the picture are missing.. How do I get them back?

    Hi,
    Which operating system are you running on?
    The date & Time can be displayed by going to the View menu and checking Details - also File Names if you want them displayed.
    The Album information is saved within the catalog so it sounds as though you didn't do a catalog backup on the old computer and a catalog restore on the new computer which is the recommended way of transferring elements data. Did you just copy the photos over?
    Brian

  • I have purchsed iPhone 4S from US. Now my screen is broken and want to get it repaired. What will the cost and time taken in repairing of the same in India. I came to know that if iphone is purchased from US it cant be repaired in India. Is it true. If ye

    I have purchsed iPhone 4S from US. Now my screen is broken and want to get it repaired. What will the cost and time taken in repairing of the same in US.

    You cannot get warranty or out of warranty service in India on a US purchased phone. The warranty on the iPhone is not international.

  • Email syncs now say "Updated Mar 30", the day I upgraded to Lollipop 5.0.  The notification should read the date and time you updated email receiving.  Does anyone elsehave this problem?

    Email syncs now say "Updated Mar 30", the day I upgraded to Lollipop 5.0.  Two days later it is still saying Mar 30.  The notification should read the date and time you updated email receiving.  Does anyone else have this problem?  Is there a solution to this?

    We want to make sure your phone is in working order Mb_in_NC. I know it can be difficult when you see different times. What is your make/model of your device? When did it start? Do you have a different time on any other applications?
    AmberF_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • Its 9/10 and I still haven't received the Gingerbread update... Any suggestions VZW?

    Its 9/10 and I still haven't received the update... Any suggestions VZW?

    Hold on tight it'll come i got mine accouple days ago. An when it Does some things to remember before you except
    it. 
    Do this:
    Make sure you run the battery down an then Recharge it fully before doing the update.
    Its a good idea to be close to the Tower so you can get the best signal while doing the update process
    let the update go fully thru its steps it will take from 20 to 30 min. an no incoming or outgoing calls can be made an at the end of the update for about 2 to 3 min. it will look like its doing nothing but it is just leave it alone an finally it will be done an will be then at the home screen.
    i would then shut it off wait about 5 min an then turn it back on. the boot up process will be alittle faster.
    And my final suggestion is enjoy your new Incredble thats what i call mine.   B33 

  • Hi, i sent my 1st gen ipod to apple way back in november 2010 and its march now and i still haven't received the replacement, what do i do? life without music is -_-

    hi, i sent my 1st gen ipod to apple way back in november 2010 and its march now and i still haven't received the replacement, what do i do?
    life without music is -_-

    call apple because there may be an issue with the shipment you should have had the ipod replaced a long time ago
    APPLE
    1800-275-2273

  • I am trying to setup Microsoft office mail and need assistance  - I am receiving the error, unable to find server and DNS setting in the Network

    I am trying to setup Microsoft office mail and need assistance  - I am receiving the error, unable to find server and DNS setting in the Network

    Which version of OSX and what email provider are you using.

  • Greetings, everyone. I just bought an iPad Air and after setting it up, received the following email, which looks scammish to me.

    Somehow I didn't finish my question. It was: Greetings, everyone. I just bought an iPad Air and after setting it up, received the following email, which looks scammish to me.(Partially reproduced below.)  Or is it legitimate?
    "You’ve taken the added security step and provided a rescue email address. Now all you need to do is verify that it belongs to you."

    This is genuine if you have submitted Rescue email address (tap to enlarge)

  • Using Adobe SendNow and so many people not receiving the mail!

    Using adobe sendnow and so many people not receiving the mail! How do you stop or limit the messages going to spam/junk? Is that where they are going? Please help!

    There are many hundreds or thousands of different spam filters, so it's impossible to say what triggers them. You can do a test though: send the same file, but for a subject use only "File for ...." and give the person's exact name. No other words. If this gets through, your words unfortunately have been used by too many spammers. (Rather like someone with the misfortune to be called James Viagra - nobody would ever receive their email).

  • I am trying to set up my daughter's iTouch.  I am connected to our Wi-Fi, and have confirmed this in Settings,  but when we try and open any webpage we receive the message that page cannot be opened because not connected to the Internet

    I am trying to set up my daughter's iTouch.  I am connected to our Wi-Fi, and have confirmed this in Settings, but when we try and open any webpage we receive the message that page cannot be opened because not connected to the Internet.  I have already re-set the iPod, have shut-down and restarted, and told the iPod to "Forget Network".  please help - i am going bananas!

    Encryption wouldn't matter except for Wifi.
    While 10.2 might help, there's not much you can do on the Internet these days with less than 10.4.11
    Tiger Requirements...
    To use Mac OS X 10.4 Tiger, your Macintosh needs:
        * A PowerPC G3, G4, or G5 processor
        * Built-in FireWire
        * At least 256 MB of RAM (I recommend 1GB minimum)
        * DVD drive (DVD-ROM), Combo (CD-RW/DVD-ROM) or SuperDrive (DVD-R) for installation
        * At least 3 GB of free disk space; 4 GB if you install the XCode 2 Developer Tools  (I recommend 20GB minimum)
    http://support.apple.com/kb/HT1514
    http://www.ebay.com/sch/i.html?_nkw=mac+os+x+tiger+retail+10.4
    See Tom's, (Texas Mac Man), great info on where/how to find/get Tiger...
    https://discussions.apple.com/message/15305521#15305521
    Or Ali Brown's great info on where/how to find/get Tiger...
    http://discussions.apple.com/thread.jspa?messageID=10381710#10381710
    As far as Memory, that's sort of easy, find your eMac here...
    http://eshop.macsales.com/MyOWC/Models.cfm?Family=emac&sType=Memory
    As far as Hard Drive, it's not easy to replace the Internal drive, I'd maybe suggest an external Firewire drive to boot from...
    http://eshop.macsales.com/item/Other%20World%20Computing/MAU4S7500G16/

Maybe you are looking for

  • MacBook Air can't connect to IPhone 5?

    Am I missing something or can the MacBook Air really not connect over bluetooth to the IPhone 5? I have paired the devices, but right when I do and then try to connect them, The connection fails on my phone because "'My MacBook Air' is not supported

  • Premiere pro free trail won't open

    The adobe cloud premiere pro free trail is install on my computer but it won't open

  • Mouse Issues and Everyone Blaiming Themselves!

    I've been having problems with my mouse.  It simply stops moving completely for anywhere from a few seconds up to a minute.  I've been tracing the problem and came to one of three conclusions, it's either Video Related, USB Related, or Mouse Related.

  • Wanted particular line item to be billed directly after delivery

    I came across a situation where my client wants particular line item to be billed after delivery.  Say, there are other line items too which are delivered.   How to configure this in system?

  • Plug in Shuffle the 1st time but unable to connect correctly

    Hi, Last night I plugged in my new iPod Shuffle (friend bought in the Summer of 2008 but never had chance to use it or even open the box) to my MBP (summer 2007 version). Strangely, no Setup Assistant showed as indicated in the manual, neither did iT