How do I take 4 frequency readings with a USB-6251?

Can I take frequency readings on 4 different digital input channels of my USB-6251?  I am using 1 of my counter channels for a Pulse-Width output.  Can anyone show me some example code for this or explain how to attempt this?
Jeremy Backer
CLAD

Hi JMBacker,
You can make a frequency measurement from
you digital lines, but you would have to do it in software. To actually
take a frequency measurement in hardware you would have to use a
counter input.
In order to do this with your digital
inputs you will have to know your sampling rate, and do some
manipulation to the array of values that you get when reading the
values from the port. You would only be concerned with the 4 lines of
the port you configure. Once you store that data in the array you would
have to check for the number of samples between two transitions from 0
to 1, then multiply that by (1/sampling frequency) and take the inverse
of that value. This will give you the frequency value of one period of
your input signal. You would have to do this process with each of the 4
desired input lines in one port. 
Attatched is an
example program that takes that measurement and computes the frequency
in software. This is in LabVIEW version 8.2.1, but can be used in any
version at or newer than that version.
Chris N WhiteHigh Speed Products Group
Attachments:
Meas Freq-Digital_mutli_line.vi ‏34 KB

Similar Messages

  • How do I take a screen shot with my iphone 5S?

    How do I take a screen shot with my iphone 5S?

    Press the "Home" button and the sleep/wake button at the same time to take a screen shot.

  • How do I take 300 dpi photos with my iPhone 4s? And how do I export them to my MacBook Pro at 300 dpi to use as I want to print photos.

    How do I take 300 dpi photos with my iPhone 4s?
    And how do I export them to my MacBook Pro at 300 dpi to use as I want to print photos.
    I have been using the standard camera on the iPhone and require 300 dpi to create photo books as the photos are resized according the layout.
    Your time and assistance in appreciated.
    Thanks

    Thanks Tonefox!
    After looking at a few of the links I found a mathematical equation that assisted me.
    Inches = Pixels/DPI
    eg: 3 inches = 300 pixels/100 DPI
    Using this equation and the fact that iPhone 4s takes photos that are 3264 x 2448 I was able to work out the largest print I could make with 300 DPI.
    Width 3264 pix/ 300 DPI = 10.88 inches
    Height 2448 pix/ 300 DPI = 8.16 inches
    Therefore, the largest print (with 300DPI) I can make of these photos is 10.88 inches x 8.16 inches.
    Which is great!
    So is it critical for me to change the dpi in say photoshop or does it not matter as long as I don't go above the 10.88 inches x 8.16 inches?
    From what I can gather the smaller I resize the photo the higher the DPI and the bigger I stretch the photo the lower the DPI?
    Further clarification will be much appreciated. Thanks

  • How do I take a thermocouple reading with a pci6025E?

    How do I take a thermocouple reading with a pci6025E? I have seen some postings with scxi-1112 modules which I do not have. I need advice from the ground up. Do I need external circuitry, can I just wire both leads of the thermocouple to Ain0 differential pins, what vis are necessary in the actual programming... If there is an example program or anything else that might seem relavent? I appreciate any help.

    This is most probably a result of multiple factor that make the measurement imperfect:
    - You're not using signal conditioning, so your resolution is definitely very reduced. Any temperature drift in the board could cause a big difference in the reading. I recommend you run your vi for approximately half an hour, unplug the accessory and perform a self calibration. This will have the board at the operational temperature you're expecting and will give you the best results.
    -I personally would recommend using a different sensor type (RTD or Thermistor) as the CJC source, in order to obtain an accurate measurement, otherwise you have a bit of a "chicken and egg" problem, because you're using thermocouple 2 as the CJC for thermocouple 1, but what are you using as the CJC source of thermocouple 2?
    - Are both your thermocouples of the same type and manufacturer? Due to the nature of the thermocouple itself, you can find slight variations between thermocouples from different vendors, due to the purity of the metals used. While this would usually be almost impossible to detect, it might be driving your voltage just enough to be in the next detectable voltage step (again, due to the reduced resolution).
    - I've worked with temperature sensors for a while, and I'd still recommend that you try some sort of signal conditioning in order to increase your accuracy. Even a small amplifier and a passive lowpass filter will do great. I know you said you don't have SCXI, but if you want some lower cost ready to use applications you might consider looking at the SCC Carriers and modules we have.
    I hope these suggestions help. Please let me know if you have any other questions.
    Daniel

  • How do I take a screen shot with MacBook Pro?

    Thought I could take a screen shot with my MacBook Pro but can't find any instructions.  Help

    Press the Shift, Command, and 3 keys to capture the entire screen.
    Press the Shift, Command, and 4 keys to capture a draggable part of the screen.
    Press the Shift, Command, and 4 keys followed by the spacebar to capture a window.
    Open the png on the desktop.
    (82116)

  • When using the LabVIEW Simulation Module, how can I start a frequency sweep with the Simulation Chirp signal generation VI at an arbitrary time after the simulation initial time?

    I'm using the Simulation Loop on LV RT when interacting with some hardware (i.e. all I/O is happening in the Sim loop). I'm going to conduct a frequency sweep test on the hardware and want to use the Simulation Chirp function. However, there is no way (that I can see) to trigger the Chirp to start at some event (i.e. I click a boolean on the front panel and enter a case statement). The Chirp is tied to the global time of the Simulation loop and so are it's input parameters. Is there a way to make it relative to some time at which an event happens?

    Craig,
    Your solution will 'cut' the beginning of the signal and only show the signal afterwards.
    To control when the chirp should start, the best option is to use the Chirp Pattern.vi ( in the Signal Generation palette) and use a Lookup table to control when to feed the time. The shipping example (in LabVIEW 2013) shows how to code using a lookup table.
    C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\Control and Simulation\Simulation\Signal Generation\SimEx Chirp.vi
    Then, to start from a toggled boolean, look at the example:
    C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\Control and Simulation\Simulation\Signal Generation\SimEx Step.vi
    and Here is the example in 2013 (in attachment):
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments
    Attachments:
    SimEx Chirp with Delay.vi ‏241 KB

  • How can I take raw image files with my iPhone?

    I want raw image files from my iPhone so that I can process them with ACR.

    The phone only works in one resolution. You cannot reduce it. The back camera has a higher resolution than the front camera. That is in the specifications. You can check the camera information in the User Guide here. http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf

  • How do i switch my CS6 from Windows to my Mac? How can i take my license key with me?

    I am a teacher and started to use all my programs on my MacBook Pro now. How do i switch my Windows Version of CS6 to a Mac Version, without having to buy a new Key? I am not using the Windows version anymore.

    http://helpx.adobe.com/x-productkb/policy-pricing/order-product-platform-language-swap.htm l
    Mylenium

  • How can i take out a warranty with an apple product?

    hi, i have recently (on the 23rd of february 2014) purchased an apple ipod touch 5th generation from rakutens play.com. i would like to register my ipod for the apple hardware warranty (1 year). any help please? thanks in advance.

    The Apple Product Registration website is closed.
    If you’re trying to register an Apple product, chances are it’s already registered. Most Apple products can be registered when you turn them on for the first time and begin the setup process. Service and support for your Apple product are linked to its serial number, so it’s OK if you don’t register it. If you'd like to check the service and support coverage for your Apple mobile device or computer, click here.
    ll you can do is check your coverage as roaminggnome said

  • Moving to another state without computer. how do I take itunes with me?

    Im moving to another state without my computer. How can I take my itunes library with me for when I eventually get a new computer?

    Copy your iTunes folder to a USB flash drive if it will fit, otherwise to a portable flash drive.  When you get a computer, copy the folder in.

  • How do I take panarama pictures on iPhone4s

    How do I take a panarama picture with iPhone 4s?

    you currently can't take it with the built IOS camera, however you can download an app like this http://itunes.apple.com/us/app/autostitch-panorama/id318944927?mt=8  see if that suits your needs if it doesn't then do a search in the app store.
    Or you can wait for the new IOS 6 to come out - as it will have that function.

  • How do i take one layer with multiple selections...

    how do i take one layer with multiple selections and make those selections their own layer?

    Yes sir. It w was really hard to explain. It is discontiguous segments that are separated by transparent areas. And I want those non transparent areas to be on their own layer. I have a photo shop file that has a bunch of buttons on them and they are on a transparent background. It is one layer. I want to select all the buttons and put them on their own layers. I can do this manually by selecting a button and cmd Just to a new layer, but when I have 200 buttons it is a daunting task.
    Sent by MailWise<http://www.mail-wise.com/installation/4> – Your emails, with style.

  • I share an iTunes account with my siblings. So their contacts appear on my phone too. How can I take it off?

    I share an iTunes account with my siblings. So their contacts appear on my phone too. How can I take it off?

    You can share the same Apple ID in
    Settings > iTunes & App Store > Apple ID: here
    But for all other Apple services like:
    FaceTime, iMessage, iCloud, etc, one of you should use a different Apple ID.

  • How do I take screen shots with the new update iOS 5 on my iPad and iPhone?

    When I try to take screen shots on both my iPad and iPhone they both come up with the screen to shut down the devices. I've updated both with iOS 5. Any clues on how to take a screen shot with iOS 5?

    As with the previous iOS versions.
    Press and hold the Home button and use the on/off or sleep/wake button as a camera shutter button for the screen shot.
    Or while pressing and holding the on/off or sleep/wake button before the slide to power of appears, use the Home button as a camera shutter button - this must be done before the slide to power off appears.

  • Lost home PC with my iTunes account on it in a home fire.  How can I take everything from my iPhone 4 and put it on my new PC?

    Lost home PC with my iTunes account on it in a small home fire.  How can I take everything from my iPhone 4 and put it on my new PC?  Is this even possible?  iPhone 4 / new PC running Win XP Pro.  I have backed up to iCloud recently so the info is out there, just need to bring it down onto my PC....
    Need HELP.............

    Copy from iPod to computer
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities
    The sync to iPhone
    iTunes: Syncing media content to iOS devices and iPod

