How to generate and output 3 TTL square waveforms with different pulse widths using counters of NI 6034E

Hello
I just have a few questions.
 I am using the NI 6034E DAQ board in order to
generate simultaneouly 3 different TTL digital signals, with different
pulse width, and output these TTL signals to an external circuit that I
am using for this application.
The following pattern of the TTL pulses will look like this:
01010101 01010101
00110011 00110011
00001111 00001111
From
what I understand,  I have to use the 2 counters, Ctr0 and Ctr1, to
generate the TTL pulses that I desire, because the DIO lines are
software timed only and I will not be able to produce a deterministic
output period using these DIO lines.  Am I correct?    Also, do I have
to use a separate counter to generate a separate TTL digital pulse.  I
need 3 different TTL pulses and there are only 2 counters for this DAQ
device.  The three generated TTL signals will be feed to an external
circuit.  Concerning the hardware connections for my application, I
assume that the generated TTL signals will be output from
GPCTR0_OUT(pin 2)  for counter 0 and GPCTR1_OUT(pin 40) for counter 1
of the NI 6034E. Is this correct?  Is there any way that these TTL
signals can be output from three DIO lines(DIO0...2). 
Here is some code that I plan to use in order to do this:
 #include <NIDAQmx.h>
static TaskHandle gTaskHandle = 0;
DAQmxCreateTask ("", &gTaskHandle);
DAQmxCreateCOPulseChanTime (gTaskHandle, "Dev1/ctr0", "", DAQmx_Val_Seconds, DAQmx_Val_Low, 1.0, 2.0, 2.0);
DAQmxCreateCOPulseChanTime (gTaskHandle, "Dev1/ctr1", "", DAQmx_Val_Seconds, DAQmx_Val_Low, 3.0, 4.0, 4.0);
DAQmxCreateCOPulseChanTime (gTaskHandle, "?????", "", DAQmx_Val_Seconds, DAQmx_Val_Low, 7.0, 8.0, 8.0);
DAQmxCfgImplicitTiming (gTaskHandle, DAQmx_Val_FiniteSamps, 5);
DAQmxStartTask (gTaskHandle);
DAQmxWaitUntilTaskDone(gTaskHandle)
DAQmxErrChk DAQmxStopTask(gTaskHandle)
DAQmxErrChk DAQmxClearTask(gTaskHandle)
I believe this code should generate the 3 TTL square waveforms that I want for my application.
Please provide me with some feedback.  It would greatly be appreciated.
Thank You

 Hi,
The NI 6034E is a multifuntion DAQ device, this means you have:
  (2) counters
  (8) DIO lines (software timed)
  (16) AI, single ended
  (0) Analog Output
 You have a couple choices here:
   1. Software timed digital output of all three signals, max 1khz loop rate, non-deterministic.
   2. Hardware timed digital output of 2 signals, max 20Mhz.
   3. Hardware timed digital output of 2 signals and software timed digital output of 1 signal.
   4. Find another NI MIO board such as the NI 6251. This board will do 10Mhz pattern generation for (8) DIO lines.
For the hardware connection, you are correct, the output for the counters will be taken from pin 2 & pin 40.  Here's the pinout for the NI 6034E for reference:
The output of the Counters can be routed to some of the PFI's or to the RTSI connector. You can see this in MAX
Message Edited by Matthew W on 11-19-2007 01:24 PM
Attachments:
2007-11-19_131609.jpg ‏61 KB
2007-11-19_132435.jpg ‏86 KB

