Stopping a buffered AO channel by a analog trigger point

What I need to do is stopping an buffered AO instantly when I receive a limit from a transducer.
The problem is when I tried writing zeros to Ao Write When a limit occures that there was a few seconds laps before the output channel went to zero. I would like to see at max. 200mS for this to happen.
Should I just clear the channel that a limit has occured and write a zero to AO Single Update to solve this problem or is there another method to stop generation with AO Write.
I have a PCI 6071 and use both analog output channels for outputting buffered generation. One cahnnel is configured as AO group 0 and the other as AO group.
The program is written using Labview 6i
Thanks

Hello;
Onw thing you can do is to configure the Labview shipping example that does triggered Analog Output, to pause while gate is TTL high, at the "trigger or gate condition" input. Also, you need to make sure that the external TTL signal that comes from the sensor, stays high state so the Analog Output will be paused.
Hope this helps.
Filipe A.
Applications Engineer
National Instruments

Similar Messages

  • Stop trigger, how to specify the analogy trigger channel?

    Dear All,
    In fact, I am using DAQ2204 cards from ADLINK, which is more or less equivalent to NI E-series muttifuntion board. However, I have some problems with regard to my data acquisition program. Basically, it is about a middle/stop trigger application, which means data acquisition will be starting once the specified analogy channel (for example, channel 0) exceeds a prescribed value.And, data both before and after trigger will be acquired. However, I do not quite understand how to physically make the I/O connection and specify the analog trigger channel and level.
    According to the board User's Guide, 'SRC1 can be used for all trigger modes while SRC2 can only be used for post and delay trigger modes'. I have come across similar description with NI examples before. It would therefore be very appreciated if anybody can help. Thanks in advance.

    Hi dragondriver,
    I'm providing below links to 2 documents that discuss wiring considerations that are applicable to your device.  Hopefully this information is helpful!
    E Series User Manual
    http://www.ni.com/pdf/manuals/370503k.pdf
    Field Wiring and Noise Considerations for Analog Signals
    http://www.ni.com/white-paper/3344/en#toc5
    Josh B
    Applications Engineer
    National Instruments

  • How do I use PFIO as my analog trigger channel?

    I'm trying to use PFIO/TRIG1 as a analog trigger signal in a channel scan list. The analog input configuration doesn't seem to recognize this as a analog channel (just 1 to 15. I'm using Labview 6.1, PCI-MIO-16e-4, and the BNC-2090

    Voraciousniuser is correct. You set the triggering in the AI_Start VI. We also have some examples on our website:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/C7691D8BFAA6881D86256802007B8A9C?opendocument
    http://zone.ni.com/devzone/conceptd.nsf/webmain/2AF60E522378449286256815005806D3?opendocument

  • Monitor multiple channels for analog trigger with DAQmx drivers

    Hello! I would like to start a data acquisition of multiple analog channels (16) from an analog trigger. I would like trigger to monitor four of the (same) channels, and trigger when any one of them reaches a certain voltage. I found an example that would work with the Traditional DAQ drivers (using occurances), but can't figure out how to do something similar in DAQmx.
    Time is also an issue, as I would like to collect the first 80 milliseconds of data after the trigger (at a rate of 500,000 Hz).
    I'm using LabView 7.0 and collecting data off of two PXI-6133 cards.
    Thanks for your help!

    Hi Denise-
    After some research, I have found that it is not possible to use the functionality of DAQ Occurrences in DAQmx. Ironically, the reason that this functionality is available in Traditional and not DAQmx is due to the exploitation of an inherent limitation of Traditional that was upgraded in DAQmx. The multi-thread capability of DAQmx is a major advantage for most applications, but in this case it prevents the use of occurrences as they existed in Traditional DAQ.
    In short, this means that you can't directly use this functionality in DAQmx. You can however emulate this functionality with minimal software analysis of the incoming signal. I have attached a modified example VI that logs data to a chart only when the analog level of one of the channels being measured has exceeded a user-defined reference value. Basically, the task is running continuously in the background but the data is not actually logged until the signal is above a predetermined "trigger" level.
    Please let me know if the attached example is helpful for your application. You will see the input channels listed in the format "DevX/ai0:y" where X is the device number and y is the highest channel number of interest.
    Regards,
    Tom W
    National Instruments
    Attachments:
    Cont Acq&Graph Voltage-Int Clk Analog SW Trigger.vi ‏83 KB

  • Acquiring 4 channels at 10kHz using PCI-6070E card and Labview 7.0. I need to average a signal that is time-locked to an analog trigger. Is their an available vi to accomplish this?

    I am acquiring 4 channels of data, sampling at 10 kHz. I am using a PCI-6070E board. I need to average a biological signal time-locked to an analog trigger that occurs at about 3/second. Is there a vi that will accomplish this?

    If you are looking for a way to do a "retriggerable" acquisition, there is a shipping example called Acquire N - Multi-Analog Hardware Trig.vi that accomplishes this. However, please note that this example achieves this effect by reconfiguring the task for each trigger in software. This means there is a delay between reconfigurations. If a trigger signal comes during this reconfiguration, it will be missed. This delay is system dependent on how fast your computer can execute the reconfiguration code. The 6070E does not support hardware retriggerable acquisitions.
    However, if you are wanting to acquire continuously and then do some post-acquisition analysis, I couldn't find any examples that accomplish this, but it wouldn't be too hard to build one yourself. Y
    ou would probably want to include your trigger signal as an additional input channel. Then once you've acquired all of your data, in software you can scan through the data acquired for the 5th channel and then segment your data according to that signal. I hope this information helps.

  • Stop / start buffering from tv to films

    hi all im new and if this has been covered apologys .
    i have a 1phone 4 ios 5.0.1 -- 04.11.08 on the three uk all you can eat data plan . data speed on avarage 3G 4.6mbs - 6.7 mbs
    i try and belive me i really try to watch catch up tv / filmon / netflix / ..and face a constant issue of stop start / buffering .
    all i get is the progress meter and volume level i press the screen it disapears and somtimes starts to play for a matter of seconds
    and then stops yet again .
    i have tested my conection time and time again and gone to great leanghths to be 100% sure three arnt throtteling me .(they are not )
    i have tethered my iphone to my laptop and no problems at all it just plays and plays and plays maybe once in a blue moon it may buffer normally
    at peak times .
    three have been very helpfull and spent a large amount of time trying to sort this problem for me to no avail .
    they have sent me so many new micro sims just incase thats the coaurse .
    im on to my 3rd iphone 4 still the problem arrises its not a mast issue as i have this problem nation wide .
    i have used differant phones for example htc desire hd and it plays none stop with my micro sim card + adapter cover .
    i recently sent a email to saga regarding sonic all starts racing game for the iphone 4 as it has conection issues over 3g and keeps droping conection.
    they sent me a responce back saying we are aware of a conection issue regarding the iphone 4 on the IOS 5.0.1 .
    apple are investigateing this issue and as are we .
    we intend to release an update that should help with this problem .
    we have been informed by apple that a update is forthcoming in the next few months .
    i hope this ansewrs your question .
    this kind of ansewrs my next question but want to be sure is this a well know issue you guys are facing as well ?
    any body have a solution or fix around .?
    thanks very fed up mailroomman

    If your loop continues, why not just do a time check in that data acquisition loop?  If the time expires, stop and let the outter loop reset everything.
    Another thing to be aware of, since you are using USB, make sure your power settings for the bus is for Windows to never shut down the USB hub power.  By default, Windows has this "power saving" feature set to turn off the USB hub if it doesn't certain activity.  That might be what is causing your DAQ to hang.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Is there any way can stop the automatic mode channel?

    Hi Expert,
    I wanna confirm if there are anyways can make the automation mode channel to be stopped, excepting stop the channel in
    the "Runtime Wrokbench" of the Browser by manual.
    I expect the manner as using the Http Request to stop the channel.
    Is there any way?
    ( I consider maybe the way using Http request to stop the automation mode channel is not viable. cause I got the error msg describe as follows:
    The channel "GSCMDRECEIVERBJ/XIF_JAVA/APS2GSCMDBJ_RECEIVER_CC (GUID 9c094a53361438e6947efba69a4c7715)" is configured to use an automation mode not compatible with the type of the current principal (WSUSER). The channel was not started. Change the channels automation mode and repeat the administrative action. )
    Thx in advances.
    Brian

    Hi Brian
    Check this blog " Control Communication Channels Externally without using RWB "
    /people/william.li/blog/2007/05/04/control-communication-channels-externally-without-using-rwb
    I guess it might help you
    Regards
    Harish

  • Analog trigger with 6071e in C

    I'm using the NI6071e MIO board and what I need is to perform SCAN_Op continously on 4 AIs. When a trigger of 1.1V reached in AI2 - stop trigger, I need 300 samples pretriggered plus 200 samples of poasttrigger data (total of (300+200)*4 = 2000 samples. I'm writing code in C, using the Microsoft VisualStudio and the traditional NI-DAQ library. Does anyone can explain on how I should perform it? Does anyone have similar code?
    I've been directed to a LAB View example that unfortunatly I can't read.
    Thanks,
    Nir.

    Hello,
    I'll try to offer some tips. It looks like you are trying to set up two different triggers for an analog input. This can not be done. Some different options for you are to use pause triggering, reference triggering, or some sort of software triggering. Pause triggering will allow you to collect data when the voltage is above (or below) some trigger value. When the voltage drops below (or above) the trigger value it will no longer acquire data. Another option is using a reference trigger. You can set up a reference trigger to acquire a predetermined number of data points before and after a trigger. Another option might be to use your analog signal as a start trigger for a continuous acquisition. Then, in software, monitor the data being acquired from the trigger channel. When the trigger channel acquires some data that is below your trigger level, stop the acquisition in software (after you have acquired all of your post-trigger data points). I hope this information helps!
    -Alan A.

  • How can I set up a delayed analog trigger on PCI 6115 DAQ

    I have an S-Series PCI 6115 DAQ which I’m running with Labview. I’m using it to measure signals from an acoustic emission sensor and two force transducers. I’d like to set up a delayed analog trigger which will start acquisition on all three channels a period of time after a selected channel’s voltage exceeds a threshold.
    Currently I’m using the AI Config VI in line with the AI Start VI and AI Read VI to capture data after a analog hardware trigger occurs. A software trigger probably wouldn't work because I have to sample my data at 10MS/sec. My setup works fine for triggering without any delay or skip counts. However, if I set the delay or skip count in the additional trigger parameter field of the AI start VI, there is no effect, and the device still starts capturing data immediately after the trigger is received. What is the cause of this, and how can I get around it?
    Also, is it possible to sample the channels of a PCI-6115 DAQ at different rates? Right now, I’m sampling all my channels at 10MS/sec and throwing away data on all channels except one. However, this seems relatively slow and eventually I would like to attempt pseudo-real time control using my data.

    rpursley8 is right about needing to get the counters involved if you want a hardware timed delay in your application.
    Concerning whether or not you can sample at different rate, check this document out.
    Sampling Different Channels at Different Rates with NI-DAQmx
    Otis
    Training and Certification
    Product Support Engineer
    National Instruments

  • Negative analog trigger voltage

    Hello,
    I am currently working on a program in Labview 6.1 with two E-series devices acquiring data simultaneously.  I am currently using a analog channel to trigger the acquisition.  My application uses a signal that has both positive and negative voltage sources.  Right now, when I set a voltage, the devices wait until the voltage level is reached before acquiring data.  Well, if I am relying on a voltage that is always going to be negative, that value will never be reached.  I guess I need to take the absolute value of the voltage coming from the trigger channel and then trigger if the absolute value reaches a preset value.  Can anyone help me with this?
    Thanks a lot,
    Taylor

    Taylor,
    Since you are using an analog trigger, you should be able to set the analog level in the AI Start vi.  I have attached a vi with just the AI Start.vi and the needed settings for what you are trying to accomplish.  Let me know if this helps.  Thanks and have great day!
    Regards,
    Lon
    Attachments:
    Trigger Config.vi ‏19 KB

  • Is it possible to start a PCI4472 and a PCI-MIO-16E-1 simultaneously using an analog trigger (with pre-trigger)?

    I would like to start several PCI 4472 and a PCI-MIO-16E-1 simultaneously. All boards are connected via a RTSI cable.
    My program works fine if I use software trigger, or an analog trigger from a PCI4472 channel. However, the analog trigger works only when I set pre-trigger (or pre-scan) to 0.
    Is it possible to start a PCI4472 and a PCI-MIO-16E-1 simultaneously using an analog trigger (with pre-trigger)?
    Thanks.
    Ian Ren

    Hi, Bill
    I think it is possible to set more than 38 pre-trigger scans on a single 4472 card. I've done this before. You can verify this by running the Labview example "Acquire N - Multi-Analog Hardware Trig.vi" which comes with LabView.
    What I try to do but without success/luck so far is to start data acquisitions of several 4472 cards and a PCI-MIO-16E-1 card using an anlog trigger (with pre-trigger).
    Thanks for your help.
    Ian

  • Can PCI-6023E support hardware Analog trigger

    I try to use the PCI-6023E to do the hardware analog triggering, but it gives me the Error-10403 while I test with the vi example, Aiacquires N Scans Analog Hardware Trig.vi. Is there any way for this board to do the hardware triggering?

    Jack,
    The PCI-6023E DAQ board only supports digital triggering. You can check all the features of this board in the Data Sheet and Specifications on the Catalog page (see link below)
    2002 Catalog - PCI-6023E
    http://sine.ni.com/apps/we/nioc.vp?cid=1063〈=US
    If you need to perform analog triggering, you have three options:
    1) You can simulate it by acquiring continuosly all the signals that you want to monitor including the one that acts as the analog trigger. Compare the value read from this last one with the boundary that is supposed to trigger the acquisition, and when the value read reaches this boundary, you can save or display the data from all your channels.
    2) You could implement an external circuit that will compare the analog trigger signa
    l with the boundary value, and when they coincide, will generate a digital pulse that you can use as a digital trigger. This option optimizes your CPU usage.
    You can find detail information on how to set up the digital trigger in Chapter 4>>Timing Connections of the User Manual linked below.
    6023E/6024E/6025E User Manual
    http://digital.ni.com/manuals.nsf/websearch/0C88F40FFE7F28CD862569AE00574AC1?OpenDocument&node=132100_US
    3) Finally, you could get one of our boards that supports analog triggering. The PCI-MIO-16E-4 board has similar specifications that the PCI-6023E, and it has some additional features as well. See link below for more information.
    2002 Catalog - PCI-MIO-16E-4
    http://sine.ni.com/apps/we/nioc.vp?lang=US&cid=10795
    Good luck with your application,
    Claudia Lorente
    Applications Engineer
    National Instruments

  • I use a PCI MIO 16E board with an analog trigger. So I wire chann

    el 0 to the PFIO line, and I enter "PFI0"as the triggering channel on the front panel , I put a level,and I declare channel0 and 1. When I do a DAQ it seems that PFI0 detects the signal as I haven't a timeout, but it doesn't trigger off at the good level.

    el 0 to the PFIO line, and I enter "PFI0"as the triggering channel on the front panel , I put a level,and I declare channel0 and 1. When I do a DAQ it seems that PFI0 detects the signal as I haven't a timeout, but it doesn't trigger off at the good level.I noticed you posted an earlier question that generated several responses about the valid sources of an analog trigger. Was there a reason you decided to use the PFI0 option over just telling LabVIEW to use Analog channel 0 as the trigger source? At what voltage level are you wanting to trigger?
    Also, if you use the Analog Trigger examples in LabVIEW or the DAQ examples for your compiler, do you get better results?

  • Analog trigger 6071

    A simple question for you:
    when I choise analog for the trigger in PCI 6071 and I use PFI0 channel , where I must connect the minus of the signal?
    Thanks

    Greetings delpitik,
    Thanks for contacting National Instruments. The appropriate pin for your connection would be AI GND (pin 76). This information can be found by right clicking on your device in MAX and selecting Device Pinouts. Also, when you create a new DAQmx task in MAX, you can also specify the type of analog trigger. (i.e. edge, window, etc)
    Thanks and good luck!
    Jordan Randall
    National Instruments Italy

  • Analog Trigger Input - PCI 6010

    Hi everyone,
    I have a PCI-6010. I'm programming in VC++ and DAQmx.
    It seems to be a simple task, but i cannot seem to accomplish it by myself.
    I would like to bring in an analog trigger signal and count every rising edge of this signal. 
    Does any one have already made something similar? 
    Hope someone can help,
    Thanks a lot,
    João Rodrigues.

    Hello Eloise,
    I have made some research and i was wondering if I can input my 2V analogue trigger in the PFI0 channel, i just want to use it as a trigger to ouput a waveform.
    The basic code would be like:
    //Create task  and output channel
    DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
    DAQmxErrChk (DAQmxCreateAOVoltageChan(taskHandle,"Dev1/ao0","",-0.5,0.5,DAQmx_Val_Volts,NULL));
    //configure sampling clock and trigger channel
    DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"",1000.0,DAQmx_Val_Rising,DAQmx_Val_ContSamps,1000)); 
    DAQmxErrChk (DAQmxCfgDigEdgeRefTrig(taskHandle,"/Dev1/PFI0",DAQmx_Val_Rising,100));
    //start task
    DAQmxErrChk (DAQmxStartTask(taskHandle));
    //generate waveform
    DAQmxErrChk (DAQmxWriteAnalogF64(taskHandle,1000,0,10.0,DAQmx_Val_GroupByChannel,data,NULL,NULL)));
    In the PCI - 6010 specifications, it is said that the PFI0 channel is a digital channel. Since my signal is analogue, is it correct to input it there? 
    If "no", would it be more appropriate to use this piece of code instead?
    //Create task  and output channel
    DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
    DAQmxErrChk (DAQmxCreateAOVoltageChan(taskHandle,"Dev1/ao0","",-0.5,0.5,DAQmx_Val_Volts,NULL));
    //configure sampling clock and trigger channel
    DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"",1000.0,DAQmx_Val_Rising,DAQmx_Val_ContSamps,1000)); 
    DAQmxErrChk (DAQmxCfgAnlgEdgeStartTrig(taskHandle,"Dev1/ai0",DAQmx_Val_Rising,1.0));
    DAQmxErrChk (DAQmxSetAnlgEdgeStartTrigHyst(taskHandle, 0.1));
    //start task
    DAQmxErrChk (DAQmxStartTask(taskHandle));
    //generate waveform
    DAQmxErrChk (DAQmxWriteAnalogF64(taskHandle,1000,0,10.0,DAQmx_Val_GroupByChannel,data,NULL,NULL)));
    What is your opinion about that?
    Thank you for your help.
    Best regards,
    João Rodrigues.

Maybe you are looking for