Can I measure period with USB 6501?

Hi,
I was told that I can use the one counter in the NI USB 6501 to measure period.  So, I wrote this little VI, modeled after the VI I have that measures encoder period using the counters built into the NI cDAQ 9174 with the NI 9401 digital I/O module.  I have my encoder wires GND and 5VDC on terminals 1 and 2, respectively.  Also, I have encoder channel A and Channel B wires connected to terminals 9 (P2.7) and 24 (P0.7) respectively.  With the MAX, I can count edges with this wiring.  The purpose of this VI is to display an average value of 25 period measurements of the encoder.  The encoder (120 cpt) is turning at about 2-5 rev/second, so, not that fast, maybe a total of 500 period per second; should be easy for this counter.  I'm just spinning it with my finger, so, not that fast.
Please advise how to use the USB 6501.  I can't find any wiring instructions, other than the pinout, but, the pinout doesn't tell you which channel is the counter gate on the USB 6501, so, I found a response on MAX at channel 24.
When I run this, the array is correctly initialized to 0.5, but, then I get this error, 200431. I found some things on the forum that suggest I cannot measure period, that I can only count edges.  Should I throw this 6501 away?
Thanks,
Dave
Attachments:
USB 6501 error.docx ‏24 KB
USB 6501 period measurement.vi ‏26 KB

