Trigger digital output at every 10 digital pulses

How can i generate an output pulse at every 10 input pulses comming from an encoder?
I need to trigger a sensor at every 10 encoder pulses to get data from the sensor.

Hello jyp777,
What you will need is a counter with an if statement that activates a digital output every 10 ticks. To do this, I would look at a LabVIEW example titled: Counter - Count Edges (Continuous Clock) that can be found under Help >> Find Examples... >> Hardware Input and Output >> DAQmx >> Counter Input in LabVIEW. Using this example VI, it should be a simple step to add a condition that triggers a digital output when the count reaches 10. 
You can also use a Digital Output example if you need help in this area. These examples can be found by going to :
Help >> Find Examples... >> Hardware Input and Output >> DAQmx >>Digital Output. I would recommend "Digital - Continuous Output.vi". 
Happy LabVIEW coding!
Thanks,
Collin D.
Applications Engineer
National Instruments

Similar Messages

  • Gen Digital Pulse Train Finite Retriggerable - Initial Delay is only for first trigger

    The DAQmx example Gen Digital Pulse Train Finite Retriggerable has an Initial Delay parameter. It appears (6602 and an E series card) that this Initial Delay only delays the pulse generation for the first trigger. Subsequent triggers show no delay. Is this the designed behavior ? Any way to get the Initial Delay to occur for all triggers ?
    Steve

    So, yes, you are seeing the appropriate behavior. However, it is possible to get a re-triggerable finite pulse train with an initial delay. What you have to do is set up a re-triggerable pulse, and have that pulse act as a pause trigger for a continuous pulse train. Let me explain further with an example.
    1) Set up counter 0 as a re-triggerable single pulse (Gen Dig Pulse-Retriggerable.vi). Set the low time = initial delay = X, and high time = Y. The re-triggerable pulse will be low for X, then high for Y after every trigger (it applies the initial delay to the first pulse, and the low time to every pulse after the first). The trigger source is your actual trigger.
    2) Set up counter 1 as a pause-triggered continuous pulse train (Gen Dig Pulse Train-Continuous-Pause Trigger.vi). This pulse train will be the frequency of the finite pulse train you want. The pause trigger source will be the output of counter 0.
    I have attached the VIs I used to accomplish this. There are three VIs, the two mentioned in 1) and 2) and another VI I used just to monitor the signals. These could be combined to a single VI if you would like. Hope this helps!
    -Alan A.
    Attachments:
    Retrig_Finite_Pulse_Delay.zip ‏135 KB

  • Trigger-digital pattern

    I would like to use "digital pattern" to control a/d acquisition. i.e. a start pulse on one line and a stop pulse on another. I am using a USB 6251. This menu item is grayed out. Does that mean SE does not support it or my USB device? Any work arounds?
    Thanks
    CHuck

    Hi Chuck,
    The USB 6251 and our other M series devices do not have the ability to trigger off a "digital pattern".  Digital Pattern triggering is supported by some of our Digital I/O boards such as the PCI 6533 / 6534.  Is there a reason you require two lines to start and stop the analog input acquisition?  Can you just use one line with on and off states (high and low)?  Also, is there an actual digital pattern you must recognize before turning "on" and "off" the analog input?  I don't know of any way without some external hardware to accomplish a hardware timed digital pattern trigger.  With more information on exactly what type of pattern you are trying to recognize there might be a workaround.  You could accomplish software timed digital pattern triggering by just reading in the digital lines and turning on and off the analog input in software.  However, if you're looking to use a hardware timed trigger to just turn your analog input on and off.  I would recommend looking at using a counter to generate a continuous pulse train to be used as the sample clock of your analog input.  This way you could use the "on" and "off" lines to toggle the gate or use one line to turn the gate on or off.  This would turn the sample clock on and off and allow you to control when samples are taken.  You would just need to set the source of your sample clock to be the output of the counter.  I would take a look at the Gen Dig Pulse Train-Continuous.vi example (Help » Find Examples » Hardware Input and Output » DAQmx » Generating Digital Pulses) and see if it will allow you the control over the sample clock that you require. 
    Regards,
    Paul C.

  • Digital pulse on DO line

    Hi, to output a digital pulse on one of the digital output lines instead of the counter, do i just select the particular line instead of the counter for the device?
    And if i'm only generating one pulse, and idle state is low, then does it matter what i choose as my low time?
    Finally, using the Digital output DAQmx, when I write high to a line, will that line stay high until the remainder of the program (or until i write it low)?
    Thanks.

    What type of DIO are you using? If using a standard DIO-96, you can use the Write to Digital Line function from the standard DIO functions. They are easier to use than DAQmx in this case. Just wire in the device number, channel number, line number, and True to output a high or False to output a low. Once a high is written to the line, it stays high until you write a low. The timing is up to you. You can write a high, wait some time, then write a low.
    - tbob
    Inventor of the WORM Global

  • Niscope for pxi5105, use a digital pulse signal to control analog signal sample

    i want to use ni-scope to drive pxi5105. And the PFI1 connect to a digital pulse signal(10KHz, 0-3.3V), to control a single channel analog signal continuous sample(Chan 0). I want a loop when the digital signal falling, the analog singal start to sample, and when the digtal signal rising, the analog singal stop. And by the low level of the digital singal, the analog singal sample (coupling by DC) can get an average and export to txt. I have tried the "start_and_reference_trigger.vi " and it did not work correctly. i need your help, thank you very much.
    Attachments:
    start and stop triggers for analog sample.vi ‏94 KB

    Hi Phil,
    The SCC carrier is only conditioning your signals (i.e. if your signals are not in optimal ranges, bandwidth or need external excitation). The actual counters and all digital lines are controlled directly by the M-series board. This means you will never be able to refer to a counter in the SCC module.
    If you route the signals of the M-Series board, is as if you had done so externally from the SCC. Look at this example and might give you more insight to how to implement it (This is software timing). The hardware timing would be doing correlation DIO. Here is an example that needs to be modified to adapt to your timing: http://zone.ni.com/devzone/cda/epd/p/id/4414
    Hope this helps,
    Yardov
    Gerardo O.
    RF Systems Engineering
    National Instruments
    Attachments:
    Finite Dig Output High.vi ‏31 KB

  • Generating digital pulses from the pci 6722

    I am trying to generate signals that will drive a piezoelectric motor. I need an analog signal that I will send to an amplifier and 6 digital pulses with varying offsets. I am using a pci 6722 and was hoping to get an offsets between the digital pulses to be around 2 microseconds. I am struggling  to find the best  way to get such exact time delays between multiple tasks. Any help  would  be greatly  appreciated.

    The actual offset times is not as important as the digital pulses firing sequentially and all within the envelope of the analog signal for multiple steps.  I guess my question is less about hardware limitations, and more about how execute my desired process in Labview. My experience in Labview is pretty rudimentary and I am struggling to see how to synchronize events in labview.  We are using a BNC 2110 to output our signals, and it is my understanding that the BNC 2110 has a 1 Mhz clock.  We are trying to import that clock from our device use that to clock timed loops and we are having some difficulties with the details.  I am honestly not sure if I am on the right track.  In hopes that it might add some clarity I attached a picture of the signals we are hoping to produce.  The orange signal is our analog output.  Between times t3 and t4 we need the 6 digital triggers to switch to "on" and we need them to all switch off simultaneously at t6.  Again we are definitely willing to compromise on speed if we can use the card we already have.
    Attachments:
    waveform.PNG ‏28 KB

  • How do I count digital pulses and convert them to an x-axis unit?

    I am a grad student in Chemistry and I have undertaken a project to switch an old spectroscopic instrument from a stepper motor chart recorder to a digital interface. 
    I am using Labview 7.1.
    I just measured the signals coming from the instrument, so I know exactly what I am working with.
    I have one constant, 100mV, digital pulse--which was used to drive the stepper motor a set # of wavenumbers for a given amount of pulse. I need to convert this signal to correlate with wavenumbers--on the x-axis of my final waveform graph.
     The other signal is an analog signal, up to 250 mV, which is coming from a photomultiplier tube and represents my y-axis of my final waveform graph.
    I am using the NI BNC-2110 DAQ board. 
    Should I design the program based from just the AI Aquire Waveform.vi? Add a Count Events or Time vi. for the digital pulse?
    Could anyone give me some hints with my initial setup/layout? 

    Hints:
    Figure out what is the modle number of your DAQ device. I think the model you cited is just a break-out box.
    Depending on your hardware you may be able to use the step pulses to clock your A/D conversions.
    The number of sample will be the number of steps so all you need is a conversion factor to convert sample count totoal to wavelength.
    Others may offer better ideas so stand by.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Converting sequence of anlaog pulses into digital pulses

    Hello,
    I am working to detect the peaks in a particular interval of time say 'x'. I acquired the analog signals( the pulses) as shown in the image here AcquiredPulse from analog board using DAQ.Before detecting the peaks of the pulses of different amplitudes having nearly same time period shown in the above image I want to convert them into digital pulses or pulses of same amplitude so that it will be easy for the post process of detecting peaks.And after obtaining this I need to find out the time interval between the pulses.
    Can any one help me with implementation of this.
    Solved!
    Go to Solution.

    By this Vi you can convert the waveform
    Vara Prasad A
    Kudos are Accepted
    Attachments:
    analog to digital.vi ‏14 KB

  • How to send/recei​ve digital pulses through parallel port?

    Hi, im working on a project to send/receive digital pulses through parallel connection. I need to control the frequency of the pulse sent as my device communicates through negative triggering of the digital pulse. How to use LabVIEW send and capture these waveforms?

    Here's a good place to start:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/72​C6FC6CE4AD4D1386256B1800794596?opendocument
    2006 Ultimate LabVIEW G-eek.

  • What it the valid trigger delay value for "niScope Configure Trigger Digital.vi" ?

    Hello:
    I am using "niScope Configure Trigger Digital.vi" in LabView 5.1.1 for NI5911 scope card.
    The trigger source is RFI1.
    I am trying to specify the trigger delay, but it looks like the only accpted value is 0.0s.
    For example: setting delay time to 1ms (1.0m) results in the error message stating that invalid value had been passed for trigger delay.
    Thank you.
    --daevper

    The NI 5911 high speed digitizer does not support trigger delay; therefore its only valid input parameter for trigger delay is zero. The two high speed digitizers which do support trigger delay are the NI 5112 and the NI 5122.
    There is a helpful listing in the NI High-Speed Digitizers Help which displays the features supported by each device (Start >> All Programs >> National Instruments >> NI-Scope >> Documentation >> NI High-Speed Digitizers Help >> Content tab >> Devices >> Features Supported by Device). If you did not install the documentation along with the driver, you can also download this support file here.
    I hop
    e this helps!
    Regards,
    Sonya Wornson
    Applications Engineer
    National Instruments

  • How to count digital pulses?

    I am using usb-6501 to read in 12 distinct digital pulses and want to know how to count the pulses. The 6501 has only one counter channel so I am looking for a software/labview program option to count pulses for each channel individually. 

    Do you need to know when they change or just how many times they changed? Also how fast are they changing?
    Mike ...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Email Output type : No Automatic trigger of output type while saving doc.

    Hi Gurus - To trigger an email from the output type, I've configured a output type with medium as 5(external send) with communication strategy and created condition records with medium as 5 to trigger immediately.
    While creating corresponding document, the output is not automatically determined, it required to manually feed the output type every time. Can you please provide if any settings were missed to trigger immediately!!
    In Output analysis showing a message as "No print data determined for the communication strategy"
    Steps:
    1. Configured the output type with Medium as"5" and associated partner functions.
    2. Created the condition records with medium as 5 and trigger immediately.
    Thanks,
    Sree

    Hi ,
    while maintaining condition record for output type when you click on communication method, give logical destination as 'LP01'.Hope this will solve.PLease let me know if you have any issues on this.
    Thanks and regrads,
    Rajeshwar

  • Trigger a Output as Spool on Delivery Deletion via Vl02n

    Dear All,
    My requirement is that when I delete a delivery in VL02n , a spool should be generated . I have a SAP SCRIPT which can be triggered via a Z output type .
    How do we link to trigger this output type on delivery deletion?
    Thanks
    Disha

    Hi Disha,
    If you want to create a spool for one delivery, you can do it manually.
    But if you want to convert every output trigger into spool, you have to use the function module to convert the script data into spool.
    You can use the FM CONVERT_OTF to convert the OTF format into spool.
    Once this is done the otuput will be saved in spool with a spool number
    You can convert this spool into PDF using the program RSTXPDFT4 and save it in a place in a directory.

  • How can I *trigger* a modification to every photo in my library?

    I'm struggling with the same thing that many folks aon here are struggling with: how to clean out originals in iPhoto 6. I've thought about exporting the entire library, deleting the contents of the orginals and the modified folders, and then reimporting them. The obvious problems with that (I think) are that I'll lose the images' relatioin to the albums and keywords, rolls, etc. So, I want to do it in a way that will preserve all of my albums, ratings, keywords, etc.
    One idea: if I could trigger a "modify" on every image in the library, I could then simply delete the orginals folder knowing that I wouldn't be missing any images. And I would keep all the keyword and album relationships. How to do this? I've tried using batch change to add comments, used rotate, etc. and I can't find anything that will cause the 'modify' trigger.
    Any ideas? I know this is a crazy work around but I'm at wits (and hard drive's space) end.
    Thanks,
    Frank

    Toad,
    I really appreciate the quick and thorough reply. I am using an external FW drive (partioned for a clone backup of my PB and a section for incremental backups of all user files). The tutorial you referenced is pretty much the type of setup I was shooting for: i.e., low res files on the PB and the original/RAW and other hi res on the the FW drive for backup or hi-res needs. BUT...it seems the workaround would cause me to lose the existing album and keyword data for the files and maybe the shoot dates (is that right?). That's a bummer b/c that info is the main reason I'm still trying to do the workaround with iPhoto at all. I'm doing my editing in Photoshop and Lightroom anyway. Also, I need to download images from the camera and edit them in something when I'm away from my FW drive, so I don't want to be anchored to that.
    I could do something like what you describe, but I think the fundamental problem for me is that the iPhoto file handling structure is a deal breaker.
    My plan right now is to stop using iPhoto, for the most part. I may use it only as an album type repository. I'm thinking that as a first step I'll do some sort of down and dirty export type transition to reduce the file sizes of everything in iPhoto and then bring them back into the albums etc. Then I'll clean out all the originals and change my workflow.
    I'm thinking that I'll set up a typical file structure for working with original and modified images (using the FW drive for backup). I would import only the final modified, lower res versions into iPhoto -- for as long as that makes sense feature-wise etc. (I like iPhoto's export plug-ins for example.). That will leave me with versions on the PB that are suitable for, say, 5x7 prints but only one copy of each (I've got 5 copies of the same file in different places in iPhoto now--it's crazy).
    That will give me enough of a redundancy with the FW drive having the full res versions of both originals and modified, while the PB will have good enough versions that I won't be upset if the FW drive goes down, but the space used will be a fraction of current and I'll have good flexibility going forward.
    Anyway, sorry to be so long winded. I'm still thinking through how to do the transition -- as you might have guessed -- but I think that's the direction I need to go. I really want to get out from under the iPhoto file structure.
    I appreciate any insights or words of wisdom (or caution) you might have on that.
    And thanks again for the very quick reply.
    Frank

  • I am required to trigger billing output to at item level (normally SAP

    I am required to trigger billing output at item level  which means one billing document sends more than one billing output for each line item (normally SAP does it at header level ).How do I go about this? Is there any user exit I can manipulate to trigger RSNAST00---->I found an exit in RVCOMFZZ- USEREXIT_KOMKBV3_FILL ..this subroutine is called before printing>...
    I have not much clue how to go about this ?
    Any Help on this would be highly appreciated.
    Thanks
    Shankar.

    Hi Shankar,
    how about an own output program? That can be triggered on header level, but can create outputs on item level.
    Otherwise: looks difficult to get line level trigger, if SAP hasn't it up to now.
    Regards,
    Christian

Maybe you are looking for