Frequency/​Period measuremen​t with USB-6218

I have been trying to get a USB-6218 to measure either frequency or period and have been running in to issues. I have attempted to connected to each counter gate (PFI1 or PFI2) and have not had any luck. I am attempting to meausre lower-frequency signals (1Hz-1KHz) so the Low-Frequency, 1 counter approach seems to be the one I need. The end goal is to get it working in Labwindows. I have made attempts using both sample LabWindows programs as well as MAX. In each of them, it appears that the frequency measurement is actually coming back with the pulse width of both the low and high portions of the signal. For instance, if I am trying to meausre the period of a 100 Hz signal, with a 75% duty cycle, it will toggle between 0.0075 and 0.0025 seconds for the period. If I increase the frequency of the signal to 10 KHz, it measures the frequency well. Is there something I am missing? Based on the manual, I should be able to meausre lower frequency signals using this method. Any help is greatly appreciated.
Thanks.

Can you upload a screenshot of your Task in MAX is setup? Is this happening at all lower frequencies or just at 100 Hz? Lets make sure we can get this working in MAX before adding LabWindows/CVI on top of it.
Sometimes this can happen if the rise/fall time of the signal is not within the specifications of the device. This KnowledgeBase article shows the acceptable rise/fall times. 
Applications Engineer
National Instruments

