Using counter (6024E DAQ STC)

Hi everyone,
i'm very new to Labview and what i want to do is very simple.....but i can't make it work.
I'm trying to count events from an external TTL signal. I have loaded Count edges(DAQ STC).vi. I haven't changed anything in the default parameters so i have:
-counter0
-source is set at PFILine -> default & polarity positive
-gate is set to misc -> Low and polarity negative
I have connected my TTL + signal to PFI8/GPCTR0 and the - signal to DGND. When i start the vi it counts way too much and the count doesn't seem to be correlated in any way with my TTL signal.
The frequency of my ttl signal is very low (<0.5 Hz) and the signal is good (no noise at all).
What am i doing wrong? I have changed the setting from PFIline -> de
faults to PFI8
any help would be really appreciated.

From your explanation, your connections seem to be OK and you're using the VI correctly. When using the default settings, you should connect your signal to the source of counter 0 (pin 37) and the negative side of your signal to a digital ground.
Is your signal truly a TTL signal? There are certain specifications (rise time, fall time, voltage level, etc..) which the signal must meet to be TTL. I have an E-Series DAQ device and I can run the same program with a slow digital signal and it works perfectly. So, the only thing I would suggest is to make sure that your signal is a digital/TTL signal. The document below goes over the definition of a TTL signal.
I hope this helps.
What Is the Definition of a TTL (Transistor-Transistor Logic) Compatible Signal?
http://digital.ni.com/public.nsf/websearch/ACB4BD7550C4374C86256BFB0067A4BD?OpenDocument
Regards,
Todd D.

