Analog Triggering

I have a PCI6110 Board. I'm generating a signal on analog out and reading the return signal back on one of the four input channels of the 6110. It appears the way my code is written that the signal gets back to the input long after the code has executed ( LV 6.1). I'm using intermediate vi's. I guess I want to "setup"( AI Config.vi etc) read acquisition, write out the data then trigger the actual read intermediate vi's with the returning signal. Is this reasonalble approach and HOW DO I DO IT ? It would sound reasonable to select trigger as ANALOG on the start intermediate vi but I don't think this is right. I think it suppose to be DIGITAL A ?? That doesn't make sense if its an analog signal. Is there an example of the code and what signal I
connect for the PCI6110E??PFI0???

Greetings,
Setting the analog input trigger for Digital A will setup a digital start trigger, and so you won't want to to that if you're wanting to trigger off of an analog value coming from an analog output channel.
I would take a look at a LabVIEW shipping example entitled 'Cont Acq&Graph (buffered) Hard A-Trig VI' that shows how to configure an analog trigger.
The analog trigger source can either be PFI 0 or the first analog channel in the scan list. So, if you are wanting to trigger off of analog channel 3 and you are reading from analog channels 0,1,2 and 3, channel 3 would have to be first in the scan list (3,0,1,2 for example).
The AI Start VI is the VI with the inputs for configuring triggering. The shipping example I referenced above shows how t
o configure all of the inputs for the AI Start VI to set the trigger.
I hope this helps. Let me know if you have any other questions.
Regards,
Todd D.
NI Applications Engineer