The 9178 also only has 4 counters.
Do the 5 period measurements actually have to take place at the same time?  Sometimes it might make sense to cycle through the channels to reduce the number of counters used (you wouldn't have to rewire connections or anything as the input terminals are software-defined).  Switching from channel to channel in software should take on the order of ms depending on which hardware you end up using.
The 9171+(9401/9402) is a relatively cheap way to add additional counters to a system as the 9171 chassis has 4 counters just like the 9174 and 9178.
Best Regards,
John Passiak

Similar Messages

  • Can I measure pulswidths with daqmx base and NI-USB6501

    Can I measure pulswidths with daqmx base 1.4 and NI-USB6501? I can measure edges width this function: DAQmxBaseCreateCICountEdgesChan. But, when using DAQmxBaseCreateCIPulseWidthChan I always get an error message back (DAQmxBase Error: <err>Value passed to the Task/Channels In control is invalid).
    I also cannot find any examples about this topic in the software on CD nor on the internet.
    I also don't know what values to use for the float64 minVal and float64 maxVal arguments when using the pulse width function of above (see the NI-DAQ™mx Base 1.x C Function Reference Help).
    Maybe my device (NI USB6501) cannot measure pulse width's and when it does measure pulse width's, what value will it give back? Seconds or ticks and what is the accuracy?
    Ok, enough questions for now. Thank you in avance for answering.
    D. Stollman

    The USB-6501 counter is capable of falling edge edge counting
    measurements only, so the type of measurement you wish to do is not
    possible with that device.  The data sheet for the USB-6501 can be
    found at the following link:
    http://www.ni.com/pdf/products/us/20054920301101dlr.pdf
    I believe the DAQPad-6015 and DAQPad-6016 USB devices are capable of
    measuring pulse width, as well as many of NI's PCI data acquisition
    devices.

  • Measure Period with error out.vi

    I am using LV6.0. Can Measure Period With Error Out be found in the functions panel? If not where it is? If not there can it be imported into LV6.0?

    labview1958,
    Are you looking for a specific VI called Measure Period with Error Out.vi or are you asking about any general function that can be used to measure the period of a signal and includes error handling? If you are looking for a specific VI, I'm unaware of it, so I won't be much help there. If you're looking for any function to do it, have you looked at the VIs called Measure Pulse Width or Period.vi or Pulse Width or Period Meas Config.vi? They are located in the Data Acquisition>>Counter palette. The Measure Pulse Width or Period.vi does not include error handling, but it would be extremely easy to add it. The Pulse Width or Period Meas Config.vi DOES contain error handling, but it only configures the counter to measure the period, it doesn't actually measure it. These, of course, are for TTL signals coming into your hardware device. If you are reading waveform data from a file and want to calculate the period of that signal, these won't do much for you. So what exactly are you wanting to take a period measurement on, a physical signal, physical signal data points from a file, or some other method?
    Tyler S

  • How can i use the NI USB-6501 digital I/O with matlab?

    I want to use the  NI USB-6501 digital I/O with data acquisition toolbox in matlab?

    The USB-6501 is supported by Data Acquisition Toolbox in MATLAB releases R14SP3+ and later.
    The full list of National Instruments devices supported by Data Acquisition Toolbox is here:
    http://www.mathworks.com/products/daq/supportedio14005.html
    Begin to learn how to use digital input and output here:
    http://www.mathworks.com/access/helpdesk/help/toolbox/daq/f11-17944.html
    Inside MATLAB you can view demos in the documentation.
    To see two digital demos you can type these commands at the MATLAB command line:
    >> showdemo('demodio_intro')
    >> showdemo('demodio_line')
    Best regards,
    Sherryl
    Sherryl Radbil
    Data Acquisition Engineer
    The MathWorks

  • Help with USB 6501 to signla a digital exposure controller

    I am trying to use the NI USB 6501 to control the shutter from a Spectra-Physics Digital Exposure Controller. The shutter can be controlled using a coaxial cable with a BNC connector.  I dot not have much experience with digital outputs.  I have connected the "main pin" and ground but after that I could use some help.  I have also looked into the write digital channel vi.  Any help would be greatly appreciated.
    Here is the link to the product....http://www.newport.com/Exposure-Control-Instruments-for-Large-Area-Illum/378091/1033/info.aspx

    the manual says that a the BNC connecter (J4) controls the shutter.  I believe I have it working now tho.

  • Portege R100 - can I reinstall WXP with USB floppy & USB drive?

    I have recently corrupted my R100 through a virus attack. In spite of belatedly cleaning things up with Norton it now goes very slowly and I believe the only way forward is through a total XP reinstall.
    I have the original recovery CDs and a USB floppy drive but not a PCMIA CDRom. As luck would have it my USB CDRom is broken. How do I get out of this situation? I am about to throw out an old desktop and would be happy to use the XP retail on the R100 if needed. Moreover is there any way to start the format & install process from a bootable floppy and then install the bulk of the OS from a USB drive - having been populated previously with copies of CD contents? Desperate people dream up desperate methods!
    I have read some other threads on XP recovery issues but they are not entirely coincident with my circumstances. Any help on this front would be very gratefully received.
    Thanks in advance.

    If you can get the setup files onto the R100 HDD using a FAT32 partition, you can install Windows from the HDD after booting from an MSDOS boot disk. (MSDOS cannot see NTFS drives).
    You can use a 1.8" USB HDD Adapter to copy the Setup files to the R100 HDD from another PC. The Adapter wouldn't be expensive.

  • How can I boot Cisco1841 with USB Drive instead of CF?

    Hello
    I need to boot Cisco1841 with USB Drive instead of Compact Flash but I don't know what should I do.
    I heard I need to format USB Drive with FAT and need to save IOS on the USB Drive.
    Before boot, Need to set config register ? I am not sure which parameter should I set config register in detail.
    Please let me know if there is URL describing thease steps from the beginning.

    http://www.cisco.com/en/US/prod/collateral/modules/ps6247/prod_qas0900aecd80232483.html
         Q. What sizes of USB Flash sticks are supported?
         A. USB Flash sticks are supported in 64, 128, and 256 MB sizes. No other sizes are supported.
         Q. Can I use any USB memory stick for this application?
         A. No. Only Cisco USB memory sticks are supported.
    Q. Can I boot an image directly from the USB Flash module?
    A. Yes. USB drivers have been added to rommon, starting with version 12.4(13r)
         Q. Can I format the USB Flash module on the router?
    A. Yes. You can format the module on either a router or a PC. You must  specify "FAT16 file system" as the file system for the PC format process  to use.
    If your setup satisfies above conditions you can get the router to boot up with the IOS on the USB flash
    If you are in ROMMON mode, use 'dev' to find out the name of the USB Flash (should be usbflash0).
    set BOOT=usbflash0:
    If you are in the router,
    boot system flash usbflash0:

  • How can I measure RPM with CTR-500 module?

    I have used  the CTR-500 module for mesurement of  motor RPM. But it doesn't have direct option to measure  RPM ,
    so i have count pulses for  1sec (then reset the counter) and  by calculation show the result for 1min. But it varies every time ,cant give me fix RPM.
    I want reliable solution for this.

    min
    You have not said how much the RPM actually varies from reading to reading and what the range of measured RPM is for the process.  This variation can be caused by a couple of things.  One would be actual variations in RPM due to changes in motor loading.  What is this motor driving?  Most RPM readouts use some form of sample averaging to smooth out the readings.
    A second cause could be your vi.  Suggest you post a copy of your vi. 
    In case you have not seen it, here is a link to a KB about measuring frequency with cFP.  It also links to several other docs on the same subject .  http://digital.ni.com/public.nsf/allkb/D8DB42F9FDC3607E862568640047F144?OpenDocument 

  • Can i measure resistance with a PCI-MIO-16X-10

    good day!
    In my work we measure inflator resistance with an external ohmeter and switch selector, for now we're working in update this method of measure resistance. The program used to activate the inflators was built in labview 7.0 and use a GPIB and PCI-MIO-16X-10 boards only.
    The question is if we can measure resistance with this board (PCI-MIO-16X-10), we can do it?
    thanks for all...

    Cordero,
    Not directly but with some auxiliary circuit elements you can.  To measure a resistance you need to know both the voltage and current associated with the resistor.
    One way you can do this with a DAQ device is to create a voltage divider using a known external resistor. By measuring the voltage drops across both the known and unknown resistances, you can calculate the value of the unknown resistance.  You can use the analog output or the board power supply as excitation voltage for the voltage divider. Use two analog input channels to measure the voltages across the resistors. As long as the values of the resistors are much lower than the input resistance of the analog input channels, you can get good results.  The accuracy is limited by how well you know the value of the "known" resistor, the resistance of the inputs, and the accuracy of the A/D converter.  The accuracy of the known resistor is probably the largest contributor to the overall error.
    Lynn

  • Can I measure frequency with a SCXI-1120 module and SCXI-1320 terminal block?

    I am attempting to measure a square wave from a directional encoder to display RPM of a dynamometer. The waveform will have a frequency of 0-4KHz, with 3.6KHz being nominal, at about 5volts RMS. How can I measure the frequency of this waveform with the hardware I am currently using? In addition to what is listed above, I am using a PCI6034E GPIB card and LabView software.

    In order to measure frequency, I would not recommend to use the SCXI-1120, but the SCXI 1126, which is a programmable isolated F-to-V module.
    If by any reason you do not want to use SCXI-1126, then I would suggest to use the counter/timers of your board. The counter/timers are TTL compatible, and are the devices that we mostly recommend for doing precise frequency measurements.
    In order to have access to the counter/timers of your board through your SCXI chassis, you will need SCXI-1180, which is basically a feedtrhough panel for your DAQ board.
    Once we have access to the counter/timers through the SCXI chassis, we can proceed with the coding.
    I found a pretty good webpage that clearly explains how to perform frequency measurement with the DAQ-S
    TC counter/timers (DAQ-STC is the type of counter/timer chip that you DAQ device has). Here is the link to it:
    Pulse Width & Frequency Measurements
    As you will see, this link contains tutorials, application notes and example programs. I would recommend to pay special attention to the example program called: DAQ-STC: Measuring frequency.
    Good luck with your application!

  • Driving and dimming LEDs with USB-6501

    I have a strip of LEDs hooked up to a power source with an intermediate dimmer. The specs for all that hardware is listed below. I am looking to switch from manual control to digital I/O. I have a NI USB-6501 DAQ but have never worked with it before and so would appreciate some guidance. The goal is to maintain maximum brightness but be able to dim the LEDs from my software. I've read several threads about simple on/off control but haven't found anything on dimming.
    John.
    LEDs: (color red)
    http://www.superbrightleds.com/moreinfo/led-strips-and-bars/snfls-series-120-side-emitting-led-flexi...
    Dimmer:
    http://www.superbrightleds.com/moreinfo/single-color-dimmer-switches/ldp-2a-12-volt-dc-single-color-...
    Power Source: (15 Watts)
    http://www.superbrightleds.com/moreinfo/power-supplies/12vdc-cps-series-power-supply/68/
    Solved!
    Go to Solution.

    In order to control something, you would need to be able to physically connect the 6501 but it does not appear you have anything to connect it to. From the image of the dimmer, it just has a knob.

  • After I went to iOS 7.0.3 can't use hotspot with usb cable

    Hello All
    After upgrading to iOS 7 on my iphone 4 I can no longer use my personal hotspot with a usb cable (wifi connection works)
    When I go to system preferences>Network>Ethernet (Macbook Pro ...0S 10.6.8 )
    It says "cable unplugged " but it is plugged because I can charge and transfer data using this cable
    Here is what I've tried so far on my Macbook Pro with OSX 10.6.8 and my iphone 4
    Tried a  different cable  ..... did not work
    Made ethernet setting inactive and active again .. did not work
    Deleted Ethernet setup and  and created it again .. did not work
    Reset the iphone network settings twice did not work
    So what now ?
    I don't like the iOS 7 its slower and I am having another problem too
    Thanks All

    I am having the same problem. I have a normal iphone4 and when I upgraded to ios7, suddenly no one can hear me on calls. It works with speakerphone and on a headset, and I can play music normally. It has to be software, or else why would speakerphone work? My phone also functioned just fine before this upgrade and now my phone is useless as a phone.

  • Can't hear playback with USB audio interface plugged in

    I start Logic Pro 8 and then plug in Lexicon Lambda for a USB interface between guitar and macbook pro. With the Lambda plugged in I hear nothing from mac or headphone input on Lambda. If I unplug Lambda I can hear playback from mac just fine thru speakers or headphones.
    Very appreciative of any advice on how to solve this.
    Thanks.

    berkleyrob wrote:
    I start Logic Pro 8 and then plug in Lexicon Lambda for a USB interface between guitar and macbook pro. With the Lambda plugged in I hear nothing from mac or headphone input on Lambda.
    Unplug your audio interface, reboot the Mac, plug the USB interface in, let it be recognized. Open Audio/MIDI Setup (in utilities) see if the Lambda shows up as an input and output device.
    Yes/No?
    If yes, you don't have to select if for any of the Input/Outputs, Logic's audio interface selection operates independently from the system.
    Open Logic go to "Preferences/Audio) select the Lexicon or Lambda interface as the default unit, set audio buffers to 256.
    Anything yet.
    All audio I/O will be coming from the lexicon the Mac's audio system is now out of the equation.
    pancenter-

  • How can I generate tones with usb 6008 using analog out?... tia sal2

    Greetings All
    I've been looking at the example Sim Phone.vi that comes with labview and would like to generate similar tones out of our usb 6008 device. I can get a very faint sound out of our usb 6008 using the example Gen Multi Volt Updates-SW Timed.vi Does anyone know the best way to alter Sim Phone.vi to have the sound come out of the Analog output of our usb 6008 device. ( I have a small speaker connected to the Analog out on our USB 6008)
    PS: we are using labview 7.1
    Does anyone know the Analog output frequency range of the usb-6008? Is this possible?
    TIA
    Attachments:
    Gen Mult Volt Updates-SW Timed.vi ‏78 KB

    Hi sal2,
    As stated earlier you could most certainly use the USB device to generate sound, but that would be at a max update rate of 150 Hz. While according to Nyquist theorem you could get frequency information for signals below 75 Hz, you may notice that the quality of the data in that spectrum to be very low due to having so few samples.
    While technically possible to produce you really should look for a device with a faster Analog Output update rate. I would look for a device that supports Analog Output at least 10x the maximum frequency that you want the user to hear. Some great, yet lower cost products, would be the M-Series line of products. They would give you the performance that is really needed in the type of application that you are talking about.
    If you still want to use the USB Device, then you would need to use code similar to that found in the example Gen Mult Volt Updates-SW Timed (Found here: C:\Program Files\National Instruments\LabVIEW 7.1\examples\daqmxbase\Dynamic\ao).
    Best of luck getting your system together,
    Otis
    Training and Certification
    Product Support Engineer
    National Instruments

  • How can I measure RMS with the AI-102?

    Hi folks,
    Can anyone tell me a way to measure RMS voltage with the AI-102?  I need to measure 0-1 VAC.  It seems like there should be a way to collect a sample of voltages and put them in an array to calculate RMS.  Since I'm not approacing the limit of the module's voltage range, there shouldn't be any danger of clipping the signal.
    Has anyone out there attempted this?
    Thanks,
    Eric

    Hi!
      I've never worked with an AI-102, but from the specs I see there's an update rate of 2.8 ms (quite slow...), for a bandwidth of 170 Hz, so the main question is: what frequency band your input signal lies in?  Is it slow varying?
       If your signal's frequency is low enough (I'd suggest below 100 Hz, below 50 is better), you can simpli sample voltage and average samples over time (maybe with some clever techniques...).
       Let me know if this help....
    graziano

Maybe you are looking for