Want to trigger event count from both counters (E) to buffer using FOUT (100kHz/16 or slower) as a trigger

We are using a AT-MIO-16E-1 board. We would like to run an xy raster pattern from the buffer (AO) in order to reduce scan times (256 x 256 pt images). At each AO (voltage) point we would like to read from both onboard counters and store the number of events counted to memory, reading out the buffer say every 256 pts (1 scan line). In order to ensure accurate counting periods the counters need to be triggered to coincide with some "dwell time" at each AO voltage pt. We have thought of using FOUT for the trigger or perhaps out analog out scanning signal but are concerned that the FOUT freq is too high (6250 khz - we would like 100hz-10khz). Any suggestions or e
xamples would be appreciated.

Hello;
The main problem there is going to be the counter triggering. I'm saying that because, there isn't a way for the Analog Input operation to send pulses that will trigger of the timer operation at multiple voltage levels. The only solution for this I can think of is, instead of having an analog voltage level which would indicate the position of xy, if you could have a device which would give a TTL pulse instead when the desired position is reached, then you could use the 6601 to have a triggered operation at the counter. Another constraint for your application right now is the fact that the E-series boards' counters don't have triggering features, only gated features.
Anyway, you would need to have a TTL pulse either to trigger (in case of the 6601 count
ers) or to gate (in case of the E-series board), when the desired XY position is reached.
Meanwhile, you can refer to the Labview examples for Streaming to disk, Analog I/O and counter operations. You can go to Search Examples->I/O Interfaces->Data Acquisition->Data Logger ( for streaming to disk operations); Search Examples->I/O Interfaces->Data Acquisition->Analog Output ( for Analog Output Operations); and Search Examples->I/O Interfaces->Data Acquisition->Counters (for counter operations). Also; I'm including an Application Note which talks about synchronization of multiple DAQ tasks I think will be helpful for you also.
Regards.
Filipe
Attachments:
Advanced_Sync_Techniques_for_DAQ.pdf ‏189 KB