Similar Messages

  • Can I trigger the read of a buffer period measuremen​t with a external signal (PFI line) with my 6602 card? How can I do it?

    I am doing a buffered period measurement with a 6602 card, Labview real time. I want to measure the period of 6 rising edges of a TTL, but I want to do it exactly when an edge comes on other external signal (of course slowler than the previous one), that is to say that I want an external start trigger. Can anybody help me? I have hardly searched at the web and I have not found an example of code of what I am looking for.
    Another question:
    After reading the buffer, how does my program know that the data has been refreshed in a continuous measurement? I attach two VIs I am trying to make work and a quite explanatory bmp of what I
    want to do.
    Thanks.
    Attachments:
    rtc_regimen.zip ‏3 KB
    Buffered_Period_pulse_generation.vi ‏283 KB
    simgle_counter_pulse_generation.vi ‏177 KB

    Hello;
    I can't think of any way to accomplish that task. Once the counters have only two input pins, and both are in use when one configures the counter to do buffered measurements, there isn't a way to trigger that operation in hardware.
    I'm not sure if I understood your second question, however, the buffered operation on a counter is hardware controlled, meaning that a pulse on its gate input triggers the transfer of the count value from the counter register to the PC memory buffer. That is therefore a continuous measurement.
    Regards
    Filipe A.
    Applications Engineer
    National Instruments

  • 32bit period measuremen​ts with PC-TIO-10

    Hi,
    How do I 32-bit period measurement using PC-TIO-10 counter card (Am9513A
    chip)?
    I try use two cascaded counter without any success.
    Thanks
    Antti Poikonen
    [See first answer for additional information]

    [Attachment(s) for question]
    Attachments:
    Antti.Poikonen.vcf ‏1 KB

  • Help with DAQmx tension measurement and saving to spreadsheet file with NI USB-6218 (very urgent !)

    Hello people,
    I've been given at the last minute a project at school where I need to do some data acquisitions (tensions) with a DAQ NI USB-6218 and it has
    been miserable ever since, I first tried the "easy" way with DAQ assistant to save a given number of samples per channel to a text file
    in order to use it in matlab, well...it isn't working : every time in my text file I have a different number of samples, I used the "Write to spreadsheet" function within a while loop where I wired the path outputs to a shift register in order not to have it asking me the path all the time,
    but I'm still not getting the X number of samples per channel as specified at the beginning.
    So I've been using another method with the DAQmx where I get each individual waveform into a vector of samples, when I look for the size
    of the vector it looks Ok, 100 in my case but the problems start when I try to have a text file where each column will represent a channel for
    subsequent matlab treatment, what I'm doing doesn't seem to be working, it's really unbearable, please help me sort this mess out.
    I'll add both VIs as attachment so it can help you help me, thank you.
    Basically what I need is to acquire 15 tensions with a given number of samples per channel (the same for each channel) and then plot it in matlab.
    Note the first VI has switches to "unblock" each channel but it doesn't seem to be working, please look at both VIs.
    It's very urgent, I could fail my school year if I fail this project.
    Thank you very much for your help.
    Attachments:
    Projet EM acquisition - Copie.zip ‏78 KB
    projet autre version envoyer sur forum.zip ‏20 KB

    Hi Thank you very much for your help, in the meantime, I've changed the project to (see attachment), now
    it is at least writing the waveforms to the txt file, but again there is an another problem, it seems to be ignoring the
    number of samples I specified per channel, it seems to be writing into the txt file for as long as I keep the VI running.
    What is missing ? Also I'd like to have a clock for my samples, that is when I plot in matlab I do not just plot random numbers, but the
    physical analogical inputs as a function of time, that is for instance the first line corresponds to time 0, line 2 to time 0,001
    ect...How could I do that ? For the meantime I got only 5 channels, when I know what my mistake is, I'll expand it to 15 channels.
    Please help me.
    Attachments:
    acquisition 5 voies.zip ‏61 KB

  • Problem with pin reference (USB 6218)

    Hi evryone,
    I am confused concerning the pin references for USB-6218. MAX says to use  pin 15 and 16  for a differential AI (AI0/AIground) on the first channel. This seems correct because my measure looks ok. But when I look at the data sheet (http://www.ni.com/pdf/manuals/372085b.pdf)  these pins correspond to PFI 6/P1.2 and D ground.  The AOs don't match either.
    I must be making a mistake when reading the data sheet. Would anybody know what I am doing wrong?
    Thanks,
    User 
    Solved!
    Go to Solution.
    Attachments:
    Forum.PNG ‏56 KB

    Hi User_1979,
    Did you use a simulate device in MAX?
    These Connections refers to this datasheet of the USB 6218 (P.15). Your measurement seems ok between pin 15-16 (AI0-8), the behaviour is normal.
    Also you can find the device pinout within MAX by right click on the device and click to view the pinout.
    Regards,
    Rémi D.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Les rencontres techniques de NI - Mesures et acquisition de données : de la théorie à la mise en ...

  • Is there a car charger and fm frequency transmitter for iPhone with IOS6?

    is there a car charger and fm frequency transmitter for iPhone with IOS6?

    Here is something interesting about car chargers and the iPhone 3G:
    From Macworld:
    On to the power adapters. Here’s the story: We learned a while back that iPhone 3G doesn’t support charging “via FireWire.” The thing is, there are lots of devices out there that don’t actually have a FireWire port, but are technically FireWire chargers because they’re sending power on the dock-connector pins that were used for power by the FireWire interface. There are a lot of reasons for this, chief among them the fact that the FireWire spec allows as much a 18 volts, while USB is a 5-volt connection. Since cars provide 12 volts of power, many if not most car-chargers used the FireWire method to send power.
    However, in the interests of space and simplicity (i.e., not having to engineer for two separate power paths), Apple has dropped support for FireWire charging with the iPhone 3G. This means that many accessories won’t charge an iPhone 3G. Borchers said that Apple gave accessory developers a strong hint that this was going to happen a while ago, but he said that some companies have continued to implement FireWire-based chargers despite the warning.
    But there’s some hope in sight: Borchers told me that at least a couple of third parties will be releasing converters that will pass through the dock connection, but convert the power to a USB standard. That adapter may make many of those charging devices come back to life

  • Satellite Z830 - Wireless adapter drop out/conflict with USB

    My Satellite Z830 has a wierd problem. The wireless connectivity works well until I plug a usb flashdrive into the usb 3 port on the side. The wireless then drops out after a period and from then on it cant find any wireless connections available. It effectively kills the wireless adapter, or at least makes it less reliable.
    You have to reboot to get the connection back. I've tried with a few different usb storage devices with the same outcome. Both the wireless connection and the usb drive work fine, but not at the same time. This happens regardless of whether using the battery or when plugged in. I checked the power settings to ensure there wasnt some problem there. Everything is just on factory install/settings generally, so I cant imagine it is anything I've changed.
    I'm at work, but I'll see if I have the same problem with the usb sockets at the back, and/or with powered usb hard disk, when i get home. This is really annoying, as you cant use the net and leave a usb disk in without risking a drop out. I havent checked messing around with USB root hub settings or IRC issues as this seems unlikely. Any thoughts or is the a "give it back to Toshiba" issue - I'd rather not have the down time. It took me quite a while to work out this was the problem.
    The wireless connection itself is very strong where the ultrabook is being used, so isnt a signal strength issue.

    I used inSSIDer Office 5 day trial (http://www.metageek.net/support/downloads/)
    too identify the same problem with my Z830.
    _The results are really astonishing:_
    the signal strength measured in dBm increases by > 100 times when the corded mouse is unplugged from the from the side USB port.
    (plugging it into any of the USB ports in the back has no impact on the signal strength.)
    In my case it jumped from -68 dBm to -41 dBm,: the -27 dBm difference means a 22.4 times improvement in signal strength (from about 100 pW to 2,240 pW).
    See wikipedia for signal strength calculations: http://en.wikipedia.org/wiki/DBm
    I tested to plug in an external hard disk into the side USB and it had the same -27 dBm effect on the signal strength.
    In other words the wifi signal strength jumps from poor to excellent when the side USB is not used.
    Toshiba must look into this significant hardware design fault and in the interim, as the very least, must advise their customers against using the side USB port when on a wireless network.

  • Error -200474 in USB-6218

    Hello,
    I am using a USB-6218 to measure voltages using a third-party software (Neurobehavioral Systems Presentation). 
    Most of the time it works well, but every now and then I get the -200474 error.
    The Presentation Software allows setting timeout values when acquiring data, I tried various timeouts from 1 to 10 ms, and it does not seem to influence the frequency of the error at all.
    The task for the USB-6218 is set to read analog input 9, 10, or 11. Presentation reads them separately, although read of AI10 always occurs soon after read of AI9. The error may occur during any of these reads. (I also disabled reads of AI11 for now to reduce the frequency of the error so I can test other parts of my Presentation code, the error keeps showing up from time to time when reading AI9 or AI10).
    The task Acquisition mode is 1 Sample (On Demand).
    Any suggestions?

    Hey,
    When this happens, I recommend resetting the device in Measurement and Automation Explorer (MAX) (Start»All Programs»National Instruments»MAX).  To reset your device, expand Devices and Interfaces»NI-DAQmx Devices, and then right-click on the USB-6218 and select Reset Device, as shown:
    Do you know what version of DAQmx that the third-party software uses?  Is this software an executable, or does it give you access to the source code?  It's possible that this is just a bug that was encountered in an earlier version of DAQmx.
    Regards,
    Sara Lewandroski
    Applications Engineer | National Instruments
    http://www.ni.com/support

  • IPod nano works with USB 1.1 but not USB 2.0

    Anyone using an iPod nano that works with USB 1.1 but not with USB 2.0? I am using Windows XP and when installing the iPod software from CD it recognizes the iPod and am able to transfer songs using iTunes but when installing SP1 or SP2 to enable USB 2.0 transfers, Windows XP only recognizes the iPod nano as a USB Mass Storage Device. This is the same with iPod Updater.

    I have a similar problem with the following configuration:
    - Dell Dimension 4100 Desktop with 2 integrated USB 1.1 ports, Windows 2000 SP 4
    - PCI 6-Ports USB 2.0 Card ("Mentor" resp. www.bona.com.tw), Model USB20-PCI/6P
    What works well?
    - All my USB add-ons (1.1 and 2.0) on the internal 1.1 ports as well as on the USB2.0 PCI card
    - iPod Nano 4GB on internal 1.1 ports (external drive in windows 2000 as well as iPod in iTunes)
    - iPod Nano works as well as on the USB 2.0 card ONLY WHEN my old 4-port USB1.1 hub is connected between Nano and USB card
    What doesn't works?
    My iPod Nano directly connected to the USB 2.0 card. Symptoms when connecting:
    - Windows is very slow, process "scvhost.exe" or "system.exe" using 99% of CPU for some minutes
    - iPod is recognised as external drive, but when I click on it, it is empty and copying files to it results in "I/O error"
    - iTunes doesn't recognise the iPod (of course, if even windows itself cannot read from it...)
    I removed all USB drivers, reinstalled iTunes, iPod (by the way, I still don't understand what "iPod update" is good for, except for updating the iPod's firmware), deactivate the internal USB1.1 ports, no result.
    Help!!!!!!!!!!!!!!!!

  • HP ENVY 6t has many issues with USB headphone, Bluetooth and more serious issue

    HP ENVY 6t doesn't work with USB headphone, unfortunately. could u let me know how to fix it?
    Bluetooth mouse has been working for a day, it suddenly stopped working. Having checked the PC bluetooth connection, which said "Working properly".   Could you let me know how to re-connect, or re-work?
    "Not complete shut-down" blue screen issue right after receiving the HP PC when I closed display to be in sleep mode.
    I see the "Safe mode" "...." or "Normal mode" screen always.
    The HP PC is not stable UNFORTUNATELY.
    Even if just brand new HP PC, there seems to be many issues.

    I would recommend using this document for your mouse: http://goo.gl/XDRRy
    And using this document to troubleshoot your headphones issue: http://goo.gl/hV9fu
    Most of the time with USB headphones, you have to download the driver from the manufacturer before they will work properly.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • How do i let my iphone connect to my computer wifi with usb ?

    As the title stated,
    How do i let my iphone connect to my computer wifi with USB ?
    The reason is because my iPhone 3Gs wifi having some problem. So i have to use a USB cable to connect to my computer and let my iphone to connect to the internet .
    If i don't do this i would have to keep on running out & in to my room & my living room.
    My iPhone 3Gs allows to connect to the wifi when i am in my living room, but once i enter my room the wifi won't be able any more. So please help me out please people
    I'm not sure about why i can't connect to my Ad hoc even it's so near, but i can connect to my router if i am in living rooms.
    Regards,

    I believe the next time you sync your phone to itune via the cord, you will have to check the box that says sync via wifi and also enable that setting on your iphone.

  • TS1538 ipad does not come on once its unpluged from power source,it enters recovery mode when both power and home botton are pressed with usb on powersource but does not come up at all when connected to computer or out of power source

    ipad does not come on once its unpluged from power source,it enters recovery mode when both power and home botton are pressed with usb on powersource but does not come up at all when connected to computer or out of power source

    What model iPad do you have? If it's an iPad 1, the battery may have expired and needs replacement.
     Cheers, Tom

  • Connectivity Issues with USB 3 ports on macbook pro

    Hi,  I have a zoom r24 which is no longer working as an audio interface with my new macbook pro.  I have read a lot about issues with USB 2 devices not being compatible with USB 3 ports on the macs. This seems to be midi as well as audio devices.  Can anyone recommend or point me to a list of supported devices for both audio and midi which are guaranteed to work with a late 2013 macbook pro retina display.  I cant afford a thunderbolt device.  Thanks steve

    Just a wild thought here, but have you tried inserting a powered USB 2.0 hub between the MacBook and the interface?

  • 4s Hotspot tethering only works with USB and BT but not with wifi

    Hi,
    XP sp3 - iPhone 4s with ios 5.0.1 - on Three one plan
    Tethering with wifi works to a friends Samsung phone, wifi on the pc confirmed working with the apple store wifi, tethering with USB and BT works with good connection speeds on my laptop but when i try to tether with wifi it connects to the laptop at 54mbps and all appears well, even claims to have received a small amount of data packets, but no data comes to any browser. The iPhone reports 1 connection to the hotspot and stays connected with a non-pulsing blue bar after the first minute.
    In the PC i have tried this http://windows.microsoft.com/en-US/windows7/Change-the-order-of-network-protocol -bindings
    I've deleted my firewall (zone alarm) completely and turned off windows firewall to go naked surfing for a second even though they don't cause a problem with USB tethering, makes no difference
    I've deleted the network connection numerous times
    "repaired" connection
    dissabled and enabled the wifi
    turned off the wireless with a hardware switch and on again
    disabled bluetooth
    rebooted many times
    reinstalled itunes (latest)
    loads more things i can't remember
    This is causing me a nightmare. I've been through everything i can find online, been to the Apple store genius bar (genius appeared to have sub zero knowledge / interest as it involved a MS machine), been to a Three shop (legally not allowed to touch my PC apparently) and been to a Sony shop (laptop make, not their fault if my iphone doesn't work). All very frustrating.
    Please help if you can! Any suggestion will be tried unless it involves sledge hammers or lakes, and only then for a few more days at most.

    Turned off bluetooth on phone, turned off hotspot and on again, phone asked if i wanted to turn on bluetooth or go with USB and wifi only, said usb/wifi only. Still nothing. Rebooted PC and iphone. Turned on hotspot, pc seemlessly connects to network, still no data comes.
    One odd thing is zone alarm asks me to "select a security zone for the wireless network at ip address: *******.0" every time and doesn't seem to remember the setting over sessions. When i get the status of the connection the ip address is *****.2 and default gateway is same ********.1 Not sure if that's anything.
    Also getting a javascript error about an undefinded component (trustcheckermozilla) since i updated zonealarm but as i said even completely uninstalling zonealarm made no difference. I'll update firefox as well but tried with IE and still no data.

  • K7N2 deltas mainboards have a problem with usb devices ??

    Ok here is my problem..
    I had installed WinXP Pro with SP1..
    I got a 20 GB USB2.0 disk.i connected it on the both front or rear usb ports.
    When i tried to transfer files to my usb disk or to my PC, in the middle of the copying, i got "Write Delay Failed" error and lost my usb connection..
    I had to plug it out and in again..
    Now, i have an DSL modem..Last night, i was disconnected from internet and my modem's lights gone..I plug it again, no lights..restarted my PC, also completely shutdown Windows XP..Again no lights..
    Then, formatted PC and installed windows 2000 Pr and SP4, until now, my modem worked fine..But USB 2.0 ports are still no use for my usb disk...
    In bios , it's enabled as USB 1.1+2.0..
    I think this K7N2 deltas have a problem with usb 2.0 devices and Win XP Pro..
    Some guys talking about, removing 9th wire earth, but couldn't understand which wire from where ? From mainboard or from usd device's cable ?
    Those cables are fabricated, i think it's impossible ?
    My processor is Athlon 2500+, ram Twinmos 512 DDR 400
    Thanks for reply

    I'm also having this problem. It's happening with my USB flash disk. I was almost buying another one when I tried it with Windows Vista on the same machine and it worked ok, then I tried Arch Linux (with kernel 2.6.30.5) on another machine and got the same error. After that I tried Ubuntu and it worked ok. Seems that Arch's kernel doesn't like my USB flash disk.
    Last edited by esdrasbeleza (2009-09-02 01:16:09)

Maybe you are looking for

  • Skype hangs when I click a particular Contact

    My Skype version: 7.0.60.102. My Windows XP version: 2002 Service Pack 3. For the last 2 days, I've observed that when I click a particular contact my Skype hangs. And I'd to restart the system. This happens irrespective of text or file transmission.

  • I would like to be able to create a few icons with photos on them and linked to a persons phone number.

    Hi, my father is in the middle stages of dementia and having trouble using his new iphone. I would like to be able to create a few icons with photos on them and linked to a persons phone number. This way he can select an icon and it will auto-dial th

  • Motion project aspect ratios.

    The Problem: When opening a motion project in FCP, the aspect ratio is completely changed and never looks right even when both settings are exactly the same. The Details: Motion Ratio= Project: NTSC Broadcast SD 720 X 486 29.97fps NTSC D1/DV Anamorph

  • Acrobat have features similar to excel macros?

    Does acrobat have a feature similar to excel macros? Example, clicking a button on title page starts a new form page with logo and questions already in place? The problem is the number of forms per customer is different so I would need the title page

  • Rovi TotalCode plugin demo

    Hi all - just a heads-up about the Rovi plugin demo. I've been looking for the best solution for DCP creation - my local film club has an NEC projector attached to a DCP server, and they're looking for ways to convert all input to DCP. It'll play DVD