Generate a delayed pulse with analog trigger

I want to generate a pulse with counter when the gate of counter receives a voltage value which is generated by analog output chanel,is this possible??
I am using PCI-6713
Thanks!!

You can generate a triggered pulse in a counter by sending a signal to the gate from the Analog output, as long as such analog output meets the operational contitions of the counter of the PCI-6713. Just make sure that the signal does not exceed 5V. The trigger on the gate pin will be taken as low from 0 to 0.8V and as high from 2 to 5V.
Thanks for contacting National Instruments!

Similar Messages

  • Generating a delayed pulse with each AO iteration

    Hello Filipe:
    I attach a Word file,and I describe my problem in it.
    Thanks!!"
    Attachments:
    Generate_a_delayed_pulse_with_AO_boards.doc ‏25 KB

    Hello;
    Thanks for the clarification. What you need is a retriggerable delayed pulse. I'm attaching an example VI which does retriggerable pulse generation. You will need to adapt this code to your needs.
    Hope this helps.
    Filipe

  • DAQmx: Gating Pulses with Pause Trigger

    I have an NI 9401 module in a 9171 chassis and would like to gate the output of one counter with the output of another counter. Counter 1 (the signal to be gated) generates a 3 Mhz signal and Counter 0 (the gate) generates a 10 Hz signal that is externally routed to Counter 1's Gate pin. I expected this would gate Counter 1's signal to produce the 3 Mhz pulse only when Counter 0 is high, but the wiring had no affect on the output of Counter 1, it still generated a continuous 3 Mhz pulse train.  I found that some code is needed to get a counter to pay attention to the signal at its Gate pin (this post was particularly helpful) and that this can be done with the Pause Trigger property node. After setting up the node, however, I ran into this error:
    Error -20124 occured at DAQmx Start Task.vi:2
    Lines 4 to 7 of this port are configured for input. Cannot configure these lines for output at this time.
    I'm pretty perplexed by this.  The problem seems to be coming from trying to designate PFI 5 ("CTR 1 Gate" on the 9401) as the Pause Trigger source.  If anything, I would think the error would be that lines 4 to 7 are configured for output, since those lines are grouped under CTR 1 which is configured as a CO channel to generate the 3 Mhz pulse train, and that setting line 5 as the Pause Trigger source is changing the configuration to an input.  Searching for this error in the NI forums and Google doesn't pull up any troubleshooting information.  I've tried to create a task to configure line 5 as a seperate digital input channel, but then I get the opposite error (Error -200125) saying that lines 4 to 7 are configured for output and cannot be configured to input, to make things more confusing.
    Any thoughts would be appreciated.  I'm concerned that I'm missing something obvious about gating pulses or configuring CO channels since I keep reading that one of the advantages of DAQmx over DAQ Legacy is that it makes signal routing easier.  I'm using LabVIEW 2012 (32-bit) with DAQmx 9.5.5 installed.
    Solved!
    Go to Solution.
    Attachments:
    Simple_Gated_Pulse.vi ‏29 KB

    Hi agoncalves,
    I took a quick look at your VI and I see two immediate problems:
    1.  There is not guarantee that both tasks will reserve before either one starts.  This explains your error and why it seems confusing.  The 9401 is nibble configurable but you can't change the direction while the device is in use (why the reserves are important).  The module powers up with both nibbles set to input.  Your first task drives an output so it switches direction on one of them.  When your task is committed (started) it locks in that configuration.  The second task then tries to also drive an output but on the other nibble which is input and cannot be switched because the first task is running.  The solution is to use the error wire to force the execution order (or use a flat sequence structure).
    2.  You'll run into problems with your gating signal unless you wire it into a separate input (and put both pulse trains on the same nibble).  You can change that by setting the channel property CO.Pulse.Term.  That's if you want to route your signal through some external circuitry and back in.  If you are using the signal directly, you could just use it internally.  Such as /cDAQ1Mod1/ctr0InternalOutput

  • High speed sampling with analog trigger

    I am a new user of DAQ card and I need to sample the analog signal with a high speed.
    I will use a sinusoidal-like wave to trigger the sampling and set a voltage around the peak of trigger wave with rising slope. When the voltage arrived, I only sample one point from CH0 or CH1. The frequency of the trigger wave is about 5MHz and I heard the LabView only works at KHz level. Is it possible to use LABView to realize my application?
    If it's possible, would you mind telling me how to realize? Or if it's not possible, would you mind telling me what to do? My DAQ card is PXI-5112.
    Thank you very much!!!

    Hello amo71993,
    I guess in this case the solution is creating the little app programatically, save it as a VI and the use it as a function (subVI). Nevertheless I will be researching to see if there is another option and I will post it here.
    Regards.
     

  • Generate a long pulse with a different source clock

    I have configured the 6601 to generate a 1khz train on Ctr0
    I would like to feed this into the source of Ctr1 to generate pulses of longer duration.
    I use the command DaqmxCreateCOPulseChanTicks to set up my pulse train on Ctr1.
    It works if I leave the source terminal as Null "", but it does not work if I change the source.
    To change the source, I have wired ctr0 output to the source of ctr1 and use the label "dev1/PFI39" as the source terminal and have tried "dev1/ctr0Output".
    I am using Visual Basic 6.
    What am I missing?

    Hi,
    Are you receiving any errors when you use anything except null as your source or is the counter simply not outputting anything? Also, have you tried using "Dev1/ctr0internaloutput" as a source as well?
    Regards,
    Hal L.

  • How to generate a delayed retriggerable pulse using only one counter with PXI 6070E card

    Hi
    I have a problem in generating a retriggerable delayed pulse with a single counter(triggered through a signal at gate) using PXI 6070E card. VI was developed in NI LabVIEW traditional DAQ Ver.7.1. I have used the "delayed pulse generator config" VI and a "Start counter" & "Stop counter" VIs for the purpose. But there is no output seen at the out terminal of counter. So I introduced a "wait" VI and set it to 1 sec. Now the pulse output appears but some pulses are missing mometarily after every 1 sec interval. (any solution for this)
    I have gone through a few similar requests in the forum but they suggest either to use two counters or to generate a finite pulse train which does'nt fit my application. Moreover PXI 6070E has only 2 counter timers. I am already using one counter to measure the frequency of a pulse train(signal 1). The application requires to generate a delayed retriggerable pulse for every pulse in signal 1. So I have only one counter left.
    Can I measure the frequency of signal 1 by analog means.? so that I can use two counters for pulse generation. (Signal 1 is a TTL signal).
    Request some help.
    Thanks in Advance
    Regards

    A finite pulse train (N_Pulses >= 2) does require the use of 2 counters on most of our older hardware including your 6070E.  If you're just talking about generating a single retriggerable pulse, you would only need one counter.
    Here's an example in Traditional DAQ that shows you how to set a retriggerable pulse generation (it also allows you to adjust the characteristics of the pulse on-the-fly).
    If you're writing a new program, you might consider switching to DAQmx as it supports NI's latest hardware and recent OSes should you ever need to upgrade.  Traditional NI DAQ is no longer in active development.  Here's an example of how to implement a retriggerable pulse generation in DAQmx.  You should take note that you can't use the two drivers to simultaneously talk to the same piece of hardware, although you should be able to go back and forth by resetting the Traditional DAQ driver before switching to DAQmx.
    Best Regards,
    John Passiak

  • How can I specify a delay generate a counter pulse?

    Hi all,
      I have a question about using the counter to generate the pulse train. I don't have how to program it but I try the test panel in the MAX and I see it generates the pulse train at some rate and with some pulse duration. I am thinking if it is possible to generate only one pulse with given pulse duration at sometimes after I start the task? I have a code to output an analog waveform, the waveform lasting for 35ms. I wonder if it is possible to syncronize the output of the analog waveform as well as the counter such that at 12.5ms after the waveform output started, I send that single pulse from the counter port out. I have no idea how to do that, I am thinking to use a delay but it is hard to precisely control the time to exact 12.5ms.
    Solved!
    Go to Solution.

    PKIM wrote:
    Hi all,
      I have a question about using the counter to generate the pulse train. I don't have how to program it but I try the test panel in the MAX and I see it generates the pulse train at some rate and with some pulse duration. I am thinking if it is possible to generate only one pulse with given pulse duration at sometimes after I start the task? I have a code to output an analog waveform, the waveform lasting for 35ms. I wonder if it is possible to syncronize the output of the analog waveform as well as the counter such that at 12.5ms after the waveform output started, I send that single pulse from the counter port out. I have no idea how to do that, I am thinking to use a delay but it is hard to precisely control the time to exact 12.5ms.
    I found an example in the CVI show how to generate a single digital pulse
            DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
            DAQmxErrChk (DAQmxCreateCOPulseChanTime(taskHandle,chan,"",DAQ​mx_Val_Seconds,idle,initialdelay,lowtime,hightime)​);
            DAQmxErrChk (DAQmxRegisterDoneEvent(taskHandle,0,DoneCallback,​NULL));
            DAQmxErrChk (DAQmxStartTask(taskHandle));
    I have two questions. First of all, to create a pulse, does it mean we have low state for sometimes, then high state for some times and then low state again? So why there is only two time parameters (lowtime and hightime)? Is the minimum lowtime and hightime depending on the sampling rate of the card or depending on the OS? I am using 6711 card
    I see that I can specify initial delay, does it mean the time delay after the task just start?

  • Generate two different pulses or more continuous​ly with a PCI -6602

    I have a PCI-6602 and Labview 8.0. I need to create a complex wavefrom output  and I don't know how to create this waveform with the 6602, I know that I can create this pulse format by using the Agilent Pulse Generator  but I would like to use the National Instruments. If somebody has an idea about how many counters and the physical connections that I need, also about how can I use labview to generate a complex waveform output.
    I've attached the waveform that I need to generate continously and I hope that I can use the PCI-6602 for this purpose.
    Attachments:
    Pulse format.doc ‏24 KB

    This is a duplicate post, for the main post please see:
    NI Discussion Forums: How to generate two diferent pulses and re-trigger such pulses continously
    Regards,
    Dan King

  • Generate delayed pulse example VI for NI-TIO 6602

    Is there an example VI for generating a delayed pulse for the NI-TIO 6602?
    I found a VI for the NI-STC that has everything I need but it doesn’t work with the 6602 board.
    I would like to set the output pulse delay and  width using the counter’s source (number of pulses).
    Thanks
    Brian

    Thanks Tom
    That pointed me in the right direction.
    Brian

  • Generate 2 delayed triggers

    i' am working with a pxi6602 board on CVI6.0.
    i want to generate a delayed pulse (counter1) triggered on another one (counter0) user as a general trigger for my experiment.
    on previous devices, i used to wire the output of counter0 to the gate of counter1. but i want now to do that by software.
    i tried the CVI functions as:
    GPCTR_Set_Application (NI6602, ND_COUNTER_1, ND_SINGLE_TRIG_PULSE_GNR);
    GPCTR_Change_Parameter (NI6602, ND_COUNTER_1, ND_GATE, ND_COUNTER_0);
    but this doesn't work
    does anybody has an idea?

    You should be using:
    GPCTR_Change_Parameter(, ND_COUNTER_1, ND_GATE, ND_OTHER_GPCTR_OUTPUT);
    The possible inputs for the GPCTR_Change_Parameter method can be found in the Traditional NI-DAQ Function Reference help, which is installed with NI-DAQ.
    I hope this helps.

  • Generate a single pulse - long width ( 160sec)

    Hello,
    I have a DAQ Pad6052E. I want to generate a single pulse with one of the 2 counter/timer. It works for pulse width (high state) below ~160secondes. For my application I need to generate a much longer pulse width.  I want to have a pulse width >200 secondes.
    If somebody can give me some advices, that would be very appreciated.
    Thanks,

    In addition to JB's ideas, here's another one if your other counter isn't being used.
    Use the other counter to generate your own custom clock.  Let's suppose it's at 1000 Hz.  Then setup the counter you really care about to use the 1000 Hz clock signal as its timebase.  This will extend your duration capability by a factor of 100.
    Your duration limit is based on the ratio of count register size to timebase frequency.  Your board's counters max out at 2^24.  Your max duration is approximately (2^24 / timebase freq).  The lowest internal timebase is 100 kHz which is why you're limited to about 167 seconds.  With your custom 1 kHz clock, you'll get 100x that much.
    -Kevin P.

  • PCI 6025 analog trigger capabale?

    Hello
    Is the PCI 6025 capable of being triggered by an analog signal? I get this
    error while running the demo program
    error -10403 deviceSupportError The specified device does not support the
    requested action (the driver recognizes the device, but the action is
    inappropriate for the device).
    Thanks
    lvilla

    Thanks I found the example for CVI and is sure works. One moe thing, If the
    function times out the system becoms sluggish. Is there a way to increase
    this timeout value?
    Thanks
    LVilla
    "Filipe A." wrote in message
    news:[email protected]..
    > Ivilla;
    >
    > That device you have doesn't support such operation.
    > What you can do to workaround that fact is to configure the DAQ task
    > to do Conditional Retrieval. That is sort of an analog trigger, the
    > difference is that the NI-DAQ driver compares the input values to the
    > specified trigger level, as opose to the hardware, as it is on boards
    > that supports analog trigger.
    >
    > That would make the acquisition a little slower, since every point
    > needs
    to be checked by the driver. If you need faster acquisition than
    > that, you will need to purchase a board with analog trigger
    > capabilities.
    >
    > Hope this helps.
    > Filipe A.
    > Applications Engineer
    > National Instruments

  • Generate a delayed counter pulse

    I am posting this to see if anyone can shed any light on various DAQmx operations with counters.  I appear to have found a solution for the project but various counter operations are certainly not well documented and the notes I am posting may help anyone trying to do something similar.
    The project is to monitor an analog input channel and when a certain criterion is met generate a pulse with a specified width at a specified delay from the event.  It is being done in a LV Real Time system.  Initially I tried to start a counter task within a loop, wait until done and stop the task.  What I have found is that it takes a long time (of the order of 10-100's of ms) for the start task to return and the wait until done doesn't reliably return at the time the counter pulse is finished being generated.  Other people seem to have found the same problem.  This is described in the part 1 attachment and the attached vi.
    The other way to do it is with a retriggerable counter task and using a digital line on the same card to trigger the counter.  Then the way the counter works if there is a single pulse or multiple pulses is different.  The way low time and high time are interpreted is odd.    This is described in the part 2 attachment with screenshots from Scope captures.  I have a proposed solution but I'm not sure if it is the best way to do it.
    Any suggestions appreciated.
    Attachments:
    Generate delayed Counter Pulse problem part 2.doc ‏108 KB
    Generate delayed Counter Pulse Problem part 1.doc ‏25 KB
    Generate Counter Pulse.vi ‏153 KB

    Andrew,
    If you want to start a counter output task based on an analog input you should use an analog trigger (if your device supports analog triggering). Take a look at the example Cont Acq Sample-Timed Loop-Analog Start.vi (in the example finder - search for "trigger") for how to set up an analog trigger in DAQmx. Also, you can use the Start.Delay property in the DAQmx Trigger property node to specify an amount of time to wait after the Start Trigger is received before generating the first sample
    Michael P
    National Instruments

  • In Delayed Pulse Generation vi,Problem With THE PULSE WIDTH??

    In Delayed Pulse Generation vi, I want to input a very low number for the Pulse Width while using an external timebase source. But the minimum pulse width has to be 2. Does anyone know how can I solve this problem??

    Hey 45,
    Unfortunately, there is no way to generate a pulse width smaller than 2x your external timebase.
    There is an option to create a pulse of arbitrary width of your external source if you can afford some software processing in between. What you can do is use 1 counter to measure how many source edges of your card's internal timebase (80 MHz for TIO only, 20MHz or 100kHz for TIO and STC) your external signal is. This uses pulse width measurement as the counter application. Once you know how many source edges it takes to represent your pulse, then you can use triggered pulse generation and use the internal timebase with the pulse specs set to create the exact pulse width you want (and delay) and you can use your external pulse as the trigger. Th
    is works well if your pulse is always the same width and you can measure it before hand. As an example, let's say your pulse is 20 internal timebase pulses when measured. This means you can use the pulse specs to specify a pulse width of 0.75 your pulse width by using only 15 internal timebase edges for your pulse width.
    I don't know if I was clear above or not but if you give me your exact application you are looking to achieve, I might be able to help you out. Hope that helps.
    Ron

  • 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

Maybe you are looking for

  • My daughter has just changed her phone from an iphone to a nokia but when i send her a message it still comes up as an i message and she doesnt receive it?

    my daughter has changed her phone from an iphone to a nokia but kept the same number but when i send her a message from my iphone it still comes up as an i messsage and she doesnt receive it can anybody tell me how to fix this please

  • Pages not letting me email form share

    Hi can any one help me, I tried to email directly from pages but got no response, numbers still emails fine and i have never had this problem before. has any one any idears?

  • Prompts with date

    Hello, I need a help how to react for two various inputs in prompt. Here it is. (in Webi) I have two prompts for user that require enter number of month (Jan -> 1, Feb -> 2 u2026) and number of year. After that report shows results (revenues) for ent

  • Role of CCS consultant in upgradtion project ISU.

    Hi, Presently  iam working as SD functional consultant now i got the opportunity work in CCs upgrade project ISU . Please give me guidance what are the things  i should know for CCS upgrade. If you have any documentation please provide so that i can

  • Problems with timer (forms 6i)

    Hello everyone, I am having the following problem in a form has a timer that is checking for new records in a table, this form can not be closed because it has certain features, so when you need to navigate to another form there is an effect visual u