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.

Similar Messages

  • Single pulse output on USB-6212 PFI

    I am trying to generate a single pulse output on one of the PFI I/O lines on a USB-6212.
    How do I go about creating the task?  The pulse witdh is 100ms.
    Also, how do I trigger from one I/O line to start another I/O pulse?

    Hello johnswan,
    The first thing you need to do is make sure that you have the NI-DAQmx driver installed.  This should've came with your device, but if not you can download it from ni.com/updates.  After the driver is installed it will add examples for LabWindows CVI.  In LabWindows CVI you can go to Help » Find Examples to open the NI Example Finder and then navigate to Hardware Input and Output » DAQmx » Generating Digital Pulses.  There is a DigPulse.prj which will show you how to create a digital pulse with a specific pulse width.  There is also a project called DigPulseTrain-Cont-DigStart.prj that you can look at to see how to implement a digital start trigger.  Take a look at these and let me know if you have any additional questions.
    Regards,

  • Single Pulse

    I'm trying to generate a single pulse (preferably delayed) that is triggered
    by a simple switch or (preferably)keystroke. The width of the pulse needs
    to be 1ms. Is there a way to generate just one pulse of such small width?
    I'm using an E-series board, and wish to send the pulse out of one of the
    DAC pins. Any suggestions?

    I am pretty sure you can, but that depends on a particular E-series board
    you have.
    Check the spec sheets and see what the update rate for the DAC is, also look
    at the settling time.
    In general in about 30min with a scope you should be able to determine the
    answer even if you do not know the specs, which are on the NI website.
    Reinis Kanders
    "Vladislav Zilberman" wrote in message
    news:[email protected]..
    >
    > I'm trying to generate a single pulse (preferably delayed) that is
    triggered
    > by a simple switch or (preferably)keystroke. The width of the pulse needs
    > to be 1ms. Is there a way to generate just one pulse of such small width?
    > I'm using an E-series board, and wish to send the pulse out of one of the
    > DAC pins. Any suggestions?
    -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
    http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
    -----== Over 80,000 Newsgroups - 16 Different Servers! =-----

  • Single pulse to radiate with PXI

    Good day to all, how can I generate one single pulse on Labview to later radiate it on PXI withouth using any DAQ command , because there are some samples that do so, I would like the diration of the pulse to be in the us or less

    Hi Frank12244,
    What PXI module is generating the signal? The PXIe-5601, is a RF Downconverter used with our PXIe-5663/5663E Vector Signal Analyzer (VSA). The VSA is used for acquiring not generating. Do you have a RF Signal Generator in your PXI chassis? If you’re looking for the drivers for communicating with your PXI modules, go to ni.com/drivers and download the driver for the device. The drivers also come with LabVIEW examples, which you can access through the NI Example Finder.  
    Tunde S.
    Applications Engineer
    National Instruments

  • Single pulse logical

    How can i generate a single pulse signal logical (example of 100 mS) each turned that activate an logical permanent entrance?
    LabVIEW 5.1 - No hardware request.
    Thank you.

    I am not quite sure what you are asking. I have attached a VI that will pulse a signal high.
    Jeremy
    Attachments:
    LV_5.1_pulse_led.vi ‏22 KB

  • Triggered single pulse width measurement

    I am trying to measure the width of a single pulse, but would like to use the pulse itself as the trigger for a counter input pulse width read using a PXI-6608.  I would like to do this since the pulse can come at any time (much longer than any practical timeout)  and I would like to avoid having to place a DAQmx read in a while loop waiting for the pulse to appear.  Also, while the pulse is high, I would like to produce front panel feedback (light a boolean indicator).  I seem to be able to achieve that by using a digital input line, but again requires a DAQmx read in a while loop.  I haven't had much experience with triggers and my attempts so far appear to seem like triggers are not compatible with counter input pulse width measurement.  Is it possible to set up a trigger for a pulse width measurement?

    Hello kayotik,
    I think the best thing to do here is to use separate while loops. You can put most of your code in a main while loop, and then put your DAQmx read in a separate while loop. Both loops can run in parallel (just don't wire any outputs of one while loop to the other while loop, because then one will become dependant on the other). In order to pass data between the two loops, you will need to use a local variable. The DAQmx read can write to a local variable, and the main loop can read from that local variable. 
    You will also need to stop both loops with a single stop button. This article shows how (and also demonstrates the use of local variables to pass data between independent while loops):
    http://digital.ni.com/public.nsf/allkb/267704CDE91156D186256F6D00711AAE
    Colden

  • How to generate an analog biphasic single pulse

    Hi Everyone,
    I am a newbie to LV. I have been just using it for the last 3 weeks for my summer research project in which I am working with a professor on artificial neural networks. For the past week, I have been asigned to code a program in LV that will act as an interface between the user and the MEA via a STIMULATOR BOARD. I have successfully done the binary addressing part of the deal, but am stuck where I have to have a user-interface that will allow a user to generate an analog (AO) output of a single biphasic pulse to stimulate the neural network.
    The user has to have a choice of the pulse width (aka the duration), and the volt (aka height) of the pulse. Also he/she should be able to produce either a mono or biphasic simple SINGLE pulse (not a continuous pulse). I have been digging in examples but my efforts have not gotten me anywhere useful.
    Therefore, to all the LV experts...can anyone help me out with a VI that produces a SINGLE BIPHASIC PULSE for a finite time?
    Any pertinent help will be appreciated.
    Thanks,
    UE

    Ok.Here is the solution to ur problem.
     What u should use is the SQUARE WAVEFORM.VI, where user can specify the peak to peak value,offset & phase as well.
    Now inorder to generate the single square wave,its very simple.Under sampling inforamtion specify the Fs as 100 times the required frequenct Fout & no. of samples #s as 100(i.e.Fs/Fout). This will result in only one square wave.
    Then while writing on to your DAQ card select mode as "FINITE SAMPLE" mode.ith no of sample may be1.
    Let me give u a simple example. Suppose u want to generate the one square wave of 10Hz with +ve magnitude 5V& -ve to be 3V.
    The
    1.Peak to peak is (5+3) = 8.
    2. Offset is (5-3)=2.
    3.Phase is 0 or 180 depending on +ve or -ve pulse o/p first respectively.
    4.Frequency is 10.
    5.Fs is 1000 & #s is 100.
    6.Select the sample mode in "DAQMX timing.vi" as finite mode & no. sample per channel as 1.
    Also disable the REGENERATION PROPERTY od DAQ & try. It should help.

  • How to generate a single output pulse on 64 different digital out lines (PCI-6513) each with a different start time relative to an event in a main program loop.

    Long question.
    I am running a main program loop of 60 msec. At one point in the loop I create a 64 element array of delay times. At that point I need to begin outputting a predefined single pulse to each of the 64 lines on my PCI-6513. Each line outputs the pulse with a starting delay set by the "delay time" in the array.
    Each delay time is such that the pulses will be done before the next loop commands another one.
    Thank You
    Roger

    Hi,
    You have multiple ways of doing this, since there is no timing engine on the 6513 your code is going to control the output of the card, which is what we called “software timed”.  If you take a look at the example called: “Write Dig Chan.vi”, you can individually control each line.
    So to change the state of the line; since you have an array of delays time you can aid yourself with “stacked sequence structure” where in each frame you control the time it takes to go to the next frame and the data been written to the card.
    Another option is using a state machine where each state write the data you want and you can also control the time between states. For further references take a look at this article Application Design Patterns: State Machines.
    I hope it helps
    Jaime Hoffiz
    National Instruments
    Product Expert
    Digital Multimeters and LCR Meters

  • How to generate very fast pulses (single puls)

    Hi,
    I have a problem with generating fast pulses in LabView (2009 / 9.0, Win7-64enterprise).
    I try to explain my project:
    I have a femtosecond laser which sends pulses with a frequency of 200kHz. It mean 100fs puls 4.9999us low...100fs pulse.....
    The laser have a gate which switches the laser output on and off (optic crystal --> very fast)
    My task is to make it possible to send one single pulse out of the laser. You should have some user interface with LabView and enter
    the amount of pulses (one, two... or more) and a big "fire" button.So we can make tests with a fixed amount of pulses.
    I am very new to LabView and really dont know how to generate very short pulses. I try with a NI-USB6008 card and was possible to do some time loops
    to generate something close to 100Hz. Now I have NI PCIx-6351 card. and want to try to generate pulses of 1us. How to do??? I dont see any posibility to go below 1ms.
    Later on I want to try some syncronisation with the laser. I want to catch one pulse and sync to the next pulse.
    Anyone able to help me with this task ?
    btw: sorry for my clamsy english...
    bjoern

    bjoern,
    OK.  A gate window should be something which can be accomplished.
    The USB-6008 only uses software timing so fast pulses are not possible with that device.
    I am not familiar with the PCIx-6351 and can find no reference to it on the NI website so I do not know what its capabilities are.  Many of the NI cards with digital I/O and counters can generate pulses or pulse trains in the timing range you want.  If you have the NI DAQ drivers, look for examples of pulse generation.
    Lynn

  • Measure a single pulse width using usb 5133

    hi im trying to measure the width of a single pulseoutpout from NI SCOPE express
    however pulse measurements.vi seems to expect more than a single pulse.
    any ideas?
    ta

    Hi Slugger,
    Can you first try this with the SCOPE Soft Front Panel (SFP) located in Start >> Programs >> National Instruments >> NI-SCOPE >> NI-SCOPE Soft Front Panel.
    This should give you the screen below:
    Please set the items as seen in the red boxes. Make sure your trigger channel is correct Mode is set to SGL and press the measure button.
    This will give you a Scope measurement screen. Please press the Add button. Select the correct Channel and then in the measurement type choose "Period".
    On the main SFP window press the run button. Does the measurement give you the reading you expect?
    I do not have a Scope card to test this yet, so I have been using a simulated device.
    Regards
    JamesC
    NIUK and Ireland
    It only takes a second to rate an answer

  • Single pulse width measurement

    Hello,
    I am trying to measure the time of a single pulse using ctr0 on a PXIe-6361.
    The input signal seen in attachment Capture7.jpg, is going to PFI 9, the gate of ctr0.
    The problem is that the counter see' s the rising edge and stops. The pulse width is not given as can be seen in the output (Capture8.jpg).
    I get the same results using Meas_Pulse_Width.vi example.
    Is something wrong with my PXIe-6361?
    Solved!
    Go to Solution.
    Attachments:
    Capture7.JPG ‏107 KB
    Capture8.JPG ‏145 KB
    Striker velocity blk_dia.JPG ‏35 KB

    Hi,
    I did pretty much the same and ran the example as well and they do work. You can try to explicitly specify the PFI line using a DAQmx Channel Property Node with a Counter Input Pulse Time Terminal property to verify if the problem is only with PFI 9 (if you use the property, you can use any PFI line even if is not the default gate for the specified counter), and even try with the other counters.
    The VI is on the 2014 version, so I included a screenshot in case you have a previous one. If you need the VI in a specific version let me know and I'll downconvert it for you.
    Camilo V.
    Applications Engineer
    National Instruments
    www.ni.com/support
    Attachments:
    Counter - Read Pulse Time (On Demand).vi ‏39 KB
    Screenshot.jpg ‏208 KB

  • DAQmx Counter Input Measure a single pulse's pulse width

    Trying to measure a single pulse's pulse width. It appears that the DAQ only makes the measurement on the read command instead of after starting the task. I just get a timeout error. Is there any way to arm to counter for measurement or am I better off making a seperate thread to trigger my single pulse?
    double measured;
    int numSamp;
    TaskHandle taskHandle;
    DAQmxCreateTask("", &taskHandle);
    DAQmxCreateCIPulseWidthChan(taskHandle, "Dev1/ctr0", "", 0.025, 0.120, DAQmx_Val_Seconds, DAQmx_Val_Rising, "");
    DAQmxSetChanAttribute(taskHandle, "", DAQmx_CI_PulseWidth_Term, "/Dev1/PFI10");
    DAQmxStartTask(taskHandle);
    //Trigger the single pulse here
    DAQmxReadCounterF64(taskHandle, DAQmx_Val_Auto, 10.0, &measured, 1, &numSamp, NULL);
    Thanks,
    Dan

    Which device are you using?
    If you configure implicit timing (DAQmxCfgImplicitTiming) your measurements will be buffered and will begin when the task is started.  The minimum buffer size is usually (always?) 2 samples, but that doesn't mean you have to read two samples back.  
    Best Regards,
    John Passiak

  • I want to measure the width of a single pulse on a line.

    Hi
    I want to measure the pulse width of a single pulse on a single line. the pulse width may be very low like micro seconds. Any answer plz ! kindly write soon....its urgent. I m ussing a 'Measure Pulse widh or Period VI' for this but his is not working for single pulse.
    Regards
    GNS

    You might try using the "Measure Pulse (DAQ-STC).vi" example located in
    ./Program Files/National Instruments/LabVIEW/examples/daq/counter/daq-stc.llb/*.
    Or if you're using a TIO board, try using the "Measure Pulse (NI-TIO).vi" example located in
    ./Program Files/National Instruments/LabVIEW/examples/daq/counter/ni-tio.llb/*.
    gus....

  • Generate single pulse with DAQ card

    Hi
    I was trying to use a VI found on the NI site "generate single
    pulse "DAQ-STC" but another VI is requested in order to run;
    that's "set pulse specs.vi". Someone knows where to find it?
    thanks for all
    bye
    -Claudio
    Claudio Vinegoni
    URL: http://www.gapoptique.unige.ch/members/vinegoni/default.htm
    GAP-Optique Phone: +41 (0)22 7026158 (lab)
    University of Geneva : +41 (0)22 7026082 (office)
    Fax: +41 (0)22 7810980
    20, Rue de l'Ecole de Medecine Email: [email protected]
    CH-1211 Geneva
    SWITZERLAND
    Sent via Deja.com
    http://www.deja.com/

    As of NI-DAQ 6.9, you could find the Set Pulse Specs.vi in LabVIEW/vi.lib/daq/zadvctr.llb.
    Erin
    Claudio Vinegoni wrote:
    >>>Hi>I was trying to use a VI found on the NI site "generate single>pulse
    "DAQ-STC" but another VI is requested in order to run;>that's "set pulse
    specs.vi". Someone knows where to find it?>thanks for all>bye>
    -Claudio>-->************************************************************************>Claudio
    Vinegoni>>URL: http://www.gapoptique.unige.ch/members/vinegoni/default.htm>>GAP-Optique
    Phone: +41 (0)22 7026158 (lab)>University of Geneva
    : +41 (0)22 7026082 (office)> Fax: +41 (0)22 7810980>20,
    Rue de l'Ecole de Medecine Email: [email protected]>CH-1211 Geneva>
    SWITZERLAND>>****************>>>Sent
    via Deja.com>http://www.deja.com/

  • HP/Agilent 33120A Single Pulse Using Burst

    Hello,
    I am trying to trigger an on demand pulse from an HP 33120A function generator.
    The pulse has to be a single, 0-5V ramp with adjustable frequency/period. I was able to get as much from the FG by using Burst and manually triggering off the front panel. Now I would like to get the same functionality from a LabVIEW VI.
    While there is a driver for the device, the burst function is, unfortunately, not applicable to the model I am using. I found a similar issue on the forums and followed the SCPI code provided in the answer with some of my own midification (http://forums.ni.com/t5/LabVIEW/33120A-Pulse-Mode/td-p/1088106).
    Unfortunately, my VI is not producing the same waveform as the manual triggering off the front panel. It hovers at the offset value and gives me a few square waves down to zero when I run the VI. The square waves are oddly spaced and I usually see 4-5 even though I specified 1 cycle in the VI. Reading through the 33120A, I get the impression that the issue is my not turning off the previous waveform but, if that's the case, I can't figure out how I would do that.
    I am starting to move away from only using drivers and into modifying SCPI code but I am still quite new to this. Would really appreciate some advice on what the problem could be. I modified my original VI twice; once to configure only the burst with the FG wave parameters set manually and once to just set up the waveform with no burst. The former did not give me much better results and the latter works fine so I'm back to thinking the issue is in the transition.
    I am attaching the initial VI (b) with the two modifications just in case (c, d).
    Hope to hear from you,
    Yusif Nurizade
    Edit: Burst string should say TRIG: SOUR BUS instead of EXT although neither works.
    Solved!
    Go to Solution.
    Attachments:
    Init_Burst_3_19b_2014.vi ‏17 KB
    Init_Burst_3_19c_2014_Local_Ramp_Rmt_Burst.vi ‏16 KB
    Init_Burst_3_19d_2014_Set_Wave_Form.vi ‏16 KB

    Sorry for the later reply fellas; I've been in contact with Agilent trying to figure out a fix.
    To address some suggestions;
    Albert, I've been in touch with Agilent. They've reproduced my SCPI commands on their end with their software (VEE) and got the desired output. I thought that maybe the issue was with the commands I was sending via LabVIEW so I downloaded a trial of VEE and sent the same commands that worked for Agilent. With VEE I have the same problem; some of the commands, relating to frequency, shape and amplitude are processed correctly, while the burst commands are not.
    I suggested the firmware issue to them and they agree it might be what's causing the problem. Unfortunately, the device is no longer supported and it would be difficult, if at all possible, to get the update especially considering this is a time sensitive project.
    Karl, I've run NI I/O Trace on both the .vi and VEE. The commands seem to be going over without issue. I am led to believe that the issue is with the instrument since Agilent was able to get the desired result using my exact commands and I can't reproduce the same using their software.
    I must confess I am a bit confused as to how this could be a firmware issue if some of the commands are going through and the whole thing works if I program manually off the front panel.
    Please advise,
    Yusif Nurizade

Maybe you are looking for

  • Problems trying to store iTunes on external hard drive and back up iPhone to internal hard drive?

    Hi I have been tirelessly trying to relocate my entire iTunes function to an external hard drive to free space on my laptop. I have migrated the iTunes library (from the 'My Music' location on laptop) to ext hard drive and also reinstalled iTunes, as

  • Memory Leak using CertOpenStore on Windows 2008 R2

    I have a program (runs both 32 and 64 bit ) that when using CertOpenStore results in a memory leak on Windows 2008 R2 only (I haven't tried 2012, but this code has run for years on 2000, 2003, 2008 without issues) Sample code to reproduce the issue:

  • 6th Generation Classic - External Speakers

    Previously, I had a 5th Generation Classic iPod (60GB) that when connected to external speakers, had an option (within the Speakers menu) to show large album cover artwork during song play.  And when a song was playing, the album cover, on a black ba

  • Fundamental questions on Object pooling

    Hi, I ve a class which exposes only utility methods and objects of it wont have any state at any point of time. Now which pattern should I use here...1. Can I go for Singleton pattern so that all calling classes will work on same instance in one JVM?

  • B2B Scenarios?? Urgent

    Hi XI experts.. Anybody explain about Busines 2 business scenarios.. what are necessary steps i should follow to develop B2B Scenarios. Compare to A2A. Share to me Some Real Time Example's.. Thanks, RAJU