Maybe you are looking for

  • EAR Packaging with utility jars

    In my application , the EJB's as well as servlets user log4j.jar ( logging utility). I have included the log4j.jar in WEB-INF/classes folder of the war file. Do I have to include the log4j.jar in the ejb-jar file also ? Do I have to explode the log4j

  • Planner Group field in equipment master data

    Dear All, My client is having Maintenance dept. which is divided in to 3 sub departments like Mechanical, Electrical & Civil. By referring this I am going to create following Planner Groups. I have decided to maintain following planner groupu2019s fo

  • Installing Configuration Profile Fails

    A configuration profile is required to install security certificates to iPad. Created a configuration profile with iPhone Configuration Utility 2.2. Utility recognizes iPad, but clicking "Install" button on "Configuration Profiles" page does nothing

  • When opening a webpage, my browser stops downloading its content while waiting for an eternity at certain items, how can I filter them?

    Because of the location where I live, most of google services are blocked on the internet. Yesterday I wanted to download a device driver from www.m-audio.com but the driver's page stopped loading. I noticed a message at the bottom left of the Firefo

  • Can I run the emulator in -Xautotest mode with an external API?

    Hello, I am currently creating an implementation to a JSR and I want to test the implementation with the test harness. I start the harness and then the test agent. I want to start the agent in autotest mode, using the -Xautotest switch, like this: em