How do I use AI triggers and counters in DAQ6020-E using LabVIEW 6.0

Hi:
I am new to LabVIEW and sorry for newbie questions. My questions are:
1. I want to use the 2 counters in DAQ6020-E to generate 2 continuous pulse trains(C1 and C2) at different frequencies(C1 @ 1k Hz and C2 @ 2k Hz)and I want to synchronize these 2(for example,they both start with positive edges), how can I accomplish that? should I use a software trigger or a hardware pulse trigger?
2. Followed from 1),there will also be 4 analog inputs(a0,a1,a2,a3) in the same VI. I want them to be triggered by two non-overlapping clock sigals phiA and phiB. phiA and phiB are created by C1 and C2, they both will have 25% duty cycle(with 1k Hz frequency) and are out of phase by 180 degree(thus they wont be bo
th high at the same time).I want a0 triggered by the postive edge of phiA, wait for 0.1 ms, take 1 sample,stop and wait for the next postive edge of phiA. Similarly, a1 will be triggered by negative edge of phiA(wait .1 ms and then sample), a2 by positive edge of phiB, and a3 by negative edge of phiB.
I want to know what pins in the 68-pin connectors corresponding to counter0 and counter1 output, and where should I hook up the triggering phiA and phiB to. Should I initialize them first in Measurement & Automation Explorer?
Thanks so much.
Alan

Hello Alan,
Thank you for contacting National Instruments.
Here are some answers to your questions:
1. You will want to use a harware pulse trigger. This pulse will be connected to the gate of both counters. When a rising edge is detected, both pulse trains will be output on the output pins of the counters. See example attached below.
2. It will not be possible for you to accomplish what you are asking with a DAQPad-6020E. E Series devices only have one analog-to-digital converter (ADC). This means that all 16 channels are multiplexed to a single ADC. This means that it will not be possible to sample(trigger) a0, a1, a2, and a3 simultaneously nor independently. Also, it is not possible to implement the 0.1ms delay from when the edg
e of the sample clock is detected. Here what you can accomplish:
1. You can use an external clock to sample(trigger)a single channel.
2. You can select if you would like the sample your signal on the rising or falling edge of your external clock(phiX).
3. You can use the output of one of the counters as your external sample clock.
I have attached two examples below. One of them generates a pulse train from counter 0. The other acquires analog data from channel 0 by using an external clock.
Here is a link to the DAQPad-6020E User Manual. The output pins for the counter can be found on pages 4-2 and 4-3: http://digital.ni.com/manuals.nsf/websearch/9B5442F668EB7C6B8625669F00743D24?OpenDocument&node=132100_US
Regards,
Bill B.
Applications Engineer
National Instruments
Attachments:
Generate_Pulse_Train_(DAQ-STC).vi ‏103 KB
Cont_Acq&Graph_ExtScanClk.vi ‏108 KB

