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

Similar Messages

  • High accuracy duty cycle with DAQ-STC

    I am trying to measure the duty cycle of a 4 kHz TTL pulse train with high accuracy. I can do this over one cycle but actually need to average over a number of cycles because there is noise. This doesn't seem possible with the stanard VI's? Can anyone help?
    Thanks,
    Gavin

    Gavin,
    There is an example on our website that does buffered duty cycle measurement on DAQ-STC devices that should be helpful for you. From www.ni.com/support you can search under Option 3 through Example Code for +duty +cycle +stc to find it or follow this link: E Series Duty Cycle Example
    Regards,
    Molly K.
    National Instruments
    Applications Engineering
    Molly K.
    Web Support & Operations Manager
    National Instruments

  • Capture digital signal with DAQ 6015

      I am wondering what is the best way I can capture a digital event accurately using my DAQ 6015 Pad.  It seems as though I can only capture it using (on demand) timing which I'm assuming means it will only capture it as fast as the loop iteration.  I'm looking to monitor this signal with accuracy down to about 10 ms.  Are there any good digital examples i can goto that you can vary how fast you can capture an event using the 6015?

    Hi caunchman,
    In this card, the digital lines are static so you will have to provide the timing through software, which might not be too accurate. I would suggest using one of the counters of this card to count the digital event. I don’t know what programming language you are using, but if you are using LabVIEW you can find good examples in the NI Example Finder. You can go to Help > Find Example > Hardware Input and Output > DAQmx > Counter Measurements > Count Digital Events. If you are using Visual Studio, C or DotNet you can find the Counter examples here: \All Users\Documents\National Instruments\NI-DAQ\Examples. I hope this is helpful,
    Ana P
    National Instruments
    Applications Engineer

  • Synchronize Motion velocity with DAQ analog signal

    Hi Everybody
    I am acquiring analog signals using hw trigger and external clock with C and A signals of a 1024 counts TTL encoder.
    Now I want to measure the rotation speed of a shaft. I have a Flex-Motion board with which I want to read the velocity (or the same encoder), but I don't know how to synchronize each scan of the analog signals with the velocity signal for that instant.
    I can´t use RTSI bus because my Motion board doesn´t have RTSI connector.
    Software and hardware:
    LabView 6i (v. 6.0.1.b3)
    DAQ-Board: PCI-6023E, NI-DAQ 6.8.1, MAX 2.0
    Motion board: PCI-FlexMotion-6C, NI-FlexMotion 5.0.1
    Thanks a lot for your help.

    Hi chia,
    with the hardware configuration that you have, I think it´s not posible to synchronize both boards due to you cannot share the same clock source (not RTSI on the motion board).
    http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/66e6f4ee7e0848d686256a55006...
    Sorry for the delay :-)
    Regards
    DiegoM.

  • Is it possible to send and recieve audio signal with AI / AO in NI-6229 which is DAQ board.

    I'd like to test MP3 Player.
    The procedure is below.
    1. Send a audio signal of 1kHz from mp3 file in PC through AO in NI-6229.
    2. Record it with MP3 player.
    3. Play a recorded audio signal with MP3 player.
    4. Recieve the signal through AI in NI-6229 and measure frequency and voltage of the signal.
    5. Compare the signal with original signal.
    Do you think it is possible?

    Hello Blue Sky80,
    It is possible to measure audio signals using LabVIEW and Sound an Vibration toolset.  Please take a look at this Developer Zone article on Audio measurements using LabVIEW to get more information on this subject.I hope this helps!
    Regards,
    Ima
    Applications Engineer
    National Instruments
    LabVIEW Introduction Course - Six Hours
    Getting Started with NI-DAQmx

  • 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.

  • Pins at a PCI MIO-16E-1 to Measure Frequency(DAQ-STC).vi?

    I want to measure frequency with the
    "Measure Frequency(DAQ-STC).vi".
    Can't find the appropriate connector pins
    in the manual of my PCI MIO-16E-1.
    Can someone confirm or correct me?
    Signal - PFI1/GPCTR1_SOURCE
    SignalGND - PFI9/GPCTR0_GATE
    PFI8/GPCTR0_SOURCE - PFI4/GPCTR1_GATE
    Thanks in advance
    Manfred

    Manfred,
    You can find this information by going to the http://www.ni.com/manuals site and viewing the E-series manual. There is a table which shows the pin number, name, and function for each pin.
    Pin 10 - PFI1/Trig2
    Pin 11 - PFI0/Trig1
    Pin 43 - PFI2/Convert
    Pin 42 - PFI3/GPCTR1_Source
    Pin 41 - PFI4/GPCTR1_Gate
    Pin 40 - GPCTR1_out
    Pin 6 - PFI5/Update
    Pin 5 - PFI6/WFTRIG
    Pin 3 - PFI9/GPCTR0_Gate
    Pin 2 - GPCTR0_Out
    Pin 4,39,35,36 - DGND
    Mark

  • How LabVIEW get interrupt signal from microcontroller

    Hello,
    I try to write a LabVIEW program to test PC Oscilloscope using microcontroller and parallel port.
    The program will triger the microcontroller and wait for the interrupt signal from the microcontroller.
    Then read the data and show the display.
    I defined my ECP port as bi-directional and IRQ enable.
    The problem I faced in here is how to get interrupt service in LabVIEW 5.1 without DAQ board.
    My computer's IRQ is 07 and I would like to control interrupt service by using parallel port.
    Thanks in advanced.
    Best Regards,
    HMU

    Hi,
    I was very interested looking for possible answers to your question - no feedback from other people - o.k.
    I think, that I have some experience with LabVIEW and
    the use of printerport on different operating systems (Win9x,WinNT,W2k). But I would solve your problem with
    polling of that "filtered" bit on printerport. If some- body has a better idea - let me know. If you have questions about interfacing @ printerport - please write to: [email protected]
    Regards
    wha

  • 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.

  • FSK Signal Generation DAQ Card

    Hello,
    Sorry in advance if this question is inappropriate for the boards, but I didn't know where else to go...
    I'm trying to generate an FSK Signal in labview.  I've seen that LabView has FSK modulation tools, but what DAQ card would I need to actually transmit the FSK?  My lab has 6070E and 6534 DAQ cards, could these do the job?
    As far as I understand, the FSK modulation vi converts an array of bits into an array of voltages (the FSK signal)... How do I actually output this?
    Thanks!
    Neil

    Hey Neil,
    Check out the following links that you will probably find helpful:
    - What Is Frequency Shift Keying?
    - DAQ-STC: Frequency Shift Keying (LabVIEW Example Program using an E-series DAQ board)
    - KB: Can I Perform Frequency Shift Keying (FSK) with NI-DAQmx?
    It looks like the example linked above works with E-series DAQ boards, which it looks like you have, so that is good. But it also looks like you will have to use the older version of the DAQ driver - Traditional DAQ, and not DAQmx.
    I hope this helps, and should hopefully get you started. Please let us know if there is anything other questions or concerns. Thanks, and have a great day.
    Regards,
    DJ L.

  • 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

  • Better estimation of phase difference between two signals with variable frequency!

    Hello LabView Gurus, 
    Being a power engineer and having just a little knowledge of signal processing and labview, I have been pulling my hair out for the last couple of days to get a better estimation of phase difference between two signals.
    We have two analog voltage signals; 1. sine wave (50Hz ± 1Hz) and 2. a square wave with exactly half of sine wave frequency at any time.
    At the starting point of operation (and simulation/acquisition) both signals will have no phase difference. However, the square wave's frequency changes unpredictably for a just a few millisecond but then it gets synchronized with sine wave's frequency again. This means that the square wave will be phased out from its original position. The task of the labview is to find the phase difference between the two signals continuously.
    My approach to determine the phase difference is to measure the time when sine wave crosses zero amplitude and the time when the very next square wave changes amplitude from zero volts to +ve voltage (I have a 0.5volts threshold just to avoid any dramas from small line noise). The difference between these times is then divided by the time period and multiplied by 360 to get this phase difference in angles. 
    As this part is just a small block of a big project, I can only allow 5000Hz sampling rate each for both signals. I read 500 samples (which means I read data from 5 cycles of sine wave and 2.5 cycles of square wave).
    Now the problem is, as long as the frequency of sine wave stays constant at exactly 50Hz, I get a good estimation of the phase difference but when the frequency changes even a little (and it will happen in the real scenario i.e 50Hz ± 1Hz  and the square wave's frequency is dependent of sine wave's frequency), the estimation error increases.
    I have attached my labview program. From front panel, you can set the phase of square wave (between -180 and 0) and you should see the labview's calculated phase in the indicator box named 'Phase'. Then you can press 'Real Frequency' switch that would cause the frequency to change like it would in real operation.
    You can observe that the estimation error increases after you push the button. 
    All I need to do is to reduce this estimation error and make it as close to the actual phase difference as possible. Any help would be greatly appreciated.
    I am using LabView 2009 for this task.
    The application is for electric machines and the stability/performance of machines under different faults.
    Thank you for reading this far!
    Regards,
    Awais
    Attachments:
    v603.png ‏320 KB
    v603.vi ‏186 KB

    Jeff Bohrer wrote:
    Basic math gives me a bit of pause on this approach.  You are sampling at 50 times the frequency of interest so you get 50 samples per cycle.  your phase resolution is 1/50th cycle or 7.2 degrees +/- noise.  You will need to samlpe faster to reduce phase resolution or average multiple readings (at a time cost that is signifigant)
    Jeff- (Hardly Working)
    I am sampling at 100 times the sine wave's frequency and 200 times the square wave's frequency.  Increasing the sampling rate completely solves my problem. But since I am acquiring several other inputs, I cannot afford a sampling rate higher than 5kHz.
    F. Schubert wrote:
    I'm not a signal processing expert, but here my basic understanding.
    If you simulate sampling with 5kHz and a frequency of 50 Hz (and both are 'sync' by design), you always get an exact 5 periods. Any variation of your signals frequency gives you a propability to get 4 or 6 'trigger' events. That's an up or down of 20%!
    The one measure to reduce such problems is using 'window functions'. They don't fit your current approach (counting instead of a DSP algorithm), so this needs to be reworked as well.
    My approach would be to use the concept of a Locki-In amplifier. You need to phaseshift your ref-signal by 90°. Then multiply your measurement signal with the ref signal and the phase shifted ref signal. The obtained values for x/y coordinates of a complex number. Calculate the theta of the complex number (with the LV prim). Feed this in a low pass filter.
    The trick on this is, that the square wave has harmonics in it, in this you are interested in the second harmonic which is the sine wave.
    To get rid of the effect that the sync between sampling rate and ref signal frequency gives an error, you then can use the window I mentioned above (place it before the lock-in).
    For a design that really plays well, use a producer-consumer design pattern to get the calculations done in parallel with the DAQ.
    I suggest you to check on wikipedia for some of the keywords I mentioned. Go also for the external links which lead to great tutorials and AppNotes on the signal processing basics.
    Sorry, it's not a simple solution I offer and we will have quite some conversation on this forum if you follow this path. Maybe someone else knows a simpler way.
    Felix
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml
    An interesting view. the sine wave can indeed be looked as a second harmonic of the square wave. I will implement your idea and get back to you as soon as I get some results. But since I have very limited knowledge of signal processing, it might take me a while to get my hear around the solution you mentioned.

  • 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

  • Position for Programmer experience with DAQ and C++/Labview

    We are company located in the Bay Area of California and looking for
    a programmer experienced with programming (from scratch) DAQ boards for
    signal generation (sine/triangle/sawtooth) waveforms as well as DAQ
    digitizers, FFT, and data displaying.
    You should be
    able to program these cards using C++, but should have strong knowledge
    of labview as well. You may be asked to translate and migrate labview
    VI's to the C++ enviroment.
    Job applicants from
    the Bay Area, as well as abroad are welcome to apply.Those outside of
    the Bay Area can develop code at your own home office and must have
    C++/labview on a suitable computer for programming.
    Applicants should apply by sending an email to: jobs at intereasemedical dot com and indicate IE002 as the job position code.
    Do not post your resume as a reply to this forum post.
    Do include your resume in PDF or DOC format
    Do
    include your billing rate and if you are authorized to work in the U.S
    if located in the Bay Area. We do not provide H1B sponsorship. 
    Responses without the above information will not be considered.  
    Thank you! 

    Hello, I have much experience with DAQ, C++ and Labview. How to apply for this position?

  • 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.

