How can I configure the CTR 1 GATE to output a pulse (10us long) and then immediatel​y take a pulse width measuremen​t?

I'm using the BNC-2120 DAQ and LabVIEW for interfacing with an ultrasonic position sensor.  The sensor is the "PING))) ultrasonic range finder."  It measures the distance from PING))) to some object directly in front of it.  It has 3 pins (5V, ground, and a signal pin).  The 5V and ground are easily taken care of with the 5V and digital ground outputs on the DAQ.  The signal (SIG) pin works in the following way:
1) Send a 10us, 5V pulse to SIG.  This triggers PING))).
2) Wait 200us.  PING))) takes a distance measurement.
3) SIG outputs a square wave with a specific pulse width. 
The pulse width varies with the distance of the object away from PING))).  I've tried using CTR 1 OUT to generate the pulse, and then using CTR 1 GATE to measure the pulse width.  However, the measurement is stuck measuring 0V because CTR 1 OUT is on the same pin!  So PING))) tries to output a pulse, but cannot due to the fact that CTR 1 OUT forces the SIG voltage to be 0V.  So I need to use just one counter I/O line to trigger and measure.  How can I do this?

Hi Matttastica, 
What DAQ
card are you using? The reason I ask is that the PFI lines on some cards can be
used as PFI lines and digital I/O lines, while on others they can only be used
as PFI lines. The pinouts and diagrams for our cards can be found at www.ni.com/manuals. You can accomplish
what you are looking to do if your PFI line is a DIO lines as well.
I would
suggest doing two tasks, one for counter output and one for counter input.
(Note that both these are not going to be the same line). The counter output
will be used to do a single pulse generation, while the counter input will be
used to read back the period. 
This will
work because, at first, we are going to route the line from the counter output
to the counter input line by using a ‘DAQmx connect terminals’ (basically
making the input line an output line for a moment). First, setup the tasks and
the DAQmx connect, start the tasks and have the counter output do a ‘wait until
done’ to ensure the pulse is sent. After this is done, do a DAQmx disconnect
terminals (turning the input back from an output to an input), and then do a
DAQmx read for your counter input (period measurement). You may look at the
shipping examples for pulse generation and period measurement in LabVIEW (Help »
Find Examples... » Search tab … search for examples)
One note is
that since this is software timed, it may not be fast enough to meet your 200us
timing. If this ends up being the case, please look at the 6552, as it can do
per clock cycle direction change very fast.
David L.
Systems Engineering
National Instruments

