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,

Similar Messages

  • 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 trigger output pulse each iteration

    I want to output a trigger pulse, record two analog inputs, and save the data to a text file.  When I do this for one iteration it works fine, but multiple iterations only acquire and save, the output pulse is only generated on the first iteration.  I am using a counter pulse output to generate the signal. How can I fix this issue?

    Hi there,
    What kind of board are you using? Are you saving data to the file on every iteration? Depending on your application, it might be advisable to save all data to a file after you are done with your application. Can you post your code so that we can look at it?
    Regards,
    Efrain G.
    National Instruments
    Visit http://www.ni.com/gettingstarted/ for step-by-step help in setting up your system.

  • 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

  • Counting 3 pulse outputs on the 9178

    Hello everyone,
    Please note that I am very new to Labview. My issue is related to measuring 3 independent pulse outputs.
    Currently I am using a 9178 chassis. Two pulse outputs are coming from Omega FTB800B Pulse meters (water flow) which should output 20 pulses/gallon of water flow. The third pulse output originates from a wattnode pulse meter.  I am attempting to create a very simple vi (to test all three outputs).
    The wattnode seems to be working perfectly and the pulse outputs seem reasonable (connected to a 9402 card).  
    The two flow meters, on the other hand, are giving me some trouble. I have attempted to run them through both the 9402 card and the two onboard pfi ports.  
    The wattnode works using the daq assistant and selecting edge count. Since the Omega flow meters are not supplying voltage or current (reed switch), I figured this was a good guide to count pulses internally https://decibel.ni.com/content/docs/DOC-9061. Unfortunately I have been unable to measure the pulse outputs using the aforementioned method. 
    I have one USB-6009 unit which does not seem to have a problem measuring flow from either meter (one at a time due to the internal counter limitation).
    Please see the attached vi examples
    Thanks 
    Attachments:
    WaterMeter.vi ‏23 KB
    Wattnode_VI.vi ‏52 KB
    USB-6009.vi ‏49 KB

    Thanks for the reply Nick-A!
    I believe the WaterMeter VI originated from the example finder section of Labview. There seem to be a few additional prorams which help display pulses counted by the edge counter; but, the counter portion of the code appears almost identitcal to the WaterMeter VI.
    I tried utilizing the usb 6009 vi format (DAQ assistant) through the 9402 card. For some reason, I do not even measure pulse readings while running the project in the DAQ assistant properties window. Both flow meters produce the same results when connected to the aforementioned card (I have connected the flow meters to each of the 4 BNC ports). Please correct me if I am wrong, but shouldn't pulse count appear through the DAQ assistant (even if there is no other coding)?
    Thanks,
    Daniel

  • 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

  • Dynamic data aquisition on USB-6212

    I am using USB-6212 to aquire (AI) and control (DO) from/to 8 UUTs. It works perfectly. What I want to do is dynamically launch my daq vi for each UUT that will acquire AI and DO data for its respective lines.
    For example, I launch UUT-1 daq vi to get AI data from ai0 and DO data to p0.0, p0.1 and p0.2. Then launch UUT-2 to get data from ai1 and data DO to p0.3, p0.4 and p0.5 at different times.
    I want to be able to launch and stop daq at my will.
    Here is the problem. So, I tried launching VIs dynamically, which works ok. But, data aquisition is not working. It works for the first launch of the daq vi. For the other UUTs, it give me this error:
    Error -50103 occurred at DAQmx Start Task.vi:2
    Possible reason(s):
    NI Platform Services:  The specified resource is reserved. The operation could not be completed as specified.
    Task Name: _unnamedTask<15>
    So, my question is, can this be done? Would USB-6212 support dynamically allocating task resources on DAQmx?
    I have attached my main launch vi and daq vi block diagrams. Any help/feedback is appreciated.
    Attachments:
    MainLaunch vi.png ‏35 KB
    LaunchTest vi.png ‏43 KB

    Hi sbk143,
    The 6212 only has a single analog input timing engine, so you cannot run more than a single analog input task at a time.
    What you can do is acquire from all of your AI channels in a single task, then programmatically index out the channels that you are interested in.
    Your approach would work for software-timed DO, so you can control the UUTs independently at different times.
    Best Regards,
    John Passiak

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

  • Retriggered single pulse

    I am using NI-DAQmx C/C++ API. How can I set up a counter to produce a retriggerable single pulse? That is, I need to trigger an output pulse, and while the pulse is being generated, if a new trigger comes in, it resets the counter so that the pulse timing is extended.
    Is that what the DAQmxSetStartTrigRetriggerable property does? I'm guessing that the ability to do this depends on the hardware being used?
    Thanks!
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com
    Solved!
    Go to Solution.

    WM_John_Weeks wrote:
    I need to trigger an output pulse, and while the pulse is being generated, if a new trigger comes in, it resets the counter so that the pulse timing is extended.
    The need is a replacement for the (ancient) NI-DAQ API GPCTR_Set_Aplication() with ND_RETRIG_PULSE_GNR with something equivalent in NI-DAQmx.
    I'm glad you clarified.  ND_RETRIG_PULSE_GNR does not extend the pulse timing if an additional trigger is received during generation.  From the NI-DAQ Function Reference Manual:
    ND_RETRIG_PULSE_GNR:  ... Any gate transitions received during the pulse generation are ignored.
    With this in mind, DAQmxSetStartTrigRetriggerable is in fact what you would want to use to get the same behavior in DAQmx.
    Best Regards,
    John Passiak

  • Oracle query - Merging multiple rows into a single row output

    Hi All,
    I have to have a multiple row output to be converted into a single row output.My current output looks as follows:
    ID YR INC_CODE OFFN SCHOOLNO
    8006 2002 00175 SC03 12
    8006 2002 00175 DC06 12
    8006 2002 00175 DC03 12
    8006 2002 00175 DC02 12
    ID,INCIDENT CODE,OFFENSE are all Primary keys
    So I need the output as follows:(IN ONE ROW)
    ID YR INC_CODE OFFN1 OFFN2 OFFN3 OFFN4 SCHOOLNO
    8006 2002 00175 SC03 DC06 DC03 DC02 12
    Can you help me on this since have been spinning the wheel and this has to be a query since will have couple of tables join to produce a materialized view.
    Thanks in advance

    Hi Nigel,
    Thanks for the reply I tested out the portion having the decode and I get the output as follows:
    ID YR INC_CODE OFFN1 OFFN2 OFFN3 OFFN4 OFFN5
    8982 2002 2175 DOC01 -----------------------
    8982 2002 2175 DOC02-------------------
    8982 2002 2175 DOC03------------
    8982 2002 2175 DOC06-------
    8982 2002 2175 SCV03
    There is no value as max for OFFN and each INC_CODE MAY HAVE UP TO A MAX OF 5 OFFN.My query is as follows:
    select distinct STU_STUDENT_ID, INC_BEG_SCH_YR,INC_INCIDENT_CODE
    , decode(rank() over (partition by INC_CODE order by OFFN),1,OFFN,null) as offn1
    , decode(rank() over (partition by INC_CODE order by OFFN),2,OFFN,null) as offn2
    , decode(rank() over (partition by INC_CODE order by OFFN),3,OFFN,null) as offn3
    , decode(rank() over (partition by INC_CODE order by OFFN),4,OFFN,null) as offn4
    , decode(rank() over (partition by INC_CODE order by OFFN),5,OFFN,null) as offn5
    from stu_offn where
    stu_offn.ID = '8982' and stu_offn.INC_CODE = '2175'
    (****Where clause is just given to just check a value)
    So as you know I need to just have all the OFFN in a single row ie as follows:
    ID YR INC_CODE OFFN1 OFFN2 OFFN3 OFFN4 OFFN5
    8982 2002 2175 DOC01 DOC02 DOC03 DOC06 SCV03
    Can you just give me a step by step procedure to go through this and the table in this case is just 'STU_OFFN'
    Thanks for the earlier reply appreciate it!
    ****Sending this again to show the exact way the output is coming

  • How to get a single pulse Using Burst MOde?

    Harlow Peeps! Just want to know how to get a SINGLE pulse generated by the AGILENT 33220A function generator? the results i get it's in the burst MODE and everything is running smoothly and fine! it's just that i want to get a single pulse froM it only and not repeated triggeriong of the pulse...
    thanks! ^^
    cheers!

    hi,
    find attached an example, how to set hp33250a ( ag33xxx )  into burst mode.
    hope this helps........... - play with it - and change it to your needs.
    regards
    Werner
    Attachments:
    hp33250a _burst.zip ‏165 KB

  • How can i get the every rising edge's time value with usb 6212 counter continues acquisition

    i have a usb 6212,and now i can get every pluse 'period ,frequency。 
    i want to know how to get the every rising edge's time point value by DAQmx Counter.
    thx

    As you already know YouTube doesn't play in the background, that's why I wasted my time trying to give you an alternative.

  • Please How can I capture and integrate a single pulse of a DC signal from an external circuit

    Hello everyone
    I am trying to integrate a signal from an external circuit I have built. I want to capture just a single pulse from the signal and integrate it. Please can anyone assist me with how I can perform this?

    The 6008 has no hardware analog trigger, so to capture a single pulse, you will need to trigger in software.  It does have a digital trigger, so if you have a digital way to signal the start of your pulse, it would make your life easier.  You will need to ensure you take enough data to get an entire pulse.  At that point, use one of the trigger VIs to find the start (and possibly end) of your signal.  Take a subset of your data and integrate it (LabVIEW does support integration).
    If you have trouble finding anything, let us know.  Find the trigger and integration VIs using the search feature of the palettes.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • A single .swf output file?

    I import my captivate simulations into my Authorware
    programs. This requires a single .SWF output file. I want to be
    able to use the skin (border) feature and produce only 1 single
    file. Can this be done? Anyone have a work-around...
    Thanks,
    kshasmith

    Hi there kshasmith
    So you want to eat all that cake and still have some to take
    with you, eh?
    I think you would be able to accomplish this the old
    fashioned way. That is, the way we did it in Captivate 1. Notice
    that if you DE-select the borders check box, you STILL end up with
    the playback controls. They are just plopped on top of the bottom
    of the movie. Sooooo, if you click Project > Resize Project...
    you can increase the height of the movie to make room for the
    playback controls.
    Steps:
    Click Project > Resize Project...
    DE-select the "Maintain Aspect Ratio" check box
    Add 35 pixels or so to the value in the Height field
    Choose the option to Keep project the same size and fill the
    background with color
    Choose the color your skin would have provided
    Click the drop-down and position the project in the Top
    Center
    Click the Finish button
    This should result in a single .SWF movie that is basically
    identical to a skinned Captivate movie using two .SWFs.
    Give that a go and see how you fare.
    Cheers... Rick

  • How to make an checkbox editable and uneditable within a single alv output.

    Hi,
    How to make an checkbox editable and uneditable within a single alv output depending on condition.
    I have used Reuse_alv_grid_display.
    In my output every checkbox is editable. i have used edit = 'X'.
    I want editable checkbox for correct value and uneditable checkbox for incorrect value in a single alv

    >
    Mukilansap wrote:
    > I want editable checkbox for correct value and uneditable checkbox for incorrect value in a single alv
    Use alv styles to achieve this, set the style for each record before displaying the ALV. Structure LVC_S_STYL.
    Take a look at the example BCALV_EDIT_02, it is OOPS based, but check how the style table is filled.
    regards,
    Advait

Maybe you are looking for

  • ICloud not syncing and Contact problems with merging duplicates

    I was having problems with the syncing of my notes app. When I got the iphone 5 I had since using Mountain Lion I had started to make use of the fact that the notes sync across iCloud. Great. Although not for long. Everything was going fine notes wer

  • Unable to make the Client Copy

    Hi Team ,.              I am trying to make a client Copy after SCCL transaction is performed when we check the status in SCC3 it's throwing an error Error : Client 200 logon locked Client Copy probably cancelled The Client could be the source client

  • I want to display many records in the same jsp page

    Hi, i want to display many records with in the same jsp page providing the next,previous,first last . give me clear idea how to do that one note :only using servlets,jsp,jdbc and javascript

  • Low fm transmission power on Nokia N78

    Hello, I have Nokia N78 phone. This phone works great, no huge issues with it. However, there is one issue that is bugging me. The issue is that the power of the FM transmitter is too low, even a good radio is unable to pick up the signal from the ph

  • Multi Task Challenge

    We currently have verizon cell phones, one with data capability added. We also have a hard wired phone through ATT through which we also get access to the internet. ATT charge is $70 per month for phone and internet. I would like to replace home phon