Similar Messages

  • I am using a 6024E DAQ Card. Software is done in VB5. When closing the applicatio​n is there anything that I have to do to close the card or just simply exiting is OK ? I am just using the AIRead_Sca​n and DigInPort functions.

    When using the 6024E DAQ card, with VB5, is there anything that one has to do to close / shutdown the card before exiting the application. The application only uses AIRead_Scan and DigIn_Port functions.
    Raghunathan
    LV2012 to Automate Hydraulic Test rigs.

    Hello,
    You won't need any other functions after AI_Read_Scan or after DIG_In_Prt since both functions are for none buffered acquisitions.
    For more information, I recommend that you take a look at the shipping examples that get installed under the folder C:\National Instruments\NI-DAQ\Examples
    Good luck with your application!

  • Noise in thermocouple measurement using PCI-6024E DAQ card

    I am using a PCI-6024E DAQ card for thermocouple(TC) measurement. The
    TC is installed in the mold cavity of an injection molding (IM)
    machine. The leads from the TC are connected to the DAQ card using a
    CB-68LP board. I made a  temperature mesurment task in LabView 7.0
    with the two leads from TC as differential inputs and used CJC value of
    25 deg C.
    The problem is that when the IM machine is OFF, I get a reasonable temp
    reading with some slight noise but as soon as I turn ON the IM machine,
    the temp readings go wild with a lot of variations around the mean
    value. The temp values also don't go to higher values when the TC is in
    contact with the molten plastic in the IM machine.
    Do I need to ground something here or put a resistor in the I/O board?
    BTW the IM machine is grounded and the TC give correct temp values when
    connected to a hand-held temp reader.
    Any help will be highly appreciated.

    Hello  Aftab,
    Looks like you need to use bias resistors to reduce the noise. Check out the following tutorial for more information about how to use bias resistors.

  • Error: DAQ-STC Counter functions missing from library

    Using LabView 6.1, NI-DAQ 6.6.1 for MacOS on a laptop.
    DAQ Hardware: DAQCard 16E-4.
    When trying to use the advanced counter functions (for DAQ-STC type counters), LabVIEW generates an error saying that it can't find the function in the library. The code interface nodes for the VIs don't seem to be attached to anything. I've installed the latest version of DAQ Drivers for Mac; am I missing something here? Any insight into this problem would be appreciated.
    Regards,
    jdk

    Hi jdk,
    I think it could be just an installation issue. I assume that you are using Mac 9.1. I've run LV 6.1 with NIDAQ 6.6.1 on Mac 9.1 and it works just fine, including DAQ-STC counter functions.
    If LabVIEW 6.1 was installed without DAQ support, run the LabVIEW 6.1 installer and perform a custom installation for DAQ support. Then, run
    the NI-DAQ 6.6.1 installer to upgrade NI-DAQ.
    Hope this helps.
    Regards,
    Pravin Borade
    Applications Engineer, National Instruments

  • Within the TCL and NPL, how do you start a DAQ-STC timer to count the elapsed time spent in time critical code?

    Clarification: I have a 6030E DAQ board which has a built-in DAQ-STC counter chip. I've created a RTOS for my PXI8175 controller. Unfortunately, while in the TCL clock interrupts are ignored and therefore any time based operations are erroneous. Is there a way to tell the TCL to service clock interrupts? Otherwise, perhaps the following concept should be implemented: Initial Time Stamp + elapsed time spent in TCL = Final Time Stamp

    While the system clock might fall behind, there are a number of ways to measure elapsed time accurately. Here they are in ascending order of accuracy:
    1) Tick Count - Each tick is 1.000686 milliseconds.
    2) DAQ-STC counter - The base clock is 20 MHz, thus the finest period of measurement is 50 nanoseconds.
    3) NI-TIO counter - The base clock is 80 Mhz, thus the finest period of measurement is 12.5 nanoseconds.
    4) RDTSC - Read Timestamp Counter is an assembly instruction which reads timestamps right off the CPU. The period depends on CPU speed (i.e. 1 GHz yields 1 nanosecond period).
    Programming #1 requires two calls to Tick Count and a little math. There are shipping DAQ examples that demonstrate how to count events/time with counters, so that addresses #
    2 and #3. As for #4, there's an RT shipping example that demonstrates how to use RDTSC. There's also an RT template, which is identical to the RT example I mentioned.
    Let me know if you need more info.

  • Can i use the VIs in the toolbar of "AM9513&compatibility" while i have a daq-stc card

    as i ask

    Tomas,
    Yes, these VIs will work with the DAQ-STC.
    Good luck with your application.
    Spencer S.

  • How do i generate the TTL pulse from PCI 6024E DAQ card

    Hi, I'm trying to write a program which generates a single TTL pulse when it is run. My goal is to generate the pulse, send it to the output channel of my PCI 6024E DAQ card, and then use a BNC cable, to display the signal on the oscilloscope. I have written the code and I think it appears fine but when I try to view the signal on the scope I am unable to see the pulse. I have tried slowing down the sweep on the scope and have adjusted the voltage and time scales but have not seen any response. After examing my DAQ card, I noticed that none of the PFI/TRIG terminals on the card are wired; the output channel connects to terminals for DAC0OUT and Ground. I'm wondering if this pin needs to be wired in orde
    r to generate the pulse since PFI0/TRIG1 is the start trigger terminal. Any help would be appreciated. Thanks.
    Attachments:
    ttl.vi ‏26 KB

    Hi,
    You are looking for a retriggerable pulse generation. Please check the Generate Retriggerable Pulse (DAQ-STC).vi example that ships with LabVIEW.
    Regards,
    RamziH.

  • Finite pulse train (daq-stc).vi makes trouble

    Hey, I have some trouble. I try to call the "finite pulse train (daq-stc).vi" from one program. The first time I call it it works fine but when I start the program again and want to call the "finite pulse train (daq-stc).vi" again but this time, for example, with a different frequency I get the following error message:"Error -10122 occured at counter control. POssible reasons: NI-DAQ LV: Invalid paramValue used". The only way to start this vi with a different frequency is to reboot the computer.
    I use LabView 5.1.1 and the DAQ interface is PCI 6025e or Daq-Pad 6020e. Any suggestions would be highly appreciated. Thanks!

    "Any suggestions would be highly appreciated"
    You may want to look into updating NI-DAQ.
    The parameter its complaining about (just a guess) may be a hardwired group number. I'm guessing the first call is not shutting down the I/O properly. This means on the second and all subseqqunt calls is attempting to configure an I/O and the goup is already in use, thus your error.
    IF all of the guesses are true, then the best solution would be shutown the previous I/O. You may get away with a hack the uses new group numbers, but that will lead to memory leaks eventually.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • I need to interface SCC-TC02 with help of SC 2345 and PCI-6024E DAQ Card.please tell me the procedure and if possible send me the program

    Dear Friends,
               I need to interface SCC-TC02 with help of SC 2345 and PCI-6024E DAQ Card.But i can not understand example program.please send me the procedure to interface these three componnets and if possible send me the program.
    With Regards,
    Eswaramoorthy K V

    nce of nth triggering pulse. i need to know when the when the ist trigger occurs and when the nth trigger occurs . please tell me how to to . what i know is that event triggering has to be done with start and stop trigger. please tell me how it has to doneSuresh;
    What you will need to do is to set up a digital start and stop triggered Analog Input acquisition. Then you will need to have a counter set as event counter, having the specific number of pulses you need configured as the preset value, configured to count down, and generating a pulse after the terminal count has been reached. That counter output will be the stop trigger of the Analog Input operation. In summary, you will have the external pulse being both the digital trigger of the Analog Input operation and the source pin of the counter, and the counter output being the digital stop signal for the analog input.
    I'm attaching a Labview VI that does the start and stop analog input acquisition. You will need to include the counter part and set the stop s
    ignal to be the counter output.
    Hope this helps.
    Filipe
    Attachments:
    AI_Start-Stop_D-Trig.zip ‏25 KB

  • R6850 kit to connect 5B backplane to PCI-6024E DAQ card is it possible?

    I have an old 5B01 backplane that I have connected to an SC-2050. Can I connect the SC-2050 to my PCI-6024E DAQ car using the R6850 kit?

    Lcacho,
    I've reviewed the manuals and specifications for all those devices, and the connection should work.  Please note, however, that given the age of the 5B01 backplane, I cannot confirm this completely.  However, from the information I have, you should be able to connect all these devices.
    Seth B.
    Staff Test Engineer | National Instruments
    Certified LabVIEW Developer
    Certified TestStand Developer
    “Engineers like to solve problems. If there are no problems handily available, they will create their own problems.”- Scott Adams

  • Convert elements using DAQCard-6024E to USB-6221using LabVIEW 2009

    I just received an old project, the VI was mainly designed using DAQCard-6024E. Since we'd upgrade the equipment, and the DAQCard-6024E is no long used. However, they want to keep the similar front panel. I am trying to convert the pull-down menu that I can use with USB-6221 with Windows 7, but I don't know how. Can anyone help?
    Windows 7, NI USB-6221,  LabVIEW 2009 sp1
    Solved!
    Go to Solution.
    Attachments:
    test_1.vi ‏45 KB

    Hi smoothengine007,
    You should be able to use this document's Digital Output section to see how to modify your VI:
    Transition from Traditional NI-DAQ to NI-DAQmx in LabVIEW
    It looks like the rest of your code can stay intact if you just replace your Traditional DAQ VIs with DAQmx VIs. 
    Regards,
    Message Edited by Dustin D on 02-23-2010 11:59 AM
    Dustin D

  • Interrupt signal with DAQ-STC

    I want to use an interrupt service routine with a PCI6025E using the DAQ-STC.
    On which pin can I input my signal (perhaps on Gate0) and which registers
    must be configured. I'm not interested about how to create an ISR, just the
    register value to generate an IRQ on the PCI-Bus.

    The DAQ-STC Technical Reference Manual (downloadable) may help you. A quick flick through my copy suggests the section you want is 8.4.1.3 Pass-Through Interrupt and it looks like input pins IRQ_IN<0..1> are what you need, assuming your card supports this functionality.
    Jamie Fraser

  • I have to use count function  in "if-else" condition in rtf tempelate

    I have a nedd to use count fucntion in my rtf fucntion in IF-ELSE condition like this :
    if
    (count INVOICE_LEVEL from xml where (INVOICE_LEVEL=SM_SUMMARY_LEVEL)) =  (count coloumn_A from xml ) --- if the count matches
    THEN print "NO DATA FOUND"
    else --- if not
    end if ;
    --------XML------
    <COMP123>
       <SM_SUMMARY_LEVEL>2</SM_SUMMARY_LEVEL>
      <SM_CHARGE_HEAD>2</SM_CHARGE_HEAD>
      <INVOICE_LEVEL>2</INVOICE_LEVEL>
      <RCVR_ADDRS3_PART1>SG</RCVR_ADDRS3_PART1>
      <RCVR_ADDRS3_PART2>ASIA ,</RCVR_ADDRS3_PART2>
      <TXN_CSTMR_REF>ABC-DEF</TXN_CSTMR_REF>
      <TAX_ID>PCT-ID</TAX_ID>
      </COMP123>
    <COMP123>
       <SM_SUMMARY_LEVEL>2</SM_SUMMARY_LEVEL>
      <SM_CHARGE_HEAD>2</SM_CHARGE_HEAD>
      <INVOICE_LEVEL>2</INVOICE_LEVEL>
      <RCVR_ADDRS3_PART1>SG</RCVR_ADDRS3_PART1>
      <RCVR_ADDRS3_PART2>ASIA ,</RCVR_ADDRS3_PART2>
      <TXN_CSTMR_REF>ABC-DEF</TXN_CSTMR_REF>
      <TAX_ID>PCT-ID</TAX_ID>
      </COMP123>
    can any one help me to write the correct syntax and logic for this .
    THANKS!

    I am using the below way but it is not working as desired it is always printing the derived value.
    <?xdofx:if (xdofx:round((to_number(to_char(SYSDATE,'JSSSSS'))-to_number(to_char(to_date(DOB_DATE, 'YYYY-MM-DD'),'JSSSSS'))) div 100000)) <= 30 then '(1-30)' else '(1-100)' end if?>
    Let me know if i missed anything..
    Thanks,
    Jana

  • How do I use count for this query?

    How do I display all the addresses in a table that have more than one (or >1) account number? I wasn't sure how or if I should use count along with group by and having to get the expected results.

    select address from tablename
    group by address having count(1) > 1;

  • How to use Count with Date Parameters

    Hello,
    I am having issues using the Count() function in conjunction with date parameters.
    This is a Siebel report and in my report I have 2 date parameters(From Date, To Date). In a nutshell I am basically trying to count Opportunities that has a start date within the given date period. However I don't see a reasonable way to put my date parameters within the Count() function. The reason being is that I need to have a huge chunk of code to convert the dates into a common format that can be compared, and it won't even fit within the code block in my rtf template. I am not even sure how to put multiple conditional statements inside a Count() function since all the examples I have seen are very simple.
    Anyone have a suggestion on how to use Count() with date parameters?
    Thanks.

    Any chance you can get the date formats in the correct format from siebel?
    I don't know Siebel - so I can't help you with that. If you get the correct format it is just
    <?count(row[(FromDate>=date) and  (date<=ToDate))?>
    Otherwise the approach would probably need to use string function to get year/monthd/day from the date
    and store it into a varialbe and compare later the same way
    <?variable@incontext:from; ....?>
    <?variable@incontext:to; ...?>
    <?count(row[($from>=date) and  (date<=$to))?>
    Potentially you can use the date functions such as xdofx:to_date to do the conversion
    [http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12187/T421739T481158.htm]
    But I am not sure if they are available in your siebel implementation.
    Hope that helps

Maybe you are looking for

  • Error in pricing procedure for PO

    Dear users, I have run into a problem in pricing procedure for PO. In the access sequence for pricing, the second access has condition based on country of customer (third party Sales order process) and third access has condition based on Info record.

  • I Tunes "Song could not be used because file could not be found"  HELP!!

    I just updated my I Tunes software (54+ Mbyte download), and now I get an Exclamation point on all of the songs in about one half of all the albums copied to my I Tunes library. When an album is affected, all of the songs in the album will not play.

  • Claims Digger report - values for changes in duration/float/lags

    When I compare two projects using Claims Digger, I always get results for changes in durations, float and lags in hours as opposed to days? Is there a setting that can fix this? Please advise. Thanks!

  • How to uninstall flash cs3(trial_download) ?

    How to uninstall flash cs3(trial_download) ? When install web premium(all) dvd cs3, flash will still work for another 1mo trial ?

  • Does the MacBook Air run CS5 Design Premium?

    Hi, I really want to get the MacBook Air for school, and I really want to get Design Premium for personal reasons. So, I went to find the specs for the MacBook Air 1.6ghz (1st gen) and found everything to match the requirements, except I am unsure ab