Configuring the NI 6602 Counter/Timer ?

Is there a way to configure a NI 6602 Counter/Timer to generate a LabVIEW occurrence ever time it counts?

Hello;
Occurrences can be generated at every time the output of the 6602 counter change state. That operation is not supported for counting operations.
One thing you can try to do to overcome that is to combine two counters, the first one will have the pulse train to be counted connected to its source and it will be configured as retriggerable pulse train generator. You can configure the pulses to be generated by this counter to have the minimun delay of 2 timebase clocks, and the same width of the pulses that are being counted.
The second counter will receive the output of the first counter on its source and will be configure as simple event counter.
You will catch the occurence generated by the first counter and the value read by the second counter.
There is a drawbacks with this implementation, which is:
There will be a 2 timebase clock pulses delay in between the generation of the occurrence and the event of the pulse on the first counter.
Hope this helps.
Filipe A.
Applications Engineer
National Instruments

Similar Messages

  • NI 6602 counter/timer card

    Hi,
    following question:
    i am using the x4 encoder application on an ni 6602 card.
    and also i am using a gated signal generation on it.
    both things are working without any problem.
    My intention is to read the counter value of the encoder on every rising
    edge of the signal and write the value into an array in the pcmemory.
    Is this possible, how?
    Is it possible to create an interupt on rising edge, and signal the
    programm, >read the encoder reader value
    I'm using the 6602 card with the HDDK in Linux, well i also have the
    register level manual.
    Thanks a lot
    Mario
    Mario Behn
    345 Lincoln Avenue Apt. 1025
    Amherst, MA, USA
    Tel.: +1-413-546-6656

    Hello,
    thanks for your answer, well my problem is slightly different, so let me
    explain:
    I got from NI the following the files for the NI 6602 Counter/Timer Card to
    work with Linux:
    http://sine.ni.com/apps/we/nioc.vp?cid=11737⟨=US
    one is the common driver.
    The other are the sample programms.
    However, every programm except the one which uses the
    interupt/dma works(gpct_ex8.cpp).
    Here is the errormessages:
    [root@proto OSinterface]# ls
    gpct_ex1.cpp gpct_ex4.cpp gpct_ex7.cpp osiBus.cpp osiUserCode.cpp
    tTIO.cpp
    gpct_ex2.cpp gpct_ex5.cpp gpct_ex8.cpp osiBus.h trace.h
    tTIO.h
    gpct_ex3.cpp gpct_ex6.cpp gpct_ex9.cpp osiTypes.h tStatus2.h
    tTIO.ipp
    [root@proto OSinterface]# g++ gpct_ex8.cpp osiBus.cpp osiUserCode.cpp
    tTIO.cpp
    In file included from osiBus.h:9,
    from gpct_ex8.cpp:15:
    osiTypes.h:39:1: warning: "NULL" redefined
    In file included from /usr/include/_G_config.h:14,
    from /usr/include/libio.h:32,
    from /usr/include/stdio.h:72,
    from gpct_ex8.cpp:14:
    /usr/lib/gcc-lib/i386-redhat-linux/3.2/include/stddef.h:366:1: warning: this
    is
    the location of the previous definition
    gpct_ex8.cpp: In function `void test(iBus*)':
    gpct_ex8.cpp:112: `class tTIO' has no member named `G0_DMA_Control_Register'
    gpct_ex8.cpp:113: `class tTIO' has no member named `G0_DMA_Control_Register'
    gpct_ex8.cpp:136: `class tTIO' has no member named `G0_DMA_Status_Register'
    gpct_ex8.cpp: In function `void gpct_ISR(tTIO*)':
    gpct_ex8.cpp:154: `class tTIO' has no member named `G0_DMA_Status_Register'
    [root@proto OSinterface]#
    So the question is, when there is a general driver system and example
    programms, than they should work?
    Who can help my with this ?
    If you can't, could you forward my question at NI to someone, who is
    responsible for the Measurement Hardware Driver Development Kit (DDK) and
    can help me?
    I have Redhat-Linux 8.0 and kernel 2.4.18.
    Thank you
    Mario Behn
    ----- Original Message -----
    From: "Sastry V."
    Newsgroups: natinst.public.daq.general
    Sent: Friday, January 10, 2003 16:44
    Subject: Re: NI 6602 counter/timer card
    > Hi Mario,
    >
    > I would like to tell first that interrupts do not work with PCI-6602.
    >
    > I would also suggest you to take a look at the examples on Encoder
    > Measurements:
    >
    > >
    http://zone.ni.com/devzone/devzone.nsf/webcategories/75CA12ECD25F39A78625679
    000743752?opendocument&...
    >
    > The Quadrature Encoder with DAQ-STC cards example shows the property
    > that you can use to count.
    >
    > Please do let me know if you need more help.
    >
    > Sincerely,
    > Sastry Vadlamani
    > Applications Engineer
    > National Instruments

  • DMA transfer rate for PCI-6602 counter/timer

    I'm strongly interested in raising the DMA transfer rate between the PCI-6602 counter and computer. At the moment, I've got a Pen-4 2.4GHz operating under Win98. I have to move an 80 Megaword array at an ~5 MHz speed. So far, I've been able to reach just 2 MHz. Would it be possible? What is the battleneck here - the soft- or hardware?

    Hello,
    I think the bottleneck you are seeing here is a limitation of the dma transfer capabilities that is dependant on the bus of your PC and not your 6602 card. Here is a link of a knowledgebase that you could try to use to see if that would improve your transfer rates. I still doubt you will be able to achieve approximately 5MHz.
    http://ae.natinst.com/operations/ae/public.nsf/fca7838c4500dc10862567a100753500/1b64310fae9007c086256a1d006d9bbf?OpenDocument
    Regards,
    Steven B.

  • SQL Server Management Studio - Configuring the environment for first time use

    Hi
    I have recently switched my local 'My Documents' folder location to a network drive that I 'make available off line' to allow on-line/off-line work and synchronisation when I am working in and out of the office.
    When I load my SQL Server Management Studio 2005 I frequently get 'Microsoft SQL Server Management Studio is configuring the environment for first time use'.
    Management Studio  them loads and I can continue without problem.
    I am guessing it is trying to make reference to some settings file. Any ideas? I wonder if I can change/move these settings elsewhere to a local drive?
    Thanks

    Hi,
    There is bug report of this issue:
    http://connect.microsoft.com/SQLServer/feedback/details/126364/configuring-enviroment-for-the-first-time-every-time-in-ms-sql-server-management-express
    "SQL Server Management Studio Express saves the settings for the user in ...\Documents and Settings\<User Profile>\Local Settings\Application Data\Microsoft\Microsoft SQL Server\90\Tools\ShellSEM
    and in ...\Documents and Settings\<user profile>\Application Data\Microsoft\Microsoft SQL Server\90\Tools\ShellSEM
    if any of these files are not available or unusable, SSMSE will generate new ones."
    Hope this helps.
    BR,
    JoukoK

  • WANTED: NI PXI-6602 counter/timer

    I'm looking to buy a used NI PXI-6602 counter/timer board. Got one?

    "Zvezdana S." wrote in message
    news:[email protected]..
    > Hugh,
    > To possibly obtain an used board from National Instruments, you should
    > contact your regional Internal Sales Representative (ISR) for possible
    > used boards. If you are not sure who your ISR is, generate a service
    > request at:
    I never knew NI had an SRQ line we could pull.
    Craig Graham
    Physicist/Labview Programmer
    Lancaster University, UK

  • I need tips on programming a 6602 counter/timer

    I am new to Labview but have been a command line programmer for some time.  I have a 6602 card in a PXI system.  I would like to use the internal clock of the 6602 to control the delivery of triggers to various instruments.  These triggers need to be both user inputted and optionally scanned in time.  Eventually, I will trigger the 5112 NI scope board to recieve signal and plot to the screen. 

    Darrin,
    There are a lot of terrific LabVIEW examples that ship with the
    NI-DAQmx driver that are compatible with the PXI-6602.  These
    include counter examples as well as pulse train generation
    examples.  For example, some of these that would be great to looks
    at can be found by opening the NI Example Finder (Help >> NI
    Example Finder).  Under the Browse tab, navigate to Hardware Input
    and Output >> DAQmx >> Generate Digital Pulses.
    There are also shipping examples that show how to use a common signal
    between boards.  Most of these examples share clocks, but you
    could also apply this to triggering.  These are found in: Hardware
    Input and Output >> DAQmx >> Synchronization >>
    Multi-Device and Hardware Input and Output >> DAQmx >>
    Synchronization >> Multi-Function
    There are also a lot of great examples, DevZone posts, and tutoirals
    that you can find on our website by searching for various keywords like
    6602, synchronization, triggering. etc.
    One example that shows how to export a digital signal from one board
    and use it on another board via the RTSI lines that are built into the
    backplane of the PXI chassis can be seen here.
    Hopefully this gives you a good place to start!
    Regards,
    Doug Mumford
    Applications Engineer
    National Instruments
    Doug M
    Applications Engineer
    National Instruments
    For those unfamiliar with NBC's The Office, my icon is NOT a picture of me

  • How to configure the intensity of my Time Capsule's WIFI signal?

    Hey,
    I own a TC from late 2009, the Firmware is up-to-date (7.6.4) and I installed it in a new place. The intensity of the WIFI signal is suprinsingly low, significantly lower than the signal of any non-Apple WIFI-router I previously used in the same flat.
    I remenber having configured the TC back in 2010 with a lower WIFI-Intensity because I had a very little room and no need for an powerful signal. I probably haven't changed this since than ans this could be the reason why the signal coming from the TC is so low. The problem is that I can't find a way to configure the WIFI-intensity back to normal/ maximum.
    Does anybody know a way for OS X Mavericks?
    Thanks a lot!

    There is no change..
    Reset to TC to factory.. even if you did alter it, the setting will go back to 100%.. there is nothing else you need do.

  • How do I select the 80 Mhz internal source for the PCI-6602?

    The user manual says the PCI-6602 counter/timer has
    an internal 80Mhz as well as 20Mhz source. I'm trying
    to select the 80Mhz source using the ni-daq function
    GPCTR_Change_Parameter() in Visual C++, the header
    file nidaqcns.h supports 20Mhz but not 80Mhz.

    Hi, this is a simple program in C as requested that measures the time between two pulses (buffered).
    I'm working with the PC-6602, and it doesn't work with an internal 80Mhz source.
    The errormessage is "C:\Frederik\gecord\oscillator\bufferperiodtest.cpp(87) : error C2065: 'ND_INTERNAL_80_MHZ' : undeclared identifier
    Error executing cl.exe." after compiling. When I use "ND_INTERNAL_MAX_TIMEBASE" it does work, but on 20 MHz, not on 80.
    Does anyone know what i have to do?
    Thanks
    (Ps: working together with "mtytgat")
    Attachments:
    bufferperiodtest.cpp ‏2 KB

  • Measurement Hardware Driver Dev. Kit with the NI 6602

    Hello,
    I got from NI the following the Measurement Hardware Driver Development Kit
    for the NI 6602 Counter/Timer Card to work with Linux:
    http://sine.ni.com/apps/we/nioc.vp?cid=11737〈=US
    one is the common driver.
    The other are the sample programms.
    However, every programm except the one which uses the
    interupt/dma works(gpct_ex8.cpp).
    Here is the errormessages:
    [root@proto OSinterface]# ls
    gpct_ex1.cpp gpct_ex4.cpp gpct_ex7.cpp osiBus.cpp osiUserCode.cpp
    tTIO.cpp
    gpct_ex2.cpp gpct_ex5.cpp gpct_ex8.cpp osiBus.h trace.h
    tTIO.h
    gpct_ex3.cpp gpct_ex6.cpp gpct_ex9.cpp osiTypes.h tStatus2.h
    tTIO.ipp
    [root@proto OSinterface]# g++ g
    pct_ex8.cpp osiBus.cpp osiUserCode.cpp
    tTIO.cpp
    In file included from osiBus.h:9,
    from gpct_ex8.cpp:15:
    osiTypes.h:39:1: warning: "NULL" redefined
    In file included from /usr/include/_G_config.h:14,
    from /usr/include/libio.h:32,
    from /usr/include/stdio.h:72,
    from gpct_ex8.cpp:14:
    /usr/lib/gcc-lib/i386-redhat-linux/3.2/include/stddef.h:366:1: warning: this
    is
    the location of the previous definition
    gpct_ex8.cpp: In function `void test(iBus*)':
    gpct_ex8.cpp:112: `class tTIO' has no member named `G0_DMA_Control_Register'
    gpct_ex8.cpp:113: `class tTIO' has no member named `G0_DMA_Control_Register'
    gpct_ex8.cpp:136: `class tTIO' has no member named `G0_DMA_Status_Register'
    gpct_ex8.cpp: In function `void gpct_ISR(tTIO*)':
    gpct_ex8.cpp:154: `class tTIO' has no member named `G0_DMA_Status_Register'
    [root@proto OSinterface]#
    Does anyone know what is the proble
    m with it?
    I have Redhat-Linux 8.0 and kernel 2.4.18.
    Thank you
    Mario Behn

    Hi Mario,
    I encourage you to repost your question in the DDK category . You might find a bigger audience of people who are using the Driver Development Kit.
    Good luck!

  • Can I use Intel 815EP AGP 4X Pentium and plug in 5 Nos NI 6002 PCI counter Timer cards, instead of going for expensive PXI based solution? Hope there will be no degradation in performance - when used for constructing an Energy Meter test Bench.

    I was recommended to buy NI 6002 with PXI series, 5 Nos cards($875x 5 nos), and additionally a PXI rack costing about $ 2195 + some min--- card to interface with the computer costing another $ 875. Compare this with $ 675 x 5 Nos for 5 Nos PCI based NI 6002 + some cablesa nd connectors for synchronisation.
    First option is extremely expensive. But NI marketin manager will be glad that he sold more harware. But I want the truth. Why can't Intel 815 Pentium board be used?

    I am addressing the question if using PCI-6602s instead of using PXI-6602s will affect the performance, and the answer is NO. 6602 counter/timer devices comes in two different form factors, PXI/Compac PCI and PCI. The accuracy and performance is the same for both the PXI and PCI 6602s. However, using PXI solution will allow users an easier time with synchronization since that is the provided in the backplane of the PXI chassis. Additionally, if you ever need a higher accuracy solution you can add the 6608 device which has 75 parts per billion ppb vs 50 ppm of the 6602 devices. With 6608 plugged in the second slot of the PXI chassis (the one next to the controller), the high accuracy timebase is automatically shared acrossed the backplane of the PXI chassis which mean
    s that other 6602 devices in the chassis will share the same accuracy of the 6608. If the difference in the accuracy is not a concern and you are currently not ready to invest in the PXI platform, then you can go with the PCI 6602 devices.
    Best Regards,
    June Zhu
    National Instruments
    Digital and Timing Product Support Engineer

  • RPM Measurement using Quadrature Encoder and PXI 6602 counter

    Hi,
    I am on a project at work where I need to verify the speed (in RPM) of an unloaded motor which can operate up to 1400 rpm.  After doing some research, i determined that a quadrature encoder could be used to make the measurement.  I am looking at this encoder  http://sine.ni.com/nips/cds/view/p/lang/en/nid/205321.
    I have a PXI 6602 counter/timer module in which I would like to interface to the quadrature encoder.  I would like to create a VI that allows me to calculate the speed using the encoder.  Can someone provide me with details of what needs to be in the VI or an example which can do this?  At the most basic level, i want to calculate the speed on demand.  After doing this, i would like to figure out how to quickly calculate the speed so that i can determine response time of the speed changing within sub-millisecond resolution (1 ms resolution max).
    Further, i created a VI that allows me to change the pulse width of a 100 Hz pulse train at run-time which tells the motor controller the desired speed.  I would like to be able to use this VI to change the speed of the motor and the first VI (that I am seeking help about) to calculate the response time (time between the initial speed and settling at the new setpoint).
    I am familiar with the NI example finder, but have not been able to find an example that I can use.
    Thanks,
    Gary

    Hey Gary,
    I think for you setup, you should try using the Meas Dig Frequency - Low Freq 1 ctr. You can find it by searching example finder with 'low freq'. This vi tells you the frequency of a digital signal by sampling between two pulses and inverting the time between pulses. If you hook up your encoder to a counter and have that counter specified in the vi, it will be able to give you on demand readings of frequency (you can do some multiplication to get the rpm value, freq*60/pulses per revolution of encoder). A simple way to take continuous readings is to put a while loop around the daqmx read and the data output of the read. You can also replace the numeric indicator to a waveform chart to graphically display the change of frequency or rpm readings over time.
    You should be able to integrate this as two separate tasks with the pulse train vi you created earlier.
    Hope this helps
    Luke W

  • Low-Frequency measurements using counter/timer

    I am trying to measure speed, and am using the FP-502 counter timer module to count the pulses from my sensor. The field point example that uses a fixed width gate pulse will not work for my appliation because I need a gate pulse so big that it updates way to slow.
    Does anybody have any sugestions on how to measure a low frequency signal using a counter/timer?
    Thanks
    Dan

    Hello guys
    Thanks for all your sugestions I have the final results. I got it to work but I would like to add some comments for anybody who is trying to attempt this.
    Triggeing on the gate is a must for low frequency measurements. I used the divide by sugestion however using a factor of 3 only gets you about 60 Hz after that you can't sample fast enough. My application required me to measure from 0 to 150 Hz. I added a "gear shifter" routine where the terminal count was set to 3 on frequencies lower then 45 Hz and 15 for frequiencies greater than 45 Hz. Using a terminal count of 15 for all measurements made the udate rate on really low frequencies way to slow i.e. .5 seconds for 20Hz (check the math on this).
    I a
    lso needed to cascade the counters. At low frequencies the count went higher than 6550. Using the previos channel function of the fieldpoint module enable me to get 32 bit worth of terminal count data.
    Finally I needed to add a timeout condition for 0 Hz. If there are no pulses coming from the senser the program displays the last value read. That won't be 0. So I added a time out routine that if I didn't see a pule in a certian amout of time, output 0 and reset the gate count.
    Thank you for you help you relly saved me. I hope my comments made sense.
    Dan

  • What is the use of the auxiliary pins of 6602 counter card

    Hello,
              I want to know about the Behavior of the auxilliary pins in 6602 counter card.

    Hi Satish,
    Counter n Auxiliary Signal
    You can select any PFI or RTSI, as well as many other internal signals asthe Counter n Auxiliary (CtrnAux) signal. Much like this CtrnGate signal,the CtrnAux signal is configured in edge-detection or level-detection mode depending on the application performed by the counter. The aux signal can
    perform many different operations including starting and stopping the
    counter, generating interrupts, and saving the counter contents. You can
    also use this signal to control the counting direction in edge-counting
    applications.
    Regards,
    Santhosh M

  • Adding a counter that keeps track of the total number of times a loop has run, even if LabVIEW has been restarted.

    Hi all,
    I am writing a VI for measuring data and inserting it into a database. The measurements are controlled by a loop that runs once every minute. I want to give each measurement a unique id number and store this too in the database.
    To do this, I want to add a counter to this loop so that I can count the number of times the loop has executed in total. This is, even if the VI, LabVIEW or even th PC is restarted, I want the counter to keep track of the number of executions. If say, the loope executes two times and then the VI is stopped and restarted, I want the following number on the counter to be three.
    Does anyone have an idea about how to do this? I am gratefule for any help!
    Clara
    Message Edited by Clara G on 05-11-2010 08:21 AM
    Solved!
    Go to Solution.

    Not allowed to give away code but I can describe one of my "Totalizers" used to keep track of how much stuff has passed through a fliter so we know when to change it.
    THe Total izer is implemented as an Action Engine.
    It has three actions (methods)
    1) Init - Opens an ini file and reads the last values read and cahces these in shift registers. It also inits a timer so we now how long since the last file I/O.
    2) Update - Uses the data passed by the caller to update the totals. It also checks how long since the last save and if more than one minute it writes to the ini file (forced write).
    3) Read - returns the totals for display and evealuating if a an alarm should be triggered to change the filter.
    Note:
    THe pre-LV 8.6 version of the ini file exposed methods to allow writing to the file. The new ini functions do not expose that functionality and require closing the file.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • HT3546 I have been unsuccessfully trying to extend the wifi of my Time 2T Capsule with an Airport Extreme 2nd Gen. It works for a while and then loses configuration. I have done everything possible, disconnected it, reset it but it keeps failing, what to

    I have been unsuccessfully trying to extend the wifi of my Time 2T Capsule with an Airport Extreme 2nd Gen. It works for a while and then loses configuration. I have done everything possible, disconnected it, reset it but it keeps failing, what to do?

    What model and firmware is the 2TB TC?
    What firmware is the AE?
    Does the AE get good signal from the TC in its current location?
    Signal can only be extended that is received intact.
    Is it extending on 5ghz? As I remember it a Gen2 AE is only single band, although you can choose either 2.4ghz or 5ghz.
    I am fairly sure you are going to tell me your TC is AC model..
    I would do a couple of things..
    1. Fix the wireless name, make it short, no spaces and pure alphanumeric.
    2. Fix the wireless channel for 2.4ghz so it is not going to jump around.
    3. Get real results from the AE in its current location for signal strength.. this is really only possible on v5 utility. And that is a double pain with Mavericks because you cannot use it.
    Apple have removed all the useful diagnostics from the airport utility. There is next to nothing left. So you need to use the computer and its diagnostics to find signal levels in the location.
    http://support.apple.com/kb/HT5606

Maybe you are looking for