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.

Similar Messages

  • Generate delayed triggered pulse. Already have used both counters.

    I need to generate sequence of 3 pulses. Each one is triggered with previuos one and has certain width. I have successfully used 2 counters on my 6713 card and I am wondering if there is any way to generate the third pulse. I thought if there was anything useful of another output signals such as GPCTR_SOURCE and GPCTR_GATE. For GPCTR_OUT I have used NI Visual Basic examples with components which work well. But I could not figure out how to program GPCTR_SOURCE and GPCTR_GATE or PFI signals with Visual Basic. I could use either components or DAQ functions but I could not find example.

    Greetings,
    Unfortunately, the other GPCTR lines (source and gate), when used in a counter context, are for input only. You may want to consider adding a counter (NI-TIO) board to your system:
    PCI-6601
    PCI-6602
    Good luck with your application.
    Spencer S.

  • Delay triggering of Output type

    I have a requirement, wherein when I do a PGI in VL02N, 2 Output Types Z1 and Z2 are triggered.
    Z1 will generate the Billing Doc and Z2 will print a form with all the details inlcuding Billing Doc Number.
    However, Z1 takes time (abt 30 sec) to generate Billing Document, and Z2 generates the spool simultaneously but does not display Billing Document in the form, as Z1 has not yet completed.
    Is there any way, we can delay Z2 or trigger Z2 only after Z1 is completed.
    Note : We don't want to use batch job.
    Am new to output types, so kindly explain in detail the steps for solution.
    Thanks
    Vivek

    Hi,
    We have worked on a similar requirement. In our case we triggered the output Z2 at the time of billing. So configure Z1 during PGI in delivery and Z2 in billing. We adopted the method, you are having currently, initially. But in case of error during billing creation it was very difficult to handle the errors. The delay of 30 sec. could increase if you have huge load.
    I would suggest it is logical to print only after the billing document is created so you can look at this option if you like.
    Cheers,

  • Generating compound triggers on Oracle Database 11gR2

    Hello SDDM users.
    Does anybody have an idea how to coerce SQL Developer Data Modeler to produce Compound triggers on tables when generating DDL?
    I saw there was a similar question from 2011 on this forum.  Has the enhancement request been honoured yet?
    Thanks for any info
    regards
    Wouter

    Hi Mike,
    Thanks for your response.
    I do, however, strongly disagree with you.
    Database triggers are very helpful in enforcing a system / enterprise wide consistency of the data in the datamodel.
    Triggers make it possible to create data intergrity checks that are enforced for every client touching the data.
    If you use procedures to do that,  you will need to place them at every possible entrance to your data.
    You can bet I will be using triggers for years to come.
    (And I will explain it to new-to-my-company developers within minutes,.... and they will like it too :-) )
    thanks again for your effort to response.
    regards Wouter

  • 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

  • How to use multiple counters in the 6602 to measure cycle length, calculate delay and generate triggered pulse.

    Hi,
    I need to measure the cycle length of a pulse, calculate a delay based on this value, and then generate a triggered pulse with that delay value. The input and output pulses will be continuous. The best case would be to use the cycle length from one pulse in the calculated delay for the next pulse. One of my biggest problems has been getting the calculated delay value into the pulse specs.vi for the triggered output.
    This output pulse will be used to trigger an IMAQ video acquisition; therefore, the solution to this problem will be part of a larger video acquisition application. This has posed a problem, in that accessing the counters has interfe
    red with the triggered video acquisition.
    Any suggestion will be welcome.
    Thanks
    Dave

    Filipe,
    The overhead is the problem I'm trying to get around.
    Specifically, what I need to do is to generate an output pulse after a trigger pulse, which is a given percentage of the cycle length. The input pulse is from heart rate, so it will have some variance, and the output pulse will be at a stationary point in the cardiac cycle. For example, for an input pulse of 2 Hz (500 ms) the user would likely request the output pulse be delayed by 75%. Therefore, the generated pulse will have a 375ms delay after the trigger.
    In the past I have had hardware built to do this, but I am hoping I can accomplish the same thing with multiple counters on the 6602. I have been able to accomplish this with 3 counters (2 to measure period and 1 for output
    ) but the overhead prevents adequate triggering of the IMAQ video acquisition. I am hoping another method would solve this problem.
    Thanks
    Dave

  • 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

  • How to generate a pulse train with different pulse width and delay?

    How to generate a triggered pulse train with different pulse width. for example, after each trigger signal, let's say 2 ms, then the counter output a pulse with pulsewidth of 1 ms, and then after 3 ms delay after the first pulse, the second pulse was generated with a pulse width of 4 ms.  Next cycle when the trigger signal comes, the same two pulses will be generated and so on. Is it possible to achieve this by using 6601 counter card? and if yes, how to achieve this? Thanks!

    Unfortunately you can not create a hardware timed pulse train with different widths on each pulse from a counter. Whilst it can be changed on the fly using software, since you require a hardware triggered signal getting the software involved will not give a huge amount of accuracy when the pulse will actually change.
    So in short you can't use your 6601 card (or a counter timer) to achieve this
    There are three possible Alternative solutions
    1 You could use a high speed digital IO device such as the (6533/34) to generate your variable signal which would require setting up the pulse train as a series of states based around the burst transmission mode where the clock would give you your specific timing.
    2 A timed analogy output (for example on a MIO card with a clock (PCI-6220 / 62xx), i.e. Not the 6704 style static analogy output cards)
    3 A high speed digital waveform card such as the (, 656x , 655x, 654x, 6534, 6533 (http://www.ni.com/modularinstruments/find_right.ht​m) ) this could then be scripted to work with your triggering and also there is a digital waveform editor which will enable you to set up the pattern you wish to generate (http://sine.ni.com/nips/cds/view/p/lang/en/nid/135​55) 
    Hope that helps
    Tim Matthews
    NI (UK)

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

  • DAQCard 1200: How can I send two TTL singals on separate channels with adjustable delay shortly after (typically a few milliseconds) external triggering?

    Hi, this is probably a simple question, but I have never used the digital and timing part of any DAQboard before... I wish to use an old Power Macintosh 7200 with a DAQCard 1200 for timing and synchronizing external events . The scenario is as follows; an external device (in my case; a CCD camera) sends a trigger signal (TTL, 600 ns). I want this signal to trigger the DAQCard, whereafter I want the DAQCard to send two TTL pulses (20 microsecond duration) from two separate channels (one pulse from each channel). The first pulse must be sent within a few milliseconds after the trigger is recieved. Th
    en I wish to be able to control the delay from the first pulse is sent and to the second pulse. This delay should preferably be adjustable from a few microseconds and up to at least 20 milliseconds. How can I achieve that kind of operation? (I need a few tips to get started.. like for instance: should I connect the external trigger signal to the EXTTRIG pin or to the gate pin of one of the counters? Do I have to interconnect the counters in some way? Do I have to invert the OUT signals? etc..)Thanks for your help in advance.
    regards,
    Michal

    I have not personally used the DAQCard 1200, but if it is similar to the E-series devices, you route the trigger signal to the gates of both counters.
    In your code, use the Data Acquisition->Counter->Generate Delayed Pulse VI twice, once for each counter. You can then set an input on that VI to select to trigger on the gate, and set the delay and pulse width of the pulse. Since both will start from the same trigger, you can delay either pulse as long as you wish, from microsecond to seconds, making the second pulse follow the first.
    Mark

  • Is there any way to force a PXI6115 to generate AI Start Trig on PFI0 but not actually trigger on it?

    I am using a PXI chassis with 10 6115's and a 6608 counter/timer. I need to use analog triggering on one of the 6115 AI channels. The particular channel will depend on the test setup, so I can't just pick one and hard-wire it. This analog trigger will be the master timing reference for all of the boards.
    However, I need to trigger the 6115's at different times (e.g., trigger three at the same time and seven at some later time) so I'm routing the AI Start Trigger from whichever is the trigger channel (one of the first 16 channels) to RTSI0. The first five counters are then GATEd on RTSI0 and the counter OUTs are hardwired to the 6115's PFI0s in groups of two. So,
    basically, one of the 6115s sends AI Start Trigger to the five counters which, in turn, generate five delayed triggers that are sent to the 10 6115's.
    My problem is that I can't use a zero delay on the counter, so I can't get the 6115s to trigger at the same time, if need be. Whichever one generats the analog trigger will always be slightly ahead of all of the others that I would like to trigger at the same time.
    So my question is this: can I somehow force one of the 6115's to generate the AI Start Trigger across RTSI0 but not actually trigger itself until it gets the trigger back from the counter/timer? This way, the delay will still be there but all of the boards can get a simulataneous trigger if need be.
    Thanks,
    RGA

    RGA,
    Unfortunately, I do not believe that it is possible for a DAQ board to generate an AI Start Trigger from an analog trigger, but not be triggered itself until it receives a digital trigger.
    Spencer S.

  • Timing of first CNTR output toggle does not match specified pulse delay

    Hi there,
    I'm using a counter on the NI-6014 in the "pulse train generation" mode to toggle its output after a predefined number of externally generated TTL triggers (using LabVIEW 7.0). Generally, this works fine. However, the first toggle consistently occurs 1 pulse too early. Although I set the "delay (edges)" parameter of the "pulse specs" to 15, the first CNTR output switch occurs after 14 external TTL pulses.
    Any suggestions?
    Thanks in advance,
    Joel

    Hello Joel,
    I have tried to reproduce your problem on two other DAQ boards (I do not have a NI 6014 available bu t I used similar boards, the 6024E and MIO-16XE-10) but was not able to reproduce it. I used the attached example and connected a TTL signal to the Source input of the counter and monitored the output. I generated 15 pulses on the source and the ouput toggled exact after 15 pulses on both boards. Can you take a look at the attached VI to see if this is the same thing you are doing and otherwise test it to see if this one works for you also?
    Best Regards,
    RikP
    Application Engineering
    National Instruments
    Rik Prins, CLD
    Applications Engineering Specialist Northern Europe, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense
    Attachments:
    Generate_Pulse_Train_(DAQ-STC).vi ‏107 KB

  • Delayed Start with PCIe-6535B

    Hi 
    I need to delay the digital generation (around 10ms) after the trigger comes up on PCIe-6535B.
    This board does not have teh Start Delay feature and it does not have any counter to use for generating the delayed trigger. 
    Is there a good way to generate a 10ms delay on these boards apart from wrinting tousands of 0s in the buffer?
    thank you

    Hey,
    Since your board does not support the Start delay property node and there also no counters for generating the delayed triggers, writing 0s in the buffer is actually the easiest way to do this. If you really want to avoid doing this there is a possible workaround:
    Use your trigger to start generating a signal: for ex. A Boolean Array with False values and a True at the end (the number of false values will determine the delay). This Digital Output will work as a trigger for your actual digital generation (in this case for ex. Start Digital Edge Rising).
    Please let me know if this was helpful for you. 
    Kind regards,
    Andreea

  • URGENT NEED HELP : JOURNALING TABLES AND TRIGGERS GENERATION

    Hi
    I need generate journaling tables for any tables to audit the update, delete statements executed for the users. I captured an existant schema, then and I change the derfiniton of the target tables, setting the value of Journaling to "Server".
    But, when I generate the DDL statements, the triggers of the journaling tables don't appears in the sql file.
    ¿What is the error?
    I thing that Designer generates the triggers and the journal tables, ¿It's true?
    Thanks in advance.
    Xavi

    You have to use the "Generate Table API" menu option. This will generate the "journalling" triggers.
    HTH
    Roel

  • Work Flow - Triggering Event through Webdynpro

    Hi,
              I am new to Workflow. I have generated the Workflow related to claim (Objects as ABAP Class). Now I have generated Webdynpro component and through this I need to execute the Workflow. I have used the FM SAP_WAPI_START_WORKFLOW & SAP_WAPI_CREATE_EVENT. To raise the event 'cl_swf_evt_event=>raise'. I have used. But this is not triggering event. So, Any one can help me on this issue.
    In workflow using ABAP CLASS is essential or Business object.
    In my case I have used only ABAP CLASS. In workflow I have generated the Triggering event as SAVE. In webdynpro I have generated the code in 'ONACTIONSAVE'. When ever the user clicks SAVE' button. Workflow shouild trigger and approver should receive the mail as notification and he/she will approve/reject the claim.
    Thanks & Regards
    Kannappan

    After SAP_WAPI_START_WORKFLOW do you have COMMIT WORK?
    Does the SAP_WAPI_START_WORKFLOW return some error message?
    Are you sure that the event is not triggered? Check this with event monitor SWEL (turn monitor on in SWELS).
    Also, ready Jocelyn Dart's blogs about ABAP OO. She have clear instructions about how to trigger ABAP OO events.
    Regards,
    Karri

Maybe you are looking for