Similar Messages

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

  • I have transefer function like (1/(s^2+s+​5)) and i have a square wave input , i want to use this transfer function with this input to see the output , how can i do that , with example please.

    i need to know also how to represent this transfer function in labview, try to send me example. answer me at my mail

    "st" wrote:
    > answer me at my mail
    give a valid e-mail first, and your name, we don't like to help anonymous
    people
    > try to send me example.
    how much do you pay ?
    > i have transefer function like (1/(s^2+s+5)) and i have a square wave
    > input , i want to use this transfer function with this input to see
    > the output , how can i do that
    First you have to know what you are doing, like an engineer : you have a
    Laplace, continuous time transfer function but LabView handles discrete
    signals only. Use matlab/simulink if you want to simulate continuous time
    systems easily...
    If you definitely want to use LabView, the first step is to discretize your
    continuous-time transfer function, i.e. decide a sampling rate and convert
    it to a "z transfor
    m". Then you can directly use the "IIR Filter.vi" as I
    said earlier.
    Philippe Guglielmetti - www.dynabits.com me at my mail

  • How to generate and use Matlab(R2007) .dll's in Labview

    Is there a step-by-step example on how to generate and use Matlab(R2007)  .dll's in Labview.
    Our experimenal hardware is LabView-controlled and we want to pass
    images/2d intensity arrays to a more complex matlab program that will
    return an array of extracted data which we want to use in LabView again.
    Thank you
    Carsten

    I recommend having a wrapper created around the matlab dll that converts the datatypes for you. There is a lot of fooling around with pointers involved which is very difficult in LabVIEW. btw, this got much more complicated after Matlab 7. Essentially, you need to convert your inputs into mxArrays, and then add those mxArrays to an mxArray list that you pass by pointer into the matlab dll. You also need to create a mxArray list for the outputs from the dll which you will need to extract your data out of before converting it back into a LabVIEW supported datatype. It's a big hassle. We do this pretty often, but we have created a c library that handles all the conversions, so it is feasible for us. Unfortunately, I can't share the library, but hopefully this information will help you get where you want to be.
    Like I said, it would be easier if you can just get a c developer to write a wrapper for you to keep it simple in LabVIEW. Alternatively, you might try getting your m-code to work in Mathscript.
    Chris

  • How to generate multiple output pdf's from one oracle reports

    how to generate multiple output pdf's from one oracle reports.
    I have a report where I have to generate more than one output files from the same report based on a parameter.
    Each output file is for each parameter.
    Is this possible in oracle reports, is so how ?

    You can better post your question in the reports forum instead of this pl/sql forum.

  • How to Generate and Display SVG Graphics in ABAP

    Hi everybody,
    I tried to complete the Tutorial "How to Generate and Display SVG Graphics in ABAP, Part 1" by Siarhei Ulasenka (https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/ad83a990-0201-0010-d680-a189f8bc20fa).
    Unfortunately when I tried the example to display an SVG Drawing in an ABAP Report I get the error message "Es ist ein Laufzeitfehler aufgetreten, ungültiges Zeichen" (english should be something like "Runtime Error, unkown character"). But it works when I open the svgfile in a new IE Window (parameter in_place from cl_gui_html_viewer->show_url). Also when I open a svg file from the local disc it works fine.
    The code:
        CALL METHOD html_control->load_data
          EXPORTING
            url            = 'chart.svg'
            type         = 'image'
            subtype    = 'svg+xml'
          CHANGING
            data_table = lt_svg
          EXCEPTIONS
            OTHERS     = 1.
        CALL METHOD html_control->show_url
          EXPORTING
            url        = 'chart.svg'
            in_place   = 'X'
          EXCEPTIONS
            cntl_error = 1.
    Has anyone a solution? Thanks in advance for your help!
    Regards
    Kathrin

    Hello Alex,
    The Corel SVG viewer has problems loading and displaying the examples (see the list of limitations at their site). Try to use the Adobe viewer instead.
    Regards,
    Sergei Ulasenka

  • How To Generate And Print Reports In PDF Format From EBS With The UTF8 Char

    Hi,
    I want to know How To Generate And Print Reports In PDF Format From EBS With The UTF8 Character Set in R12.0.4.
    Regards

    Refer to Note: 239196.1 - PASTA 3.0 Release Information
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=239196.1
    Or, you can use XML Publisher.
    Note: 551591.1 - Need Latest XML Publisher / BI Publisher Patches For R12
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=551591.1

  • How to download the output of a report along with column header

    Hi,
    Could someone please tell me on how to download the output of a report along with column header to .txt format. A download option needs to be given to the user using physical and logical file names .The report basically contains header details and item details and requirement is to download the same format into an .txt format.

    Hello,
    Try this FM:
    Data: being of itab occurs 0,
    matnr like mara-matnr,
    maktx like makt-maktx,
    end of itab.
    data:begin of fld_tab occurs 0,
    fld_name(20),
    end of fld_tab.
    fld_tab = 'Material'.
    append fld_tab.
    fld_tab = 'Material Desc'.
    append fld_tab.
    CALL FUNCTION 'WS_DOWNLOAD'
       EXPORTING
            BIN_FILESIZE            = ' '
            CODEPAGE                = ' '
             FILENAME                = 'C:\1.txt '
             FILETYPE                = 'DAT'
            MODE                    = ' '
            WK1_N_FORMAT            = ' '
            WK1_N_SIZE              = ' '
            WK1_T_FORMAT            = ' '
            WK1_T_SIZE              = ' '
            COL_SELECT              = ' '
            COL_SELECTMASK          = ' '
            NO_AUTH_CHECK           = ' '
       IMPORTING
            FILELENGTH              =
         TABLES
              DATA_TAB                = itab
              FIELDNAMES              = fld_tab
       EXCEPTIONS
            FILE_OPEN_ERROR         = 1
            FILE_WRITE_ERROR        = 2
            INVALID_FILESIZE        = 3
            INVALID_TYPE            = 4
            NO_BATCH                = 5
            UNKNOWN_ERROR           = 6
            INVALID_TABLE_WIDTH     = 7
            GUI_REFUSE_FILETRANSFER = 8
            CUSTOMER_ERROR          = 9
            OTHERS                  = 10
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Naimesh

  • How to import and edit a 3D video made with Sony HDR-TD10E camcorder, with .MVC file?

    How to import and edit a 3D video made with Sony HDR-TD10E camcorder, with .MVC file?
    I have PremierePro-CS5 installed.
    This stereo 3D camcorder (Sony HDR-TD10E), output an .MVC (MultiViewCoding) file, coded in H.264 format.
    This format is already compatible with Bluray3D stereoscopic format.
    1) But, how to edit the .MVC in Premiere?
    2) What plugin should I use (if exists) for PremiereProCS5?
    3) Cineform Neo3D, can manage the .MVC format? Can convert it to Cineform format file, for import it into Premiere?
    4) What software should I use to convert an .MVC video to an AVCHD H.264 file, and import it into PremierePro CS5 or CS5.5 for editing?
    Thanks!
    Horsepower0171.

    Sorry, I am Italian, it is very difficult for me to understand what he says!
    I can just read the english text, or follow the actions of a videotutorial!
    Thus my question is the same:
    -What software can do that?
    -Sony Vegas 10 do the Bluray3D authoring?
    -For MVC editing, should I wait for Adobe CS6? Or is it planned an update for CS5.5?

  • How to FaceTime and iMessage on multiple apple devices with one iTunes account

    We recently received iPad 2's for Christmas and was looking for some advice on how to FaceTime and iMessage on multiple apple devices with One iTunes Account (Apple Id).  I have created or attached other e-mail addresses to our apple id but do not know how to use them on the new devices.  Our home MacBook Pro uses our main apple id for FaceTime.  The iPads have been setup with the main apple id w/o being able to use FaceTime and iMessage.
    Please Help...
    I appreciate the help and support.

    P and V-
    If you are trying to connect to someone with a different Apple ID, I think all the devices should work, but one at a time.
    The problem is when you try to connect between two with the same Apple ID.  Once the calling device tries to make the connection, it finds the second device to be "busy".  That is where each needs to use a different E-Mail address when setting it up.
    On iOS devices, when you press the Home button to exit an App, the App may still be active in the background, even when the device is sleeping.  If FaceTime or iMessage is merely being active that way, it may be enough to "tie up" the E-Mail address.
    From the Home screen, double click your Home button.  You will see a list of recent Apps along the bottom of the screen.  Press and hold on one of them until they start to wiggle.  You will then see a red minus sign on each.  Pressing the minus sign will remove an App from the list, and stop it from working in the background.  (Click the Home button to stop the wiggling, and again to hide the recent Apps.)
    Fred

  • Both xp and windows 7 have video problems with my VGA connection using TV

    both xp and windows 7 have video problems with my VGA connection using TV as my monitor when it gets to starting up windows no matter what version it will not I have let my mac on all night and still says starting windows or the windows 7 logo and nothing else will happen also when I use a 3rd patty software like peraills or other it works like a charm how to fix it?

    To map the drive on your computer click on Start - RUN - type "\\192.168.1.1" and click ok... When prompted for Username and Password type "admin" and click ok... Now you will be able to see the folder which you have shared on  your router, right click on it and select "Map network drive" and click on finish.
    Now it will map the drive on your computer and you should be able to transfer the file from your computer to the USB drive.

  • Photoshop shut down while I drew a picture, now the file is broken and I can´t fix it, photshop won´t open the file and I have tried repearing it with different programs. What should I do?

    Photoshop shut down while I drew a picture, now the file is broken and I can´t fix it, photshop won´t open the file and I have tried repearing it with different programs. What should I do? I spent 6 hours on the pic and I dont even have a screenshot or anything.

    You don't even say what platform you are on, or any other details that may help others assist you.
    If you are on a Mac, try opening your file in GraphicConverter (they have a demo version) if that doesn't open it, nothing will, in my experience.
    I assume you have tried Adobe Illustrator already to recover.
    You may also have a JPEG of your complete file (flattened) in Bridge Cache.
    On the Mac you'd find it in your User ~Library (NOT the Root Library ):
    Users > yourname > Library > Caches > Adobe > Bridge CS6 > Cache > 1024 > jpg(fileID)number Filename.psd.jpg
    The user ~Library is hidden, but you can make it visible for an moment or two.  Ask Apple if you don't know how.
    I don't do Windows.

  • Hey apples, how do I get my iPhone 4 sync'ed with my itunes account using my laptop?

    Hey apples, how do I get my iPhone 4 sync'ed with my itunes account using my laptop = how do I add my existing itunes from my account from my laptop to my iPhone 4.  Thanks.

    Overview of syncing iPhone, iPad or iPod touch with your computer:  http://support.apple.com/kb/HT1386
    Keep in mind that with the iPhone, you can sync all iTunes content with only one computer.  Trying to sync iTunes content with a second computer will result in iTunes erasing the content from the first computer.  However, non-itunes content such as contacts, calendars, mail settings, notes, etc. (anything in the Info pane) can be synced from another computer.
    If you have songs on a different computer, copy them to the computer you use to sync:
    iTunes for Mac: How to copy purchases between computers, http://support.apple.com/kb/ht1373
    iTunes for Windows: How to copy purchases between computers, http://support.apple.com/kb/HT1727

  • I'm from Brasil and I have a Iphone 4 with 3 month in use.I can give as part payment of a Iphone 5?

    I'm from Brasil and I have a Iphone 4 with 3 month in use.I can give as part payment of a Iphone 5?

    Are you talking about buying a new iPhone in Brazil?  You will have to go to the Apple store and see if they offer buy-back or trade-ins in Brazil.  They have offered that in the US Apple stores, but the value of the trade-in is pretty restricted.  It is often better to sell on eBay or similar and use the money for the new iPhone.
    Check with your Apple store and see what they are offering.

  • How can I create a pulse train with varying pulse widths?

    I'm trying to create a finite pulse train that varies its duty cycle. I was hoping there was a clever way to do this neatly. I've attached a very rough picture of the train I'm hoping to make, with the pulse widths defined with t, the delay between pulses d, and a total of N+1 pulses. Thanks!
    Edit: My current method is to use the pulse train function, and actually create 2N+1 pulses, stacking the "double length" pulses.
    Attachments:
    ExPulseTrain.png ‏9 KB

    I wound up just building the first short pulse, and then the train of longer pulses, and sticking them together. I attached a screenshot of the code I went with.
    Attachments:
    VarPulseTrain.png ‏29 KB

Maybe you are looking for

  • Since last update on itunes, my PC doesn't detect any of my devices. HELP!

    Since I downloaded the last version of iTunes my PC doesn't detect any of my devices (ipad, ipod, iphone). Have been connecting my devices to the PC, when opening iTunes there is a legend, with the ipod saying that itunes doesnt detect the device to

  • How to Disable Row Detail in Sales Module

    Dear Experts, how to disable row detail option in sales module. how it is posible. we are using SAP Business One 2007. PL42 Thanx

  • Patchset 13

    Where could I download Patchset 13 from? I want to install Oracle 6i Form Developer on Windows XP. Thanks.

  • Long SQL statements that spans many lines

    Hi My major problem with JDBC is dealing with long SQL statements. Such statements normally are broken into lines to ease reading, for example: select column1, column2 from table1, table2 where table1.x = table2.y order by column1 In java I should bu

  • Using Time Machine without Leopard Discs

    Hello for reasons to complicated to list (one being that I am not very clever) I need to restore all my files onto my iBook (I have erased the hard drive partition). I have Time Machine backups on a Firewire drive and a NAS drive but have left Leopar