Similar Messages

  • Analog Triggering and Interrupt generation on the PCIe-6320 under Linux

    We would like to use the analog triggering functions of the PCIe-6320 under Linux to time tag external events.
    I have no experience with the MH DDK but have been told this is what we would need to implement the functions we want. We plan on using Fedora Linux and we are targetting kernel 2.6.31 with the PREEMPT_RT patch applied. We may consider slightly more recent kernel versions. The PREEMPT_RT patch is used to greatly improve determinism in the system and get real-time responses to some external events.
    Here is what we wish to do in more details:
    We wish to route at least two analog inputs to the comparator, then route the output of the comparator to a digital input which in turn would create a PCIe interrupt. The interrupt software handler would than time tag that event for our application purposes. We need the comparator threshold to be software programmable in level and slope. We are also interested in using the Watchdog Timer feature of the board.
    Our application is written in C/C++.
    Would the above be feasible? Please provide comments and instructions how we should address our requirement.
    Thanks!

    Patof wrote:
    I am not familiar with the MHDDK. I would like to have an idea of the effort required to implement the functions I have described using MHDDK on Linux. Like I mentionned, we plan on using Linux kernel 2.6.31 with the PREEMPT_RT patch. Could you provide comments on that matter? I need to evaluate the amount of time I will need to spend to deploy and use MHDDK for the PCIe-6320.
    There are two factors to consider when writing a driver for your specific application:
    Using the deterministic kernel API calls
    Writing to the device registers to
    Control the watchdog timer
    Configure the analog comparator
    Manage the analog subsystem state as trigger events occur
    Handle device interrupts
    The MHDDK for X Series offers the following behavior out-of-the-tarball:
    A Linux kernel module using the standanrd kernel and PCI subsystem calls
    Mapping device registers to user-mode for access
    Demonstrating/documenting how to
    Control the watchdog timer (dioex6.cpp)
    Manage the analog subsystem state as trigger events occur (aiex2.cpp, aiex4.cpp)
    Handle device interrupts (reference manual only)
    There are two notably missing pieces and one item to consider:
    Missing: deterministic kernel API calls. If you decide to use the nirlpk module, you would need to change it from the standard interfaces to the deterministic variants.
    Missing: configuring the analog comparator. You will need to implement this with additional insight from this discussion board.
    Consider: if your application requires device access from kernel-mode only, you would not be able to use the MHDDK's C++ classes that perform device programming but would need to implement register programming in C.
    To estimate the time for these three, here are my recommendations:
    Review the nirlpk.c source file to understand how device access and DMA buffers are implemented and mapped to the user-mode application.
    Beware that operation-specific programming help (as you would need for analog triggering) typically requires two weeks for a complete response.
    Review the ChipObjects in the MHDDK distribution to understand how register addresses, widths, and bit fields affect device programming.
    Joe Friedchicken
    NI VirtualBench Application Software
    Get with your fellow hardware users :: [ NI's VirtualBench User Group ]
    Get with your fellow OS users :: [ NI's Linux User Group ] [ NI's OS X User Group ]
    Get with your fellow developers :: [ NI's DAQmx Base User Group ] [ NI's DDK User Group ]
    Senior Software Engineer :: Multifunction Instruments Applications Group
    Software Engineer :: Measurements RLP Group (until Mar 2014)
    Applications Engineer :: High Speed Product Group (until Sep 2008)

  • How to use analog Triggering and External clock scan

    Hi, there. I want to measure the engine cylinder pressure with an PXI6070-E card and BEI encoder. I have tried using Cont Acq&Graph ExtScanClk D-Trig.vi and Cont Acq&Graph ExtScanClk Soft A-Trig.vi , but they don't work. What I did was to connect a 50HZ pulse to PFI0 (analog triggering, I changed the code from digital triggering to analog triggering), and a 100K pulse to PFI7 (startscan), and an 50 HZ analog signal to ACH0. But the code always says: timeout. If I use internal clock, it works fine. Could you please give me some help? THANKS A LOT!

    Hey Wyuan,
    I tested the Cont Acq&Graph ExtScanClk Soft A-Trig.vi and it worked fine. However, the Cont Acq&Graph ExtScanClk D-Trig.vi has a small error in its logic that will prevent the data from ever being displayed to the graph. In order to run the examples you need to connect a trigger to pin 11 and a scan clock to pin 38. A 10kHz square wave would be fine for the clock signal and just a single pulse would work for the digital trigger.
    One additional think to keep in mind is the grounding. You might need to connect you ground from your signals to a DGND pin. I am including the two programs that I used for the test.
    I hope this helps,
    Joshua
    Attachments:
    Cont_Acq&Graph_ExtScanClk_D-Trig.vi ‏121 KB
    Cont_Acq&Graph_ExtScanClk_Soft_A-Trig.vi ‏153 KB

  • What option do I have for programming analog triggering in a 6035e daq?

    I am using a 6035e board but it doesn't support analog triggering option. I read the manual and it said that the PFI input is use for triggering, how does it work? I want to acquire some data before and after a voltage condition (this condition must be done with analog triggering ?)how can we do that using a 6035 board?
    Best Regards,

    Sandra,
    You are correct, the NI 6035E does not support hardware analog triggering. The PFI lines can be used for digital triggering (TTL logic). A digital stop (reference) trigger does support both pre-trigger scans and post-trigger scans. The example Acquire N Scans Digital Trig.vi demonstrates this programming procedure in LabVIEW. If you do need to perform analog triggering, you should use an analog software trigger. The example Acquire N Scans Analog Software Trig.vi demonstrates this programming procedure.
    Good luck with your application.
    Spencer S.

  • Analog triggering support on DAQ 6025e

    Hello guys,
    I posses the NI 6025e board, and I've tried to use an example, which uses the start trigger as an analog input. The problem is that I got an error massage, saying that in the "start trigger" vi, I cannot choose "Analog Edge" mode, but only the "Digital Edge" or none.
    I've attached the image of the example with the error window.
    I thought that my board supports analog triggering, can anyone please help ?
    Attachments:
    analog_trigger.jpg ‏124 KB

    Hello,
    According to this data sheet, the 602xE family does not have analog triggering functionality (Page 9, under Analog Triggers).  That is why the error tells you that you can not select analog trigger.  Sorry
    -Alan A.

  • I am having trouble using analog triggering on PFI0 with PCI-6110

    I am having trouble with analog triggering. I am trying to use PFI0 as an anlog input for triggering purposes and this is on a PCI-6110 card. I am outputing a 10Hz 5Vpp triangle wave signal from an analog output channel and inputing it into PFI0. I am configuring the trigger with the code listed at the bottom. When I start the data acquisition is not triggered. If I increase the frequency up to about 480-500Hz then the trigger will start and then I can actually move the frequency back to 10Hz and it will continue to trigger. Also if I leave the code the same and the waveform the same but switch the trigger type to cwaiHWdigital then it will trigger at the 10Hz level. I suspect that this may have something to do with the coupling of the PFI0 input but I am not sure if this is the case and if it is I do not know how to configure the coupling of PFI0 in measurement studio VB. Any thoughts would be appreciated.
    cwaiDAQ2.StartCondition.Source = "PFI0"
    cwaiDAQ2.StopCondition.Type = cwaiContinuous
    cwaiDAQ2.StartCondition.Type = cwaiHWAnalog
    cwaiDAQ2.StartCondition.Mode = cwaiFalling
    cwaiDAQ2.StartCondition.Level = 2
    cwaiDAQ2.Configure
    cwaiDAQ2.Start

    I tried increasing the voltage and this did not seem to have nay affect on the frequency that it started triggering. I also tried to lower the trigger level. As far as trying other PFI's I dont believe I can. As fas as I can tell PFI0 is the only one that can be used as an analog input and analog trigger.
    I looked at the article in the knowledge base 2ZD9B3W3 and it seems to be a similar problem. I tried to replicate the code in my program but I really have no experience with NI_DAQ function calls in visual basic so maybe I am doing it incorrectly. I did not get any errors but the NI_DAQ function calls are mixed in with CWAI measurement studio function calls so maybe when I configure cwai it resets what I have just changed with NI_DAQ. I could really use some specific direction on how to succesfully set PFI0 to DC coupling with the CWAI control or how to mix measurement studio and NI_DAQ functions.

  • 6025E analog triggering

    Hello,
    I am trying to use an analog trigger to start my continous analog input recording task (writing analog input to a file). I am having difficulties using NI-DAQmx 7.1 and the example program
    "VC_AcqIntClkAnlgStart". When I execute the program, I receive the error:
    DAQmx Error: Requested value is not a supported value for this property.
    Property: DAQmx_StartTrig_Type
    You Have Requested: DAQmx_Val_AnlgEdge
    You Can Select: DAQmx_Val_DigEdge, DAQmx_Val_None
    Task Name: _unnamedTask<0>
    Status Code: -200077
    Why is this occuring? Does the 6025E not support analog triggering?
    Also, does the NI-DAQ 7.1 driver provide support for writing analog input data directly to a file? That would be really useful
    I am using Wind
    ows 2000, Microsoft Visual C++ 6.0, NI-DAQ 7.1.
    Thanks NI support team for all of the help you have given me over the past couple months.
    - Tree

    Tree,
    No, this board does not support analog triggering.
    The NI-DAQ 7.1 driver does support direct file writing to disk. There is a traditional DAQ function called "DAQ_to_Disk" that performs a synchronous, single-channel DAQ operation and saves the acquired data in a disk file. I think that this function may be of use to you.
    For more information about DAQ_to_Disk, go to your desktop, click [Start]>>[Programs]>>[National Instruments]>>[NI-DAQ]>>[Traditional NI-DAQ Function Reference Help] and search for "DAQ_to_Disk".
    I hope this helps! Have a great day.
    Kind Regards,
    -Joe Des Rosier-
    National Instruments

  • Analog triggering to RFSA

    I need send a external trigger to RFSA. The function gen is used to send analog triggering to RFSA. The problem is that i
    can't find driver for analog trigger in RFSA. Is there any way to resolve?  Thank you.
    Charles

    Charles,
     What version of LabVIEW are you using and what hardware are you using? If you open LabVIEW and look in the example finder and search for RFSA you should find and example VI called "NI 5660 Trigger IQ.vi". Will this work for you?
    Hope this helps.
    Using LabVIEW 2010SP1 and TestStand 4.5

  • Analog Triggering using E-series board

    Hello. I'm very new to Labview but I'd like to trigger using either a
    change in slope or a relative voltage change. Presently, it is
    triggered using an absolute voltage value on a rising slope. Is this
    possible on an E series DAQ board? Thanks.
    Alan

    [email protected] (Alan) wrote in
    news:[email protected]​om:
    > Hello. I'm very new to Labview but I'd like to trigger using either a
    > change in slope or a relative voltage change. Presently, it is
    > triggered using an absolute voltage value on a rising slope. Is this
    > possible on an E series DAQ board? Thanks.
    >
    > Alan
    >
    My guess is what you want to do is not possible. One trick would be to
    constantly sample and throw away the data while testing for your trigger
    condition, and then start saving the data.
    Otherwise, you're probably going to need to use an analog differentiator or
    an analog high pass filter on your trigger line.
    Scott
    Reverse first field of address to reply

  • Gated-event counting using analog triggers?

    I'd like to software trigger gated-event counting with analog signals. eg. Use a comparison to check analog input levels to a 6024E card, once a trigger level is reached send a digital out from the 6024E to a 6601 gate to commence and terminate a counter of the 6601 card.
    I have found that the counter on the 6024E card is not stable enough for this application, but the NI-TIO cards work reliably.
    Any tips greatly appreciated,
    Alan

    Alan;
    In case you want to trigger a finite pulse train generation of an analog hardware trigger, you can still accomplish that with an e-series board only.
    You will need to use both general purpose counters available on the DAQ device though. The first counter needs to be configured as retriggerable pulse generation, having its gate being routed to the AI Start Trigger pulse of the Analog Input task. With that done, the counter will generate a pulse at its output at every time the Analog Trigger level is met. You, then, configure the second counter to execute a continuous pulse train and route the first counter output to the second counter gate input. That will make the second counter to generate a pulse train that will be "enabled" by the first counter. The p
    ulse train will be generated while the output of the first counter is on its high state level.
    Knowing that, you can configure the pulse width of the first counter to be as wide as you need the second counter to generate the pulse train.
    Hope this helps.
    Filipe A.
    Applications Engineer
    National Instruments

  • Acquire and process with analogic triggering (LabView 5.1)

    This is my problem
    I would like to acquire a signal with a PCI MIO16XE10 board and when I have
    the true level for the trigger, generate a signal with my ATA0-10 board.
    I can't use the analog output channels of the PCI borad because I need 5
    anaolog outputs.
    Actually I use a software trigger but it doesn't satisfy me, and I would
    like to use the analog trigger possibility of the PCIMIO16XE10 board.
    How can I detect the trigger and immediately driving the ATA-10 board.
    I can't use the RTSI bus because I haven't the cable and I don't know how to
    programm it.
    I sorry for my english but it's not my natural language.
    Thank you all for your help

    Also, could someone touch on how forward compatible LabView applications are? In this scenario, I have the same 5.1 application which now requires some database connectivity. Since the SQL Toolkit is no longer supported, I would be left with upgrading LabView to 7.0 and using the Database Connectivity Toolkit. How well (in general) do earlier LabView applications convert to newer versions?
    Thanks again!

  • Analog Source Triggering with more than one channel in channel list

    Hello,
    I am trying to use an analog reference trigger with a channel list that contains more than one entry using a
    M Series 6289. I am aware that this is generally not possible to have more than one channel in the list due to hardware limitations. I was hoping if some sort of workaround exists.
    I am using the NIDAQmx C API to control the card.
    Using a second card that is syncronized via RTSI should
    allow me to use an analog reference trigger to control multiple analog IO channels ... Right ???
    Thanks for any advice!
    Best regards
    Peter

    Hello Peter,
    If you look at the NI-DAQmx Help, Analog Triggering Considerations for E Series, M Series, and S Series Devices section, it says that to pause multiple channels with an Analog trigger, you must wire that signal to APFI0 or APFI1. Therefore, it is possible to perform this operation.
    If you are sharing the AI Sample Clock across RTSI, then you would be able to stop multiple AI channels across multiple devices with the one Analog Reference Trigger.
    I hope this helps,
    Sean C.

  • Analog,digital and pfi triggering of PXI 6133 card

    Hello,
     i am using PXI-6133 card. i observed that there  are three type of triggering options(i.e., analog, digital and PFI) available on each card. i want to know the difference? and also best  one.
    regards
    chandu

    Hi chandu,
                Analog triggering is based on the value of an analog
    signal. For example you can trigger when your analog signal goes above or below
    a specified value. Digital triggering happens on a rising or falling edge of a
    digital signal. For either type of triggering you must have a trigger source
    that is the signal you are triggering on. For digital triggering on your card this
    can be any PFI line. For analog tirggering it can be any analog input channel.
    A detailed explanation of the triggering capabilities of your PXI-6133 can be
    found in the S-Series User Manual. Triggering is discussed in Chapter 13. Also
    a more great summary of triggering in general can be found in the Developer
    Zone article, Tips and Techniques in Data
    Acquisition Triggering - NI-DAQmx. What triggering is better depends on your
    application and which one is more suited to your trigger signal. If you have a
    digital trigger source then digital triggering will work great. If your trigger
    source is an analog signal than you will probably need to use analog triggering.
    Let me know if you have any questions and have a great weekend.
    Thanks,
    Nathan
    National Instruments
    Digital Hardware Engineer

  • How to use digital trigger with analog I/O

    How do I program analog input and/or analog output to start on a digital trigger (PFI pin) on PCI-4451/4551.
    I have tried out various configuration and succeeded in starting analog input, simultanuous input and output triggered by the the anlaog input signal. I have also succeded i triggering 4551 from the dedicated EXTTRIG pin.
    The problem is to trigger on a selectable PFI pin. I find the help for "AI Trigger Config" and "AO Trigger and Gat Config" misleading - some unsupported features seem to work while selecting PFI pin as source make the PC restart immediately.
    I have not been able to find any LabVIEW example that shows how to use PFI pin as trigger input.
    Using LabVIEW 7.1, NI-DAQ 7.3 on Windows 2000.
    Kind regards / Med venlig hilsen
    Torben

    Hello
    The PCI-4451 does not have any PFI lines. If you look at the user manual in the link beneath you will be able to confirm this by looking at the connector signal discriptions. The same is valid for the PCI-4451
    http://digital.ni.com/manuals.nsf/websearch/6A32358C53BB15F086256660007392DC?OpenDocument&node=132090_US
    The two ways of triggering that you have succeded are the analog triggering and digital triggering that you can peform with the PCI-4451.
    Regards
    Mohadjer

  • Analog Trigger unavialable in PXIe-4353

    Hello,
    I'd be grateful for some help with my case. I'm building a VI for acquisition of multiple signals from thermocouples. My hardware is NI PXIe-1073 chassis with PXIe-4353 module to read the signals.
    The problem is that I want to use an Analog Edge trigger for the start of the measurement but it is unavialable to choose in the DAQ Assistant properties window (I have only None and Digital Edge to choose form). I also tried to do the same with DAQmx functions but I got the Error which says that I can only choose Digital Edge Trigger or None.
    The hardware (PXIe-4353) does seem to support Analog Triggering: http://zone.ni.com/reference/en-XX/help/370471W-01/cdaqmxsupp/pxie-4353/ or am I mistaken ?
    Also I want to note that I currently use hardware simulation and not the actual hardware - can this be the reason?
    My VI and SubVI are attached to this post. I'm new to Labview so I may have made some silly mistake. Please let me know then
    Attachments:
    poczatek.vi ‏124 KB
    poczatek.vi ‏124 KB
    DAqass.vi ‏70 KB

    Dear pancarlos,
    Unfortunately, the hardware does not support analog triggering, as stated in this thread. If that is necessary in your application, you might want to consider adding another PXI card to the system that does trigger on analog input, and use the trigger lines to start your PXIe-4353.
    Regards:
    Andrew Valko
    National Instruments Hungary

Maybe you are looking for

  • Could sombody help me with this panic report?

    Sun Mar 24 18:58:10 2013 Panic(CPU 1): Unresponsive processor (this CPU did not acknowledge interrupts) TLB state:0x0 RAX: 0x00000000ffffffff, RBX: 0x0000000000002710, RCX: 0x0000000000007000, RDX: 0xffffff80f215d078 RSP: 0xffffff80fac0bc1c, RBP: 0xf

  • HT201210 error on updating iTunes 11.1.4 on windows 7 Win64-bits.

    1. error "R6034" attempt to load C runtime library incorrectly. runtime error: program:C:\ProgramFiles (x86)\iTunes\iTunes.exe 2. error "service 'Appe Mobil Device' (Apple Mobile Device) failed to start. 3. error "R6034" attempt to load C runtime lib

  • Acquire data from agilent dso 3104 in avraging mode

    Hi. I'm trying to use the Oscilloscope Agilent DSO-X-3104 A with the LabVIEW 2010. My problem it's about read a waveform for a channel, when I had configured the acquire mode on average. I.E. When I use the example code "Read Waveforms (Single).vi" l

  • Delta PLC with Single phase inverter

    Hello Everyone, I've Delta DVP 20EXPLC. In this PLC, we can generate the pulsed outputs at Y0 and Y1. I wish to do the single phase inverter with the help of this pulses. Now, I am using four MOSFET which are going to operate the switches for inverti

  • BlazeDS binary: samples.war missing

    Hi All, I have just downloaded the BlazeDS binary blazeds-bin-4.0.0.14931.zip. When I extracted it I found that it just contains 2 files, BlazeDS.war and blazeds-bin-readme.htm files. The installation page on Adobe says following The BlazeDS J2EE web