Similar Messages

  • How can I configure my new Mac Pro to output the timeline via HDMI

    How can I configure my new Mac Pro to output the timeline in FCP 7 (yes, I have X, but I'm using 7 right now). I have two monitors running from TB2, but want to have the third for a client monitor.
    If I use all three via TB2, it's literally three monitors, and I want to edit on my CineDisplay. I only want the client to see the timeline video on the third monitor. When I hook up HDMI I get no signal, in fact, I can't have the HDMI cable hooked up for TB2 to work with the third.
    Thanks,
    GEvans
    DarthPro
    3.7 QCIntelXeonE5
    12 GB
    AMD FirePro dual D300 2048MB
    OSX 10.9.2

    If you use all ThunderBolt displays, or stick with DisplayPort and Mini DisplayPort (free conversion between the two with only a cheap cable) you can have up to six displays.
    If you attach "legacy" displays with "any-old adapter", you can have up to two, and the built-in HDMI counts as one if you use it.
    Any more requires ACTIVE Adapters.
    The US$100 Apple ACTIVE Mini DisplayPort to Dual-Link DVI adapter works in every case, even displays over 1920 wide.
    StarTech and Accell make US$35 ACTIVE adpters that work for displays up to 1920 wide.

  • How can we configure the width of the table in SAP DB

    Hello sirs,
    How can we configure the width of the table in SAP DB? (<b>i.e to specify the total width of the sum of all columns</b>). I need to change the default value of table width for adding fields with biggger sizes...
    With best regards,
    Sudheesh....

    Hi,
      The restrictions for using SAPDB are available at the following link http://dev.mysql.com/doc/maxdb/en/f6/069940ccd42a54e10000000a1550b0/content.htm
      The 'internal length of the table' is 8088 bytes, which intern maps to the column width attribute.
    Can we change the column width?
    The answer is 'NO'.
    check the general Column width error (-1115) at link below where it is specified that the column width can be altered http://dev.mysql.com/doc/maxdb/en/bb/57f18204fd11d2a96c00a0c9449261/content.htm
    Refer link below for more details on the width of each column (based on the datatype associated with the column). http://orgs.man.ac.uk/documentation/mysql/manual_Column_types.html
    So we will have to judiciously look into the boundary values for each column and set the right length because if the column is char(200) and it holds a null value then length allocated is 200 bytes.
    The restriction cannot be broken.
    Regards,
    S.Divakar

  • I accidentally erased a music album that I purchased on iTunes. How can I get the iTunes store to recognize that it is no longer in my iTunes library and download it again?

    I accidentally erased a music album that I purchased on iTunes. How can I get the iTunes store to recognize that it is no longer in my iTunes library and download it again?

    Delete the broken links in iTunes then look at your purchased list to redownload.
    If this happened because you were deleting files from the iTunes folder in Finder, don't.  You have to let iTunes do all the deleting and moving or you will end up with broken links.

  • How can I make the background one solid color?  It is too difficult and noticeable when I use the retouch button and try to erase all the creases in my backdrop.  So, how can I have just a solid white background?

    How can I make the background one solid color?  It is too difficult and noticeable when I use the retouch button and try to erase all the creases in my backdrop.  So, how can I have just a solid white background?

    When talking about a specific image posting the image may be useful.
    One can use a Layer Mask and add a white Layer underneath.

  • How can I change the account name in iCloud.  My email has changed and I want to change it on iCloud.

    How can I change the account name in iCloud.  My email has changed and I want to change it on iCloud.

    To change your iCloud ID, go to Settings>iCloud, tap Delete Account, then sign back in with the new ID.  This deletes the account and your iCloud data from your device, but not from iCloud.  Provided you are signing back into the same account, your iCloud data will reappear on your device when you sign back in.
    To avoid losing photo stream photos, save them to your camera roll (if not already there) before deleting the account.  To do this, open your my photo stream album, tap Edit, tap the photos, tap Share, then tap Save to Camera Roll.
    To change the ID on your Mac, go to System Preferences>iCloud, sign out, choose Delete for all the prompts (your data will still be in iCloud), then sign back in with the changed ID.

  • How can I get the old view of iCal back on my MacBook Pro and iPhone?

    How can I get the old view of iCal back on my MacBook Pro and iPhone?  The Mavrick version is crisp and clean but a colored dot is not the same as a highlighted word. I rely on my iCal on my MacBook Pro and iPhone 5 to help me track which of the 8 sites I visit for my job during the week - the color coding is (was key) to organizing and tracking meetings.  I hate the upgrade! 

    If purchased through the Mac App Store then it can be installed on up to five authorized CPUs. Otherwise, it's controlled by the license that came with the software.
    To install on another computer copy the downloaded installer application to the other computer.

  • HOW CAN I CHANGE THE IDIOM OF PHOTOSHOP CC?, MINE IS IN SPANISH AND I WANT IT IN ENGLISH

    HOW CAN I CHANGE THE IDIOM OF PHOTOSHOP CC?, MINE IS IN SPANISH AND I WANT IT IN ENGLISH

    Change the language preference in the CC app settings and reinstall the program.
    Mylenium

  • I just downloaded iCloud on my PC and noticed that fewer than half of my photo stream photos have transferred over to my PC.  Why is this happening and how can I get the remaining photos?  All of my devices are charged and have perfect internet signals.

    I just downloaded iCloud on my PC and noticed that fewer than half of my photo stream photos have transferred over to my PC.  Why is this happening and how can I get the remaining photos?  All of my devices are charged and have perfect internet signals.  Thanks in advance for any tips and insights!

    It's probably happing because photo stream photos only remain in iCloud for 30 days (even though your last 1000 photos will remain on your devices until deleted).  When you enabled photo stream on your PC you would have only received photos from the last 30 days.
    To transfer older photos to your computer, create a shared photo stream that contains them and invite yourself as a subscriber (see http://help.apple.com/icloud/#mmc0cd7e99).

  • I have used the resume tablet and put my resume into format but when emailing it, it will not open on windows. How can I change the format to where they will be able to open and view it?

    I have used the resume tablet and put my resume into format but when emailing it, it will not open on windows. How can I change the format to where they will be able to open and view it?

    I guess you mean one of the resume templates.
    What "format" have you saved your finished resume in?
    The only formats a Windows user will be able to open are .doc (Word), .pdf and rtf. The 1st 2 are usually the best.
    There is no Windows version of Pages.
    Peter

  • How can I stream videos that come into my imac directly to my AppleTV and then my TV

    how can I stream videos that come into my imac directly to my AppleTV and then my TV?

    Or... you can just use a 3rd party solution.
    Best solution for streaming audio and video to your Apple TV from an Mac or Windows PC... without using iTunes... is Airparrot. You can screen share your Mac to your Apple TV. It even lets you select your overscan/underscan and video quality.
    Download it and install. It shows up in your system tray. As long as you are on the same network as your Apple TV, just right click the Airparrot icon and select Apple TV as your Airplay device.
    http://airparrot.com
    Then hook up your wireless keyboard and mouse and plop on the couch for some supersized web browsing.
    It's 20 minute sessions for the free version, $9.99 for full and can gift to someone for $4.99 if you buy for yourself.

  • HT1473 how can I download an more than one audio cd to itunes, scramble all and then transfer all back to a R/W cd?

    how can I download an more than one audio cd to itunes, scramble all and then transfer all back to a R/W cd?

    Import the CDs to iTunes one at a time, following these instructions.
    Once the tracks are in your iTunes library, put them into a playlist, and get them into the order you want.  Or if you by "scramble" you mean a randomly shuffled order, use the crossing arrows at the lower left to do so.
    When you are ready, insert a blank CD, use the command File > Burn Playlist to Disc, and create an audio CD.  I strongly suggest using CD-Rs rather than CD-RWs, since the latter often have trouble in normal CD players.

  • HT4356 How can I configure the printer to print only grey tones from my iPad 2? Printer=Hp6520

    How can I configure printer with iPad to print only grey tones? This works fine from my laptop - not air printing from that one though.  I can't find anywhere on the iPad how to do printer settings and this also seems not to be available as an option when doing a printout.  In fact, no options seem to be available.  Thanks in advance for reacting!
    Hermi

    There is currently no option for this. You can give Apple feedback here:
    http://www.apple.com/feedback/ipad.html

  • How can I view the videos of adobe flash player that apple no longer support?

        How can I view the videos from the internet and networking of adobe flash player that apple no longer support?

    Flash Player version 10.1.102.64 is the last version available to PPC Mac users. However, this Flash version won't work for many videos on Facebook, YouTube and other sites. Adobe's latest version, 10.2.x or later, is only for Intel Macs. Adobe will not provide a newer Flash version for PPC Macs.
    The message requesting that you download Adobe Flash Player takes you to Flash Player requiring an Intel processor. Doesn't work on a PowerPC processor. I found a hack, installed it & it works with Firefox, TenFourFox & Safari.
    Download this http://www.steelbin.com/FPforFBPPC.zip to your desktop, unzip it, and replace the current Flash Player plug-in which is in your main/Library/Internet Plug-Ins folder, (not the user Library). Save the old one just in case this one doesn't work.
    Hack Allows PowerPC Macs to Access Flash 11 Content
    http://lowendmac.com/ed/royal/12sr/flash-11-and-powerpc.html
     Cheers, Tom

  • How can I get the erasure tool to leave a white or color background and not checkered?

    When using the erasure or erasure background tools, it leaves a checkered background. How can I get the erasure tool to leave a white or color backround?

    Jpegs can't have transparent areas. Most likely you had layers and were forced to save "as a copy", which means that the image which remains open in PSE is not the jpg. A file saved as a copy makes a copy in the save format, but it's not like save as where you now see the newly saved version instead of the original. The original remains open and unsaved onscreen.

Maybe you are looking for

  • How does one access custom function in OBIEE RPD for Session Init Block SQL

    Hello: We are using SSO for authentication and authorization for OBIEE, using Init Blocks in the RPD and httpHeader as the source of variables in the Instanceconfig.xml file. (As long as the user is member of one group, the results are fine. However,

  • Ticker text width problem

    I have created news ticker in my Flash application. I took one movie clip and put one dynamic text into it. made the dynamic text autosize. so text and movie clip width are set to the text width automatically. I am moving the movie clip by changing t

  • Read statement with duplicate key fields

    Hello, I have an internal table(EKBE) with 8 fields ebeln ebelp vgabe gjahr belnr budat wrbtr refkey populating the first 7 fields from EKBE table with VGABE = 2 and PO#, concatenating the WRBTR and GJAHR to get the Refkey and passing this to the 8th

  • Dispute Case - Write-off entry

    Dear Experts, When we write off any invoice through UDM_AUTOWRITEOFF in FSCM, system Debits the Bad debts write off (P&L) A/c and Credits the Customer A/c. However, we want system to segregate VAT, Tax and Freight amount from Bad debts write off A/c.

  • Reg: measuring point creation and measuring point counter creation

    how to create measuring point and measuring point counter. what is the difference between these two. what is measuring point category, what is measuring point what is measuring point object what is measuring position. can anyone explain me in an easy