Similar Messages

  • HT204053 i have two accounts and want to download the music from both how do i do that

    i have two itunes accounts and music on both i want to dowload the music from both onto one phone but can't please tell me how to

    Make sure all of the music is on one computer and in one itunes library.  Sync the iphone with that computer/library

  • Hard drive crash...want to restore play counts from ipod.

    My hard drive crashed and obviously I lost all of my iTunes library stuff.  I have all of my song files on an external hard drive so that is not the issue.  What I want is to restore my library including play counts and all of that.  My ipod touch is still synced to the library that died so I was wondering if anyone knew a method to restore play count and other relating counters directly from the ipod.

    Restore your library from the backup you keep of your media and other important files.
    You do have a backup, correct?
    You iPod really doesn't keep the play count, it offloads that information whenever you sync to iTunes.

  • How to trigger event 0733 from event 0020 using information retrieve.

    Hi Guru's
    I am trying to create link between two event:
    FKK_SAMPLE_0020
    and
    FKK_SAMPLE_0733
    FKK_SAMPLE_0020 u2013 This module will be triggered when a clearing document is posted into the system. It must be customized to identify documents cleared.
    FKK_SAMPLE_0733 u2013 This module will be used to check and update the correspondence tables
    With information retrieved from event 0020 can any one please help ASAP.

    Hi
      1st create ZFKK_SAMPLE_0020 and write the logic in it for your requirement. next in ZFKK_SAMPLE_0073 use the FM BAPI_CTRACDOCUMENT_GETDETAIL pass the document no you will get all the details of doc no then in your fm update or cleare the table using std FM.
    FUNCTION ZFKK_SAMPLE_0299.
    *"*"LOCAL INTERFACE:
    *"  IMPORTING
    *"     REFERENCE(I_KEYR1) TYPE  KEYR1_KK
    *"     REFERENCE(I_SUCCESS) TYPE  CHAR1
    *"  EXPORTING
    *"     REFERENCE(RETURN) TYPE  BAPIRET2
    INCLUDE <CNTAIN>.
      TYPES: BEGIN OF TY_DETAILS,
               OPBEL TYPE OPBEL_KK,
               CHCKN TYPE CHCKN_KK,
               BKREF TYPE BKREF,
               BETRZ LIKE DFKKZP-BETRZ,
               WAERS TYPE WAERS,
               BANKL TYPE BANKL_KK,
               END OF TY_DETAILS.
      TYPES : BEGIN OF TY_FINAL,
              OPBEL TYPE OPBEL_KK,
              HVORG TYPE HVORG_KK,
              TVORG TYPE TVORG_KK,
              VKONT TYPE VKONT_KK,
              VKBEZ TYPE VKBEZ_KK,
              BLDAT TYPE BLDAT,
              END OF TY_FINAL.
      TYPES : BEGIN OF TY_USERS,
              USER  TYPE SYSID,
              END OF TY_USERS.
      TYPES: BEGIN OF  TY_ZCABLMTST,
             HVORG TYPE HVORG_KK,
             TVORG TYPE TVORG_KK,
             END OF TY_ZCABLMTST.
      TYPES: BEGIN OF  TY_DFKKRH.
             INCLUDE TYPE DFKKRH .
      TYPES: END OF TY_DFKKRH.
      TYPES: BEGIN OF  TY_FKKOP.
             INCLUDE TYPE FKKOP .
      TYPES: END OF TY_FKKOP.
      TYPES: BEGIN OF  TY_RLBEL,
             RLBEL TYPE DFKKRH-RLBEL.
      TYPES: END OF TY_RLBEL.
      TYPES : BEGIN OF TY_EMAILID,
              USRID_LONG TYPE COMM_ID_LONG,
              END OF TY_EMAILID.
      TYPES : BEGIN OF TY_PERNR,
              PERNR TYPE PERSNO,
              END OF TY_PERNR.
      TYPES : BEGIN OF TY_SOMLRECI1.
              INCLUDE TYPE SOMLRECI1.
      TYPES : END OF TY_SOMLRECI1.

  • Music on two computers - really want to sync or download from both, but how

    Like many people, I have a computer at work with much music on it, and a computer at home with even more music on it. I use iTunes on both. I recently bought an iPhone 3G and synced it with my work computer which has my email and schedule etc. Also synced iTunes. Now at home, it says it will erase everything if I sync up iTunes. Even when I check manual downloading, and click "apply" it says it will erase the music library in the phone if I continue. This makes no sense at all, since much of the universe now has separate computers at work and home.
    How do I solve this dual syncing problem? Thanks!

    You can always use a disk or portable drive to transfer music between PCs and import into one of your iTunes libraries. Then sync music with that one computer.

  • Getting Count from Sheet1 based on criteria Possibly use of COUNTIF

    I have a workbook with two sheets.
    Sheet1 has the data and Sheet2 is a summary sheet I am able to use CountIF to pull the car count based on model using =COUNTIF(Inventory!B:B,"NIssan" (col C sheet2). My challenge is populating col D, ColE, ColF and ColG. Hope someone can help me
    with the correct fomula for these.

    I'd create a helper column, for example in column Z on the Inventory sheet.
    In Inventory!Z2: =(E2=G2)
    Fill down to the end of the data.
    On the Summary sheet:
    In C2: =COUNTIF(Inventory!B:B,B2)
    In D2: =COUNTIFS(Inventory!B:B,B2,Inventory!Z:Z,TRUE)
    In E2: =COUNTIFS(Inventory!B:B,B2,Inventory!Z:Z,FALSE)
    In F2: =COUNTIFS(Inventory!B:B,B2,Inventory!H:H,"CA")
    In G2: =COUNTIFS(Inventory!B:B,B2,Inventory!H:H,"WA")
    Select C2:G2 and fill down as far as needed.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Microsoft Dynamics AX: Trigger approval workflow from an external software (Mobile app) using a web service, WCF or any other?

    We're trying to setup an external service to hook into AX for approving POs, and expenses. This would be through a REST call coming in.
    Could someone please guide us to a documentation or what we could look up to get some information on this?

    To clarify, at high level we're trying to achieve a business process as follows:
    - user is able to retrieve the status of POs assigned to him, pending approvals
    - user is then able to approve or reject the PO
    - the user action then triggers the respective workflow in AX and follows the escalation / rejection etc process as been configured in AX.
    - user is shown new status of PO (which might not be assigned to him)
    We're trying to investigate how we can call upon the approval / reject workflow external to AX

  • Buffered event counting. Why can't I explicitly sequence generating the Sample Clock Pulse and reading the counters?

    At irregular occasions I need to grab counts from several counters, and buffering the counts must be done simultaneously for all counters. I'm modeling my approach after zone.ni.com/devzone/cda/tut/p/id/5404 which someone kindly pointed out in an earlier thread. However, that example only uses one counter, and you can't test the synchronization with only one counter, so I am using two counters configured the same way, and they're wired to a single benchtop signal generator (for example at 300 kHz).
    What I want to do, I can test in a loop with a somewhat random wait in it. I want to drive a hardware digital output line high for a few ms and then low again. The hardware line is physically connected to terminals for my timing vi's Sample Clock Source and so will cause them to buffer their counts for later reading. After I pulse this line, when I know new good buffered counts await me, I want to read both my counters. If their bufferings are simultaneous, then each counter will have counted the same number of additional counts since the last loop iteration, which I can check by subtracting the last value sitting in a shift register and then subtracting the two "additional counts" values and displaying this difference as "Diff". It should always be 0, or occasionally +1 followed immediately by -1, or else the reverse, because buffering and a count could happen practically at the same moment.
    When I do this using a flat sequence to control the relative timing of these steps, so the read happens after the pulse, the counters often time out and everything dies. The lengths of time before, during, and after the pulse, and the timeout value for the read vi, and the size of the buffer and various other things, don't seem to change this, even if I make things so long I could do the counting myself holding a clipboard as my buffer. I've attached AfterPulse.vi to illustrate this. If I get 3 or 10 or so iterations before it dies, I observe Diff = 0; at least that much is good.
    When I use two flat sequences running in parallel inside my test loop, one to control the pulse timing, and the other to read the counters and do things with their results, it seems to work. In fact, Diff is always 0 or very occasionally the +/- 1 sequence. But in this case there is nothing controlling the relative timing such that the counters only get read after the pulse fires, though the results seem to show that this is true. I think the reads should be indeterminate with respect to the pulses, which would be unreliable. I don't know why it's working and can't expect it to work in other environments, can I? Moreover, if I set some of the pulse timing numbers to 1 or 2 or 5 ms, timeouts start happening again, too. So I think I have a workaround that I don't understand, shouldn't work, and shouldn't be trusted. See SeparateSequence.vi for this one.
    I also tried other versions of the well-defined, single sequence vi, moving the counter reads to different sequence frames so that they occur with the Sample Clock Source's rising edge, or while it is high, or with the falling edge, and they also often time out. I'll post these if anyone likes but can't post now due to the attachment limit.
    Here's an odd, unexpected observation: I have to sequence the reads of the counters to occur before I use the results I read, or else many of the cycles of this combine a new count from one counter with the one-back count from the other counter, and Diff takes on values like the number of counts in a loop. I though the dataflow principle would dictate that current values would get used, but apparently not so. Sequencing the calculations to happen after the reads fixes this. Any idea why?
    So, why am I not succeeding in taking proper control of the sequence of these events?
    Thanks!!!
    Attachments:
    AfterPulse.vi ‏51 KB
    InSeparateSequence.vi ‏49 KB

    Kevin, thanks for all the work.
    >Have you run with the little execution highlighting lightbulb on? -Yes. In versions of this where there is no enforced timing between the counter and the digital line, and there's a delay inserted before the digital line, it works. There are nearly simultaneous starts on two tracks. Execution proceeds directly along the task wire to the counter. Meanwhile, the execution along the task wire to the digital high gets delayed. Then, when the digital high fires, the counter completes its task, and execution proceeds downstream from the counter. Note, I do have to set the timeout on the counter longer, because the vi runs so slowly when it's painting its progress along the wires. If there is any timing relationship enforced between the counter and the digital transition, it doesn't work. It appears to me that to read a counter, you have to ask it for a result, then drive the line high, and then receive the result, and execution inside the counter has to be ongoing during the rising line edge.
    >from what I remember, there isn't much to it.  There really aren't many candidate places for trouble.  A pulse is generated with DIO, then a single sample is read from each counter.  -Yup, you got it. This should be trivial.
    >A timeout means either that the pulse isn't generated or that the counter tasks don't receive it. - Or it could mean that the counter task must be in the middle of executing when the rising edge of the pulse arrives. Certainly the highlighted execution indicates that. Making a broken vi run by cutting the error wires that sequence the counter read relative to the pulse also seems to support that.
    >Have you verified that the digital pulse happens using a scope? -Verified in some versions by running another loop watching a digital input, and lighting an indicator, or recording how many times the line goes high, etc. Also, in your vi, with highlighting, if I delete the error wire from the last digital output to the first counter to allow parallel execution, I see the counter execution start before the rising edge, and complete when the line high vi executes. Also, if I use separate loops to drive the line high and to read the counter, it works (see TwoLoops.vi or see the screenshot of the block diagram attached below so you don't need a LV box). I could go sign out a scope, but think it's obvious the line is pulsing given that all these things work.
    >Wait!  I think that's it!  If I recall correctly, you're generating the digital pulse on port0/line0...  On a 6259, the lines of port 0 are only for correlated DIO and do not map to PFI. -But I'm not using internal connections, I actually physically wired P0L1 (pin 66) to PFI0 (pin 73). It was port0/line1, by the way. And when running some of these vi's, I also physically jumper this connection to port0/line2 as an analog input to watch it. And, again, the pulse does cause the counter to operate, so it clearly connects - it just doesn't operate the way I think it is described operating.
    For what it's worth, there's another mystery. Some of the docs seem to say that the pulse has to be applied to the counter gate terminal, rather than to the line associated with the sample clock source on the timing vi. I have tried combinations of counter gate and or sample clock source and concluded it seems like the sample clock source is the terminal that matters, and it's what I'm using lately, but for example the document I cited, "Buffered Event Counting", from last September, says "It uses both the source and gate of a counter for its operation. The active edges on the gate of a counter is used to latch the current count register value in a hardware register which is then transferred via Direct Memory Access...". I may go a round of trying those combinations with the latest vi's we've discussed.
    Attachments:
    NestedSequences.png ‏26 KB

  • Adding count from two select statements

    Hi,
    How to add counts from two select statements in a single SQL statement.
    For ex: I have
    SELECT COUNT(DISTINCT COL1) FROM table1
    and
    SELECT COUNT(DISTINCT COL2) FROM table2.
    I want to add the counts from these two sqls in a single select query. How to do this.
    Thanks & Regards,
    Sunil.

    select ((SELECT COUNT(DISTINCT COL1) FROM table1) + (SELECT COUNT(DISTINCT COL2) FROM table2)) as "total" from dual;
    regards,

  • Yesterday, many of my calendar events disappeared from my iPhone and my computer

    Yesterday, several of my calendar events disappeared from both my Iphone and my computer.  Any suggestions on how to get them back?

    Is the setting for iCloud contacts turned on?

  • HT4623 Here's the thing guys. I want to update my iphone 5 from 6.1.4 to ios7 using OTA. I have backed up on icloud. I just want to know that if i update then will all the music stored on my iphone will stay there after update or do i hav to sync it usin

    I want to update my iphone from 6.1.4 to ios7 using OTA but i'm not sure if my content will stay in the phone after the update especially the music cuz rest of it is backed up on icloud.

    Updating is not suppose to wipe any media or apps.
    It may happen because sometimes things just go wrong.
    I would back everything up first.

  • I want to read 0 count in buffered event counting mode

    Hi, I am using the NI6602 board with DAQmx ANSI C. My aplication uses six counters in buffered event counting mode, 0 events is a valid value for me, but when the gate signal arrives the 0 value isn't written to the buffer. Instead the function DAQmxCreateLinScale() returns a timeout error. How can I solve it?
    Thanks.

    alegrecd,
    I'm afraid I don't know the syntax for doing this from C with explicit DAQmx calls. But I think you need to look into turning ON the property called "duplicate count prevention." The name isn't the most descriptive of the actual behavior.
    Normally the property is OFF. In such case, the counter expects the Source signal (which increments the internal count register) to be faster than the Gate (or "sampling clock") signal. If no Source edges are seen between successive Gate edges, the count value is NOT put into the data acq buffer.
    If you turn the property ON, then the count values WILL be written to the buffer, even if no source edges have occurred between successive Gate edges.
    -Kevin P.

  • I want to Facetime my Ipad from my Iphone but they are both set up with the same Apple id.  Do I need to create a new id for one of them in order to facetime with the other?

    I want to Facetime my Ipad from my Iphone but they are both set up with the same Apple id.  Do I need to create a new id for one of them in order to facetime with the other?

    You should be able to call the iPad using your Apple ID from the iPhone. When calling from iPad use the iPhone's phone number to initiate the call.

  • Lion 10.7.2 On both mac book pro and iMac, both with Lion 10.7.2, obtain repeated iCal event notifications from calendar or address book.  Cannot turn these off.  They repeat several times per session and every time computer is used.  How to diagnose this

    Lion 10.7.2 On both mac book pro and iMac, both with Lion 10.7.2, obtain repeated iCal event notifications from calendar or address book.  Cannot turn these off.  They repeat several times per session and every time computer is used.  How to diagnose this?

    First, uninstall "SuperTV" (whatever that is) according to the developer's instructions. It isn't working and it's filling the log with noise.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Enter "BOOT_TIME" (without the quotes) in the search box. Note the timestamps of those log messages, which refer to the times when the system was booted. Now clear the search box and scroll back in the log to the last boot time when you had the problem. Post the messages logged before the boot, while the system was unresponsive or was failing to shut down. Please include the BOOT_TIME message at the end of the log extract.
    Post the log text, please, not a screenshot. If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message. When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    PLEASE DO NOT INDISCRIMINATELY DUMP THOUSANDS OF LINES FROM THE LOG INTO A MESSAGE. If you do that, I will not respond.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.
    Step 2
    Still in Console, look under System Diagnostic Reports for crash or panic logs, and post the most recent one, if any. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

  • I have an iPhone sync'd to my iTunes. My boyfriend has his own iPhone with his iTunes account set up within it. We want to sync his iPhone to my iTunes account on the PC but we wnt to retain everything from both phones and the iTunes account. Help?!?!

    I have an iPhone sync'd to my iTunes. My boyfriend has his own iPhone with his iTunes account set up within it. We want to sync his iPhone to my iTunes account on the PC but we want to retain everything from both phones and the iTunes account. Is this possible? Help!

    zoe1713 wrote:
    Is this possible?
    No. If you connect his phone to your iTunes account/computer, ALL iTunes content on his phone will be erased. By design, iPhone syncs or manually manages iTunes content with ONE computer at a time.

Maybe you are looking for

  • Routing error for HTTP to JDBC scenarion

    Getting following error: please advise. <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!--  Technical Routing   --> - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:must

  • Possible Calendar Bug

    Hi, I've been trying to create a calendar, concatenating (sp?) two fields together in the query for the display field. Doing so, it was creating the region without error (I guess my contatenation was working), but in my zeal for playing around, I for

  • How do I downlaod Gmail attachments with FDM?

    1. FDM downloads even if plug-in is disabled. I do not see a way to use the browser's downloader rather than FDM. 2. When downloading a Gmail attachment a "service login" is downloaded and not the doc. I am not sure why this is happening - at some po

  • Acobe Acrobat 11 crashes everytime I use the commentary function.

    My Acobe Acrobat 11 crashes everytime I use the commentary function. Both when looking at and adding comments. This happens with all documents. I just updated my mac to 10.9. Nothing changed. I have tried deleting some fonts. Arial and Tahoma. But no

  • Database Mail Target smtp server refused connection.

    Hi.. I'm working with a dev box that I'm configuring Database Mail from. I've run through the setup from https://msdn.microsoft.com/en-us/library/hh245116.aspx and http://www.codeproject.com/Articles/485124/Configuring-Database-Mail-in-SQL-Server I h