Similar Messages

  • How to measure the rpm using NI 9411 and counters

    How to calculate the rpm of a shaft using NI 9411 and counters?

    http://forums.ni.com/t5/Signal-Conditioning/measuring-rpm-using-DAQ-device/m-p/2571131#M7353
    Additionally, if you set it to read a degree instead of pulse, your calculation will change a bit, but I'll leave that to you.

  • How can I convert my music, and CDs to MP3, for use in my vehicle's AM/FM/ Stereo? I have a 16 GB SDHC Card, that I would like to load up with some of my music.

    How can I convert my music, and CDs to MP3, for use in my vehicle's AM/FM/ Stereo? I have a 16 GB SDHC Card, that I would like to load up with some of my music.
    Thanks for any help you can furnish.
    Ed

    Well, this question really belongs in the iTunes forum, which is where you will get fast answers.
    Just go to iTunes Preferences.  Click on the General icon.  Set When you insert a CD to Ask to Import CD.  Click on Import Settings.  Set Import to MP3 decoder.  Make sure you're using Good Quality.
    This should deal with your CD's.
    With your current music, as long as it does not have DRM restrictions (older iTunes Music did), select the song, right click on the song (or group of songs), pull down to Create MP3 version. 

  • How to create a new variant and a job sheduled to use it for the ......

    How to create a new variant and a job sheduled to use it for the exisisting programs

    Hi
    1. The ALV Grid Control is a tool with which you can output non-hierarchical lists in a
    standardized format. The list data is displayed as a table on the screen.
    The ALV Grid Control offers a range of interactive standard list functions that users need
    frequently (find, sort, filter, calculate totals and subtotals, print, print preview, send list,
    export list (in different formats), and so on. These functions are implemented in the
    proxy object class. You as the programmer have the possibility to turn off functions not
    needed. In most cases the implementations of the standard functions provided by the
    control are sufficient. However, if required, you can adjust these implementations to
    meet application-specific needs.
    You can add self-defined functions to the toolbar, if necessary.
    The ALV Grid Control allows users to adjust the layout of lists to meet their individual
    requirements (for example, they can swap columns, hide columns, set filters for the
    data to be displayed, calculate totals, and so on). The settings (list customizing) made
    by a specific user are called a display variant. Display variants can be saved on a userspecific
    or on a global basis. If such display variants exist for a list, they can be offered
    to the user for selection. If a display variant is set as the default variant, the associated
    list is always displayed based on the settings of this variant.
    2. REUSE_ALV_LIST_DISPLAY
    REUSE_ALV_GRID_DISPLAY
    REUSE_ALV_FIELDCATALOG_MERGE
    REUSE_ALV_COMMENTARY_WRITE
    3. Use of Field Catalog is to determines the technical properties & add formating information of the column.
    6. all the definition of internal table, structure, constants are declared in a type-pool called SLIS.
    7.fieldcat-fieldname
    fieldcat-ref_fieldname
    fieldcat-tabname
    fieldcat-seltext_m
    5. Form user_command using r_ucomm like sy-ucomm rs_selfield type slis_selfield.
    Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length.
    In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output.
    The report output can contain up to 90 columns in the display with the wide array of display options.
    <b>The commonly used ALV functions used for this purpose are;</b>
    1. REUSE_ALV_VARIANT_DEFAULT_GET
    2. REUSE_ALV_VARIANT_F4
    3. REUSE_ALV_VARIANT_EXISTENCE
    4. REUSE_ALV_EVENTS_GET
    5. REUSE_ALV_COMMENTARY_WRITE
    6. REUSE_ALV_FIELDCATALOG_MERGE
    7. REUSE_ALV_LIST_DISPLAY
    8. REUSE_ALV_GRID_DISPLAY
    9. REUSE_ALV_POPUP_TO_SELECT
    Purpose of the above Functions are differ not all the functions are required in all the ALV Report.
    But either no.7 or No.8 is there in the Program.
    <b>
    How you call this function in your report?</b>
    After completion of all the data fetching from the database and append this data into an Internal Table. say I_ITAB.
    Then use follwing function module.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = 'Prog.name'
    I_STRUCTURE_NAME = 'I_ITAB'
    I_DEFAULT = 'X'
    I_SAVE = 'A'
    TABLES
    T_OUTTAB = I_ITAB.
    IF SY-SUBRC <> 0.
    WRITE: 'SY-SUBRC: ', SY-SUBRC .
    ENDIF.
    ENDFORM. " GET_FINAL_DATA
    The object F_IT_ALV has a field, the activity ACTVT, which can
    contain four permitted values: 01, 02, 03 and 70. Each of the
    activities 01, 02 and 70 controls the availability of particular
    functions (in the menu and the toolbar) of the ALV line item list:
    a) 01: "Settings -> Display variant -> Save..."
    b) 02: "Settings -> Display variant -> Current..." and
    "Settings -> Display variant -> Current header rows "
    c) 70: "Settings -> Display variant -> Administration..."
    Activity 03 corresponds to the minimum authorization, which is the
    most restricted one: The user can only select layouts which have
    been configured already. In particular, all of the other functions
    named above are inactive with activity 03.
    Now if you want to permit a user to change the column selection and
    the headers as well as to save the layout thus created, for example,
    but if you do not want to permit the user to administrate the
    layouts, you grant him or her the authorization for activities 01
    and 02.
    Check this link it will be mosty usefull for u
    http://www.sap-img.com/fu017.htm
    Reward all helpfull answers
    Regards
    Pavan

  • Problem using TAPI triggers and merge statement

    Hi,
    I use Designer tapi triggers on a table. When I try to execute a merge statement, I get the following error:
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value.
    Is there a restriction when using TAPI triggers and merge statements that anyone is aware of?

    No restrictions on MERGE commands that I know of. I have, however, seen the TAPI give inexplicable ORA-06502 errors. It would help to know what line in which procedure or trigger gave the error. That information should have been in the error stack.

  • How to get the kerning value and set it to back use script?

    hi,guys
    I come back again.
    I encountered a kerning problem.
    how to get the kerning value and set it to back use script?
    Thanks very much!

    For both cases, the filename can be found on the FILE.ReceivedFileName Context Property.  You can access this Property in a Pipeline Component or Orchestration and take any action you want, such as apply to a database.
    The value is accessed by: MyReceivedMessage(FILE.ReceivedFileName)
    In the case of a duplicate EDI Interchange, you would use the Failed Message Routing feature to capture the error message with either an Orchestration or Send Port.

  • I recently inherited a power mac from my dad how do i change admin passwords and such so I can use it

    I recently inherited a power mac from my dad how do i change admin passwords and such so I can use it?

    And if you can't log into the machine at all, you'll need:
    Mac OS X: Changing or resetting an account password.
    You'll need a system recovery or Mac OS X install disc. Don't drop your Dad's user account, though. If he's got any serialized software, it may not function for all users on the machine, and you may need to go back to his account.

  • I just updated to Pages 5.0 and I am writing a document that uses both, Spanish and English...I used to use the inspector to change spelling and languages. How do I do that in this new version?

    I just updated to Pages 5.0 and I am writing a document that uses both, Spanish and English...I used to use the inspector to change spelling and languages. How do I do that in this new version?...HELP!!!

    jedimaster Master wrote:
    how do I do both?
    By choosing SET UP for the "automatic" item at the bottom of the list I referred you to earlier

  • How do I change my iTunes and App Store Review Nickname using an iPad 2?

    How do I change my iTunes and App Store Review Nickname using an iPad 2?

    See  >  Change your iTunes Store country
    Here  >  http://support.apple.com/kb/HT1311

  • Send command to modem using serial port and capture the response in the labview

    hello.
    I am doing my shool project.
    I want to send command to modem using serial port and get the response in the labview.
    When i run my program and enter"AT", only messy code will be displayed.
    can anyone help me? thanks 

    Dora0512 wrote:
    Thanks for you all. My partner got it already.
    I am doing send sms part.
    Can anyone tell me why my program is not so steadily?
    It means this program can run. But somtimes I cannot receive sms. sometimes can
    Basically, it is not well-written from both a LabVIEW and a communications point of view.  Unfortunately, I can't elaborate because today is an exrtremely busy day at work.  I'm hoping this bump will prompt someone to help you with your problem.  If you could also provide us with the programmer's guide or the manual for your equipment, that would be extremely helpful.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • HT204266 Why can't I use paypal?  And if I can't use paypal why do you list it?

    Why can't I use paypal?  And if I can't use paypal why do you list it?

    I suspect it is a case of different rules in different regions. Here in the UK I have a choice of Visa, MasterCard, Amex, ClickandBuy (who they?), Maestro and None... Where are you seeing PayPal advertised as an option?
    tt2

  • How to use analog Triggering and External clock scan

    Hi, there. I want to measure the engine cylinder pressure with an PXI6070-E card and BEI encoder. I have tried using Cont Acq&Graph ExtScanClk D-Trig.vi and Cont Acq&Graph ExtScanClk Soft A-Trig.vi , but they don't work. What I did was to connect a 50HZ pulse to PFI0 (analog triggering, I changed the code from digital triggering to analog triggering), and a 100K pulse to PFI7 (startscan), and an 50 HZ analog signal to ACH0. But the code always says: timeout. If I use internal clock, it works fine. Could you please give me some help? THANKS A LOT!

    Hey Wyuan,
    I tested the Cont Acq&Graph ExtScanClk Soft A-Trig.vi and it worked fine. However, the Cont Acq&Graph ExtScanClk D-Trig.vi has a small error in its logic that will prevent the data from ever being displayed to the graph. In order to run the examples you need to connect a trigger to pin 11 and a scan clock to pin 38. A 10kHz square wave would be fine for the clock signal and just a single pulse would work for the digital trigger.
    One additional think to keep in mind is the grounding. You might need to connect you ground from your signals to a DGND pin. I am including the two programs that I used for the test.
    I hope this helps,
    Joshua
    Attachments:
    Cont_Acq&Graph_ExtScanClk_D-Trig.vi ‏121 KB
    Cont_Acq&Graph_ExtScanClk_Soft_A-Trig.vi ‏153 KB

  • CS4 using a Mac and want to play video using windows media player

    Hi I am having issues with file types to play video back using Windows media player.
    I am producing video using Premiere CS4 on a Mac and I need to know what format to use to have the files play in windows media player as .mp4 is not compatable with wm player.
    Thanks

    I have Windows Media Player installed on my PC workstation and I do remember installing a codec so that MP4 files could play in WMPlayer 11 on Windows Vista 64-bit (should work on 32-bit also)
    look near the bottom section of this link for further information.  The codec is called DirectShow
    http://support.microsoft.com/kb/316992#34
    Otherwise if you're posting videos on a webpage for example in the mp4 format use the Quicktime html wrapper so that people using Mac's can also view your videos that are encoded for PC's.  If you encode in wmv format (Windows Media Video) then provide a link to the "Flip4Mac" application that can use Quicktime on the Mac to play Windows Media Files.  I think you can find it on www.mactopia.com .

  • Siri keeps cutting in and out when I'm using my iPad3 and I don't even use Siri. This Is driving me mad. Can someone find it in their heart to help me.thanks,Michael.

    SIri keeps cutting in and out when I'm using my iPad 3 and it's driving me mad.
    i Don't even use Siri and know I can turn it off but don't want to.
    could someone please find it in their heart to try and help me with this issue.
    kind regards
    michael.

    If you have your iPad connected to the charger it could be the new "Hey Siri" feature that allows you to use Siri without pressing the home button. Do you have a radio on or are people talking ? Go to settings> general> Siri> Allow"Hey Siri"> off.

  • Poll:  How many users on your apps and what hardware are you using?

    I am curious about the collective experience and performance of others APEX applications and how much "horsepower" your hardware has.
    I have a need to support 20-30 users and am using a Windows XP machine with 1.99 Gig of RAM and a 2.8 GHz Pentium 4 CPU.
    Any thoughts on this?

    For my personal use, I'm renting a Celeron 2.4ghz with 1Gig RAM running CentOS, Oracle XE and Apex 3.2 at a data center 1200 miles away. Seems to work fine. I find the biggest issue is network bandwidth. I originally had a 10Mb link to the datacenter's backbone, now have a 100Mbit. The difference was night and day.
    For work (speaking only of our Apex servers), we've got:
    One Dell 2way P4 with 4G RAM and 10,000 RPM drives.
    It runs 2 10G instances and several Apex apps and it also runs Enterprise Manager Grid Control for 40+ databases. No issues.
    Multiple prod/dev/test servers.
    All are VIRTUAL running on VMWare ESX3.5. Each database VM has 2 gig of RAM and 2 "CPUs" running 11g/Apex3.2 on Oracle Linux. They all work fine.
    I find that a poorly written app can crush just about any hardware you can throw at it. Luckily we don't have any of those ;).
    I suspect that your hardware would be fine, particularly if running Linux. I cannot speak to Oracle/Apex on XP. I suspect you might be disappointed, mostly because it is tuned for interactive use rather than background applications (services). Not trying to be a Windows vs Linux troll here, just saying that if you are running a workstation with Oracle/Apex and you on it and expect to support 20-30 other people, you are all likely to be disappointed. Apex/Oracle should be on dedicated server hardware with a server OS.
    You also aren't giving us much info on your hardware; 7200RPM IDE/SATA drives aren't going to be as fast as 15KRPM SCSI or SAS, etc.
    It wouldn't surprise me if your well written application was able to support 20-30 users with the hardware you are describing (though I won't vouch for the OS).
    Google for "apex.oracle.com" and "poweredge 1950" that will take you to this link:
    http://joelkallman.blogspot.com/2009/06/who-says-application-express-cant-scale.html
    The whole thing apparently serves up 6 million page hits a week with a 1.5Gig SGA. That's a lot of work on a pretty small box.

Maybe you are looking for

  • 1st Gen iMac G5 - no power warranty ?

    I have a first generation iMac G5, and my serial number falls into the ranges cover by the iMac G5 Repair Extension Program for Video and Power Issues. My issue is that I've already had my global logic board replaced under this warranty, and now my i

  • Can I install Windows 8 through bootcamp without previously having Windows 7 or any sort of Windows?

    I have a 13.3" Macbook Pro that doesn't seem to like Windows 8. It did not previously have and patition/Windows side. I bought the full version of Windows 8 for $199.99 and hope I do not regret it. The mac does not have a disk drive, so I use an exte

  • How many hard drives do I use

    Hey Gang, I have 2 internal hard drives. I read a post recently that mentioned something about having your app, samples/loops, and songs on different hard drives. Is this because of all the reading that must be done when the song is playing? I have g

  • Our USDA Direct timeline- 99% there after 103 days

    Yesterday we were told our Certificate of Eligibility was being sent out, so I figured it's time to start a journal-type post for all those hunting for info. I spent a lot of time searching for timelines, so I hope someone else finds the following he

  • Cost of Data Mininf option

    Any idea how much the data mining option in Oracle 9i costs?