Maybe you are looking for

  • Getting Dynamic XPOS and YPOS for drawing the line in MAIN window in SAP Script using BOX command

    Hi Experts, I am trying to draw a line using the BOX command in the main window. /:         BOX HEIGHT 0 TW FRAME 10 TW INTENSITY 100 I want to draw a line in XPOS and YPOS dynamically.. Is there any way to find such I can draw a line dynamically aft

  • Could not create JCOClientConnection

    Hello, I've created a WD application that use JCO connection. I successfully run it from the web dynpro content administrator. and the ping/test for the MODELDATA is successful. but If I copy the app. url an paste it to different browser, or if I try

  • Duty paid in Export

    Hi, I have scinario in which i ve to pay duty in Export.But as I have flag series group EX for No duty utilization my duties in this scinario is become statistical and I can't post them in cenvat acc. How i can work with this scinario?

  • My iMac won't play AVI files.

    sorry - forgot to add that I sent one of my black screen videos to someone who has the exact same iMac as me & it worked fine - you could see it & hear it. As I am pretty much a mac virgin I'd really appreciate the help. Thanks.

  • Support for triggers for tables with clustered column-store indexes

    Hello, We are very excited about the new clustered column-store indexes in SQL 2014 and our performance tests shows significant performance gains.  However, our existing functionality relies on triggers and they are not allowed on tables with column-