How to do a digital output triggered by the falling edge of a clock?

Hello !
I would like to do a digital output (on a given line of a pci 6602 card) triggered by the falling edge of a clock.
More precisely, a pulse train is generated. I have to output each bit of a variable (first, the LSB ; then, the others bits, until the MSB), each bit being transfered on a falling edge of the pulse train. How could I do that, please ?
Thank you for helping me.
Julian.

see the following link (other forum same subject)
http://forums.ni.com/ni/board/message?board.id=40&message.id=1634

Similar Messages

  • How to control a digital output signal using the DAQ assistant?

    I am using a USB 6251 DAQ board and would like to control a switch. I am gathering airflow, pressure, and acoustic data on the same board (analog input) and would like the switch to trigger when the airflow value is within a pre-determined range. Finally, I would like to reverse the polarity of the switch (to off) about a second after the initial digital signal, all of which is during continuous data acquisition.
    I am able to actuate the switch only when pressing the "run" button in the DAQ assistant window. I am proficient with data acquisition but have never tried programming an output... Please help!
    Thanks!
    -a troubled researcher
    P.S. I am running LabVIEW 8.5 as well.

    blsmith4,
    You probably won't get the control of the digital port on your card by only using the DAQ Assistant. One of the following examples should provide you the functionality that you would like out of the box:
    Digital - SW - Timed Output (Simple)
    Digital - Continuous Output (More Complex)
    Continuous Write Digital Port - External Clock - Non Regeneration (Most Complex)
    Let me know if these work better for you.
    Best,
    Jason M.
    Applications Engineer
    National Instruments

  • How to set a specific starting time for the falling snow code snippet

    Hi everyone
    I want to use the falling snow code snipet but I don't want it it to start as soon the movie starts.
    So how to set a specific time to start the falling snow?
    Thanks
    Patricia

    put the code (that's not in a function body and excluding variable declarations and import statements) in a function body and call it using the timer class.

  • How do I take A/D samples on a falling edge of pulse Train using PCI 6024E card?

    Sampling using external triggers for A/D
    Attachments:
    DAQ_appln.doc ‏70 KB

    Hello MWallace,
    Is it triggering properly the first time? Since you have the timing VI outside of the while loop, it should only read in 4000 samples total, not 4000 each time you hit start. It is probably just reading the same data in the PC Buffer over and over, not getting new data every time. To prevent this, pull the timing VI into the while loop and clear the task every time (DAQmx Clear Task.vi).
    If it is not triggering even the first time, take a closer look at signal on the PFI line. Is it actually starting at 5 V and going down to 0 V? Instead of using a PFI line, use the same setup on a counter source line. Open a test panel in the Measurement and Automation Explorer. On the Counter I/O tab change the mode to edge counting and see if it detects the falling edge.
    Please let me know if you have any questions. Have a great day!
    Sincerely,
    Marni S.

  • Why is my board triggering on the wrong edge?

    I am using 3 PCI-6110 S Series boards to acquire several channels of analogue data. I have the same trigger signal connected to pin PFI0 of all of these boards which I wish to use to start my acquisition. Although I have configured this trigger to start acquiring on the falling edge, I see that it is sometimes starting on the rising edge - although the majority of the time it does start on the falling edge. It would also appear that when the first card triggers on the 'wrong' edge, the other 2 cards trigger on the correct edge despite the same signal being connected to all. I cannot tell if the other 2 cards ever trigger on the wrong edge when the first one doesn't.
    Does anyone have any suggestions as to why this might happen? Optimally I would like the acquisition to start on the correct edge only but if all my cards would at least start on the same edge then I could get round that. To this means I am looking at perhaps using a RTSI cable between the cards. Should this do the trick?
    The configuration I am using (for all 3 cards) is as follows:
    siStatus = DAQ_Config(Device, 1, 0);
    //although I believe that DAQ_Config() above actually calls this next line I have it in anyway:
    siStatus = Select_Signal(Device, ND_IN_START_TRIGGER, ND_PFI_0, ND_HIGH_TO_LOW);
    siStatus =  AI_Change_Parameter(Device, ND_PFI_0, ND_AI_COUPLING, ND_DC);
    siStatus = SCAN_Setup(Device, m_siNumberOfChannels, m_pasiChannels, m_pasiGains);
    siStatus = SCAN_Start(Device,...);
    One thing I was uncertain about was whether to use 'ND_IN_START_TRIGGER' or 'ND_IN_SCAN_START' in 'Select_Signal()' as I am unsure of the difference. But as my card didn't seem to trigger at all when I used 'ND_IN_SCAN_START' I removed it! I have also tried adding the line:
    siStatus = Configure_HW_Analog_Trigger(Device, ND_ON, liLowLevel, liHighLevel, ND_HIGH_HYSTERESIS, ND_PFI_0);
    where I had liLowLevel = 138 and liHighLevel = 154 to represent 0.8V and 2V respectively but my card did not at all. (It looked to me like perhaps there is an error in the NIDAQ help for Configure_HW_Analog_Trigger() in the calculation of these levels for a 12 bit bipolar device which uses:
    level = (voltage/5 +1) * 128
    so I used
    level = (voltage/10 +1) * 128
    - is this correct?)
    I used this in case my trigger signal had some noise spikes on the rising edge that were being mistaken for falling edges although this looks unlikely.
    I am desperate to get this fixed as am on a tight schedule so would appreciate any suggestions.

    a shame that Apple Support Communities didnt answer to you yet.
    I guess you CANT make a 16:9 ratio picture just because the software does not make you do so.

  • How to generate multiple digital outputs (square waves delayed) at 50 kHz?

    I would like to generate 3 digital outputs like the picture attached at 50 kHz. Using the "digital pattern generator (marching values).vi", I can generate 3 digital square wave but without the delay time. How can I do that?
    I'm using the card PCI 6034E.
    Thank you
    Attachments:
    digital outputs delayed.png ‏8 KB

    Hi,
    the digital pattern generator (marching values) only shifts the binary value of the first signal and sample to the next signal/sample.
    Have you tried generating your waveforms via build waveform and use t0 terminal to change the lead delay?
    In general, this DAQmx example could be helpful which you can modify to your needs.
    DAQmx Write Digital Channel- External Clock: https://decibel.ni.com/content/docs/DOC-11142
    Regards,
    Thomas

  • How can I send digital Output at faster rate than 1ms period?

    Hi!
    I'm using a PCI-6229 to send digital outputs to a power source and I need to send n different numbers in binary code. I need this to be periodic so I've used a while structure and the diferent numbers as the different components of an array. In this way the while loop writes the "task" repetedly at the period I have set to the loop using "wait until next ms multiple". So, it does what I want. The problem is that I need the loop to work at a higher rate than ms. It would be great if I could make it go at 0.01 ms. I have tried and even when the "wait until next ms multiple" doesn't like doubles it tries to work at this rate but the signal is not 100% periodic and I need it to be much more precise.
    Does anyone have an idea to solve my problem?
    Thanks a lot,
    Júlia

    I think the example you want to look at is Digital - Continuous Output.vi.  You can just use the onboard clock and set the sample rate to whatever you need (100kHz it looks like).
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to set a digital output using a switch on the operator interface?

    Hi, is it possible to set a digital output using a switch on the operator interface?
    Thanks,
    Mike

    Unfortunately, no.  It is on our hit list...
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • How can I generate digital output?

    I was introduced to LabVIEW and NI Elvis last month and I have been asked to generate three digital signals to control three different relays.
    what are the basic steps I have to do to generate the signals

    You may want to start with this overview.
    Your specific application is rather easy, so you may be able to even use the parallel port to control the relays, but that depends on the type of relay, current source/sink requirements, voltage requirements, etc.

  • How to select from multiple output tables in the SAP Data Source

    Hi,
    We're using the SAP Data Source to display SAP data in our portal from the Bapi: BAPI_INFORECORD_GETLIST. When defining the Bapi Meta Data we can select data from one of the two output tables (INFORECORD_GENERAL and INFORECORD_PURCHORG). But we want to select data from both tables (some columns we want to show are in INFORECORD_GENERAL and some are in INFORECORD_PURCHORG) .
    How can we do this ?
    With regards,
    Ramon van der Weiden

    You can query multiple TimesTen databases, but your original question was about joining tables from two databases, which is not supported.
    Using Cache Connect to Oracle to query an Oracle database is not distributed. It's still one single Oracle database you are querying. You cannot join a table in the TimesTen database with a table in the Oracle database, this is not allowed.
    If you are willing to share your business requiremens, we can take a look and see what solution might work for you. Would you like to discuss this offline?
    Susan

  • How can i add input/output fields in the subscreens

    Hi folks,
    I want to create two subscreens onto a main screen.
    For that, i went to se51 and defined a main screen e.g.1100. with normal screen attributes.
    Again, in the se51 initial screen i gave screen number e.g.110 with subscreen attribute.When i go to layout of subscreen i am unable to add any field or push button to that..
    My issue is to display the drawn data on a subscreen.
    Thanks for your answers in advance.....
    Regards,
    Ranjith.T.

    hi for subscreens do like this..
    REPORT ZDATEDIFF.
    SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW TITLE title.
                                        PUSHBUTTON 2(10)  but1 USER-COMMAND cli1,
                                        VISIBLE LENGTH 10.
    Parameters: p_name like sy-uname,
                p_pas like sy-uname lower case.
    SELECTION-SCREEN skip 1.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(70) text-001.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF SCREEN 500.
    *title = 'HAI VENKAT LOGIN PLEASE'.
    CALL SELECTION-SCREEN '0500' STARTING AT 10 10 ending at 70 14.
    AT SELECTION-SCREEN OUTPUT.
    loop at screen.
      check screen-name eq 'P_PAS'.
      move: 1 to screen-invisible.
      modify screen.
    endloop.
    start-of-selection.
    if p_pas = 'venkat'.
    write:/ 'this is working'.
    endif.

  • How to open Adobe Digital editions books on the iPad

    When I try to download a digital book from my library website it's saying that the book is incompatible with my iPad. What software would allow me to open this book?

    I don't think ADE will itself run on Android.
    You need to install an app such as Bluefire (free) which supports DRM epub books.
    Make sure you authorise it with the same AdobeID you use on the PC or to buy books.
    You can get books on the PC with ADE, download them, 'sideload' the .epub files to the tablet using a file manager such as Windows Explorer, and read them on Bluefire.
    For library books, the Overdrive app (free) should allow you to borrow, doanload and read books with no need for a PC or ADE.

  • I can't see the checkbox for digital output only in the speakers configurat

    y don't see this in my sound blaster audigy 2 value how can y solved this problemMessage Edited by longboy on 08-06-2005 08:39 AM

    start the creative surround mixer, and take a look at the top of the master slider.(a red cross) press it and voila...
    or just read the manual that came with the card , normally it's useful to read a manual.

  • How to use a pll output to drive the clock input?

    when i use the following code to generate a clock(CLK00IN) from MHZIN to drive the normal logic,it work normally,but when i use it to drive the gtp clock  input  port CLK00,CLK00IN become 0 (no signal),why?
    IBUFG system_clk_ibufg
     .O                              (sys_tile0_gtpclkout0_0_to_cmt_i),
     .I                              (MHZIN)
    PLL_BASE #
             .CLKFBOUT_MULT     (10),
             .DIVCLK_DIVIDE     (1),
             .CLK_FEEDBACK      ("CLKFBOUT"),
             .CLKFBOUT_PHASE    (0),
             .COMPENSATION      ("SYSTEM_SYNCHRONOUS"),     
             .CLKIN_PERIOD     (25.0),
             .CLKOUT0_DIVIDE    (5),
             .CLKOUT0_PHASE     (0)
        system_clk_pll  
             .CLKIN             (sys_tile0_gtpclkout0_0_to_cmt_i),
             .CLKFBIN           (CLK00FB),
             .CLKOUT0           (CLK00OUT),
             .CLKOUT1           (),
             .CLKOUT2           (),
             .CLKOUT3           (),
             .CLKOUT4           (),
             .CLKOUT5           (),
             .CLKFBOUT          (CLK00FB),
             .LOCKED            (),
             .RST               (system_clk_pll_reset_i)
        BUFG sys_clkout0_bufg_i 
            .O              (CLK00IN),
            .I              (CLK00OUT)
        );

    Whether this experiment is done for test purposes?
    GT should not have any impact on CLK00IN signal in the code here. GT comes into picture after sys_clkout0_bufg_i. Please check if any optimization happened during implementation.

  • Externally Triggered 6534E Digital Output

    Hi Dear Friends,
    I have get a question on how to do the triggered output for the 6534E card. Right now I am using the 6534E card to output a digital gate pulse, and I want to synchronize the output of this gate pulse to an external source, which is the Sync output of a Angilent 33220A function generator(10 kHz). I want the rising edge of one trigger pulse(the sync output) to start one digital gate pulse output, and when one digital gate pulse if finished it waits for another rising edge of the trigger pulse to start another digital gate pulse.
    For the more detailed description, please have a look at the attached waveform. Hope you can shed some light on the possibility of doing this.
    Thanks a lot for the help.
    Attachments:
    6534 Triggered Digital Output.JPG ‏95 KB

    Hello tiddlycorona,
    From the diagram you provided, you can try the Gen Dig Pulse-Retriggerable.vi. This LabVIEW example demonstrates how to generate a digital pulse from a Counter Output Channel on a digital trigger. The Initial Delay, High Time, Low Time, and Idle State are all configurable. It also shows how to use a Digital Start trigger, so the digital pulse is not started until a trigger signal is received. Though the pulse is configured in terms of ticks, it can easily be modified to generate a pulse in terms of Frequency/Duty Cycle or Time.
    Best regards,
    Ali M
    Applications Engineer
    National Instruments
    www.ni.com/support

Maybe you are looking for

  • F110 No Records Selected

    Dear Expert, When I run F110 for payment proposal, some vendor open items can be selected but some are missing from the list. When checks this in FBL1N, particular vendor is having open items. Why this is not picking up by F110 payment program? Can a

  • Quiet down OSX when receiving/making a call on mobile phone

    Hi everyone, I want to write an application in JAVA which will quiet down the system volume when I am either receiving or making a call on my Nokia E66 mobile phone. Where can I read up on what I have to do to get my mobile phone to broadcast that in

  • Content in Processing State

    Hi, There are some 500 plus content in processing state. I have run the "Automatic Update cycle",still no improvment. I have ran the "Collection rebuild cycle" its in process. Any idea how make this contents LIVE.

  • Accordian menu not collapsing entirely, need help...

    Heya, So if you click on Capital Strategies group on this page: http://juice-t.firetree.us you'll find a .swf file that has a collapsable menu (accordion menu). Everything works great except for two problems: 1. There is some sort of wierd masking oc

  • Live account corrupt

    Hello,    I have a question about a corrupt user profile in Windows 8.1.  Unfortunately it is now no longer on just one machine, but on 3.  I know how to fix a local account in Windows 8.1, as that is the same process for Windows XP - 7.  How do I go