This is regarding counting with microsecon​d accuracy and furthur simultaneo​us AO and counter usage

hi, i am in seruios trouble. I am doing photon counting using a PMT. so the TTL pulses come at random and the i canhave 1e6pulses/sec tp 1pulse per sec kind of TTL pulses. I need to count them with an accuracy of [ time bins ] 50 microseconds. I am not able to do this with all the possible examples i have seen on labview site as well as that which come with labview package. everything shows some or other error. I have been using labview for analog I/O for about 2 years and have done the most i could understnad but to of no use. does anyone have a sample program ? now the bogger problem is that while counting these TTL pulses i ALSO have to do an analog output [ say a triang
ular wave on AO channel ]. I was wondering that if i just add the AO vi's in the counting programme will they interfere with each other ? [ I have a very crude counting program which atleast gives me millisec accuracy limited by for-while loops ]or i shd trigger start them together [ counting and AO] and some how make sure that they do not interfere with eacht other. If anyone could help me with either or both program..i'll be very grateful.
gvs

A simple event counting example can count TTL pulses for you pretty easily. If you have an E-Series board, the DAQ-STC counter/timer uses a 20 MHz timebase, so your pulses must be separated by at least 50 nanoseconds. The 660x family of counter/timer boards use an 80 MHz timebase giving you a tighter window of 12.5 nanoseconds.
For your second problem, it's best to use dataflow and enforce a well-defined execution sequence. In other words, wire the error clusters such that AO always executes after (or before) your counter operation.
In fact, you must enforce serial execution of DAQ VIs to avoid blocking if you are using Traditional NI-DAQ. If you are using the new DAQmx, DAQ operations are supposedly non-blocking in many scenarios. I have not tried to ve
rify that for myself so be cautious if you plan to run AO and counter code in parallel.

Similar Messages

  • HT1365 Hi can anyone help with this issue regarding my wireless magic mouse? When im on google chrome and scrolling down the page i always have youtube running in the background but the audio cuts/spits/pops can anyone help me with this?

    Hi can anyone help with this issue regarding my wireless magic mouse? When im on google chrome and scrolling down the page i always have youtube running in the background but the audio cuts/spits/pops can anyone help me with this?

    The figures you mention only make sense on your intranet.  Are you still using the same wireless router.  The verizon one is somewhat limited as far as max wireless-n performace.  For one thing it only has a 2.4 radio.   I like many people who wanted wireless-n performance before they even added a wireless-n gigabit router, have my own handling my wireless-n network.

  • HT4061 How do I restore my iphone 4? Whilst updating to new software my computer crashed. This has left me with a phone that won't respond at all and itunes says 'restore your phone'. I can't press anything without getting a picture of a usb. not useful.

    My computer crashed while updating my iphone 4.
    My phone now will not respond other than a USB symbol to itunes.
    When I plug into itunes it says 'reset your phone'.
    I've tried holding the on/off and home button together, nothing.
    On another note, it isn't possible to schedule into a shop in London until a week today. There is something seriously wrong with this picture.
    Any help would be awesome.
    Thanks

    1) ensure iTunes is authorized for your iTunes store account(s)
    2) connect your device and right-click or control-click it in the iTunes Source list, then choose transfer purchases from the shortcut menu that appears.
    3) sync the device
    iTunes will wipe the iPhone but, since you transferred your purchases in the previous step, your content will be in your library and you can re-populate the iPhone with it.
    above works for purchases from the iTunes store. for everything else, check out this post by Zevoneer.

  • HT1386 How many different computers can I sync my iPod with?  My laptop crashed and was completely wiped clean and this was the machine that my iPod synced with so I don't know if it will be counted as a "new" computer.

    How many different computers can I sync my iPod with?  My laptop crashed and was completely wiped clean and this was the machine that my iPod synced with so I don't know if it will be counted as a "new" computer when I sync my iPod.

    You can sync with onee at a time. Syncing to another will erase the current content.
    Copy everything from your backup copy of your old computer to your new one.

  • Morning. I download podcast on my iMac and listen to them on my iPhone. Since last week the iPhone plays the podcast back slower than recorded and with a echo. How can I solve this?  Regards,  Menno

    morning. I download podcast on my iMac and listen to them on my iPhone. Since last week the iPhone plays the podcast back slower than recorded and with a echo. How can I solve this?
    Regards,
    Menno

    Hello,
    If you're in a country where there's an apple shop (unfortunately not mine), go check it and ask the employee about it: he's gonna check your Iphone on a "device"
    I've got an iphone 5 and it's working very well with me but I have to admit that its battery lasts (slower) than my Ipad 2.
    Still i can help with some tips that may improve your iohone's battery by an hour in addition (hopefully):
    - close all apps by multitasking....
    - do NOT keep the brightness to the max
    Believe me you're gonna regret changing your phone to a samsung
    Hope i've helped and sorry for my bad english (has english as 3rd language)

  • I have a comment.  I am very upset with Photoshop and all your tutorials regarding the quick select tool.  I have watched many tutorials and read instructions until I am blue in the face.  This tool does not work.  It is all over the place and all of your

    I have a comment.  I am very upset with Photoshop and all your tutorials regarding the quick select tool.  I have watched many tutorials and read instructions until I am blue in the face.  This tool does not work.  It is all over the place and all of your tutorials make it look so simple.  How can you advertise this as a viable tool when it just doesn't work?

    It is all over the place and all of your tutorials make it look so simple.
    This is a user to user Forum, so you are not really addressing Adobe here, even though some Adobe employees thankfully have been dropping by.
    How can you advertise this as a viable tool when it just doesn't work?
    Concluding something does not work because you fail at using it is not necessarily always justified.
    The Quick Selection Tool certainly has limitations, but your post seems to be more about venting than trouble-shooting – otherwise you might have posted an image where you failed to get an expected result.

  • What is HEAD COUNT with regards to HR Data

    Hi Experts
    Can you please define HEAD COUNT with regards to the HR Data.
    Is it a Count of Employees
    Please update me thanks

    HI
    In HR, the head count term refers to no of employees only...there are some standard reports available for analysing the head count for an org.
    Hope it helps
    Darshan

  • How can I implement a Digital I/O counter with a maximum source frequency of 80 MHz (like 6602 board) using CompactRIO?

    How can I implement a Digital I/O counter with a maximum source frequency of 80 MHz (like 6602 board) using CompactRIO? It appears as if the Digital I/O modules for CompactRIO are much slower than this.
    Thank you,
    --Ray

    Hi Ray,
    The highest frequency input we offer for C Series modules is 20 MHz if you are doing LVTTL and 10 MHz for 5 V TTL.  These modules are the 9402 and 9401, respectively.  Unfortunately, there is no 80 MHz input on this form-factor.
    Regards,
    Chris E.
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • This is regarding CBMA in SAP PI 7.3.1. I have set up the alert mail using default java mail client.I do receive the alerts via mail. But my requirement is to direct all the mails to Business workplace inbox in ECC.

    This is regarding CBMA in single stack SAP PI 7.3.1. I have set up the alert mail using default java mail client.I do receive the alerts via mail. But my requirement is to direct all the alert mails to Business workplace inbox in ECC.
    So I need to set up PI to redirect mails to ECC Business workplace user inbox (sbwp). From here rules are set up & routed per distribution list.
    Please guide me how I can achieve this requirement.

    Hi,
    yes, it is a little bit different. This is the issue.....  
    But I am not sure if your links will help:
    1) /people/william.li/blog/2008/02/13/sap-pi-71-mapping-enhancements-series-using-graphical-variable
    is about a different solution. I do not need to count the number of lines of the source message.
    And the second variable is about concat line by line from unbound node to unbound node.
    My issue is:
    Souce:
    Message line (0...unbound) ! ! ! ! ! ! ! !
    .    ResultLine   (1..1)
    Mapping:
    =>   ResultLine1
           ResultLine2
           ResultLine........          => into UDF to an element  (1..1) in one mapping operation.
    So that all "ResultLine"s are included.
    The result is explained in the given link for Mail attachment with UDF.
    So I am not sure how to use this thread for my issue.
    In the comments of that blog Christoph Gerber writes that the new variable feature can only handle single values.
    So it is not suitable for my purposes as I have a list of values here that needs to be moved into the target message field.
    2) http://wiki.sdn.sap.com/wiki/display/Java/UsingEditJavaSectioninMessageMapping
    shows where to find the button "Java section" which is not available here in 7.1
    3) /people/sap.user72/blog/2005/10/01/xi-new-features-in-sp14
    too is about the nice little button for Java Section that is no longer existing on PI 7.1 screen for mappings.  
    So my issue is: How to replace the Java section function with global variables in PI 7.1?
    Best regards
    Dirk

  • Using timer/counter with PCI-6221/USB-6210 to control timed-loop VI

    Dear all,
    I need to ask about two devices and one of their functionalities, PCI-6221 and USB-6210. For our NI-based system, we need to control some timings in a Timed-Loop vi, for that currently we are using PCI-6221 and we give external TTL signal (at 1 kHz) to it,
    recenntly we need to make some changes and for that we found USB 6210 DAQ to be more suitable, but we need to clear ourselves on some specific things.
    Can the counter/timers functions available in the either PCI 6221 or USB 6210 can be used to control the Timed-loop VI by giving external clock or by using their own internal clock source?
    Although we are using external clock with the PCI 6221 but we want to know about the usage of their internal clock, also are controlling timed-loop also possible for USB-6210
    Also... What if we use the RTOS, are they still able to control the timed-loop VI  without giving any 'EXTERNAL CLOCK' and using the internal clock sources of the DAQs
    Waiting for reply,
    Bests,
    RaJaf
    Solved!
    Go to Solution.

    Ben,
    I having read previous email which I send earlier with general overview, we discussed in more detail within our team and I am giviing the specific answers.
    Please check in RED the most recent answers. Blue are the questions/suggestions by your side.
    1.    Using Internal hardware clock of PCI-6221 would enable us get rid of external clock, but how to divert the internal hardware clock to the current settings. Any idea  (can you provide us with some reference manul for otherwise). I mean is there some flag-bit etc. or VI
    2.       Is it also meant that with the installation of RTOS the timed-loop can directly get the timing source from the internal hardware clock PCI-6221? --- How???
    3.       In order to make desktop to work as RT system, what is the hardware (motherboard, processor, etc..) requirement? What are the LabVIEW modules (specific name) that needed to be installed? Our platform is LabVIEW 8.6. (Currently we have windows-7 with i7 core processor)
    What kind of application are you intending for this system? ---- high-speed laser scanning system.
    Are you most concerned about accuracy, speed, or responsiveness? To control the laser mirror scanner to move at 1 kHz or 2 kHz speed. On the other hands, using PCI-5105 (128 MB memory) as a DAQ for real-time/on-the-fly data processing.
    Bests,
    RAJAF

  • Start a counter with SOURCE, stop with GATE?

    I would like to START a DAQ-STC counter using the rising edge of the SOURCE
    input, and stop the counter with the rising edge of the GATE input. So I
    have two seperate digital lines I want to use to start and stop. Any pointers
    on how to do this? (Please respond via email also)
    Thanks,
    J. Apple

    Hi,
    Thanks for the reply, GarPar. I think I have solved the triggerring a counter with another with your and Stefan&Kekin's help. Now, I can generate two counter outputs (chip select and clock) as I wanted but I couldn't read the National Semiconductor differential sensor board output at the same time. I have attached the Labview I have written and scope screenshot which shows the chip select(signal 1), clock(sig 2) and output(sig 3). As I told previously, first I generate Chip select signal(1), then at falling edge I generate clock signal(it keeps going on). Finally, I try to read starting the output at falling edge of Chip select counter using clock counter output as the clock source for my read Timing.vi. BTW, Labview  gives an -200560 error after the Read.vi which is an timeout error although I don't need any external connection since I am taking both trigger and clock output internally. And I checked that I connect the output pin to the line 6 of Ni 9401 (many times )
    Error -200560 occurred at an unidentified location
    Possible reason(s):
    Wait Until Done did not indicate that the task was done within the specified timeout.
    Increase the timeout, check the program, and make sure connections for external timing and triggering are in place.
    Can you see any apparent problems in my labview program? Finally, I am using
    o ctr2 as Chip Select counter,
    o ctr0 as Clock 
    ctr2InternalOutput as clock trigger
    o line 6 as digital input
    ctr0InternalOutput as read clock
    ctr2InternalOuput as read trigger 
    which are shown in my Labview program. Thanks for your help in advance.
    Regards,
    Ouz
    National Semiconductor (Intern)
    Attachments:
    Ni9401_triggeringclockcontinuously.vi ‏33 KB
    ni9401_screenshot.pdf ‏61 KB

  • How to use count with decode

    I want to count several categories(say a b c d) under same count and some catogories under another count ..there I need to use count with decode pls let me know the syntacs to write my query..this is ergent
    regards
    Buddhike

    Something like this ?
    select count(decode(your_column,'a',1)) as "a",
           count(decode(your_column,'b',1)) as "b",
           count(decode(your_column,'c',1)) as "c",
           count(decode(your_column,'d',1)) as "d"
    from your_table;But maybe you can give us more details about what do you expected ?
    Nicolas.

  • Max, Min and Count with Group By

    Hello,
    i want the max, min and count of a table, which is grouped by a column
    I need a combination of these two selects:
    select
         max(COUNTRY_S) MAXVALUE,
         min(COUNTRY_S) MINVALUE
    from
         tab_Country
    select
         count(*)
    from
         (select COUNTRY_TXT from tab_Country group by COUNTRY_TXT) ;
    The result should be one row with the max and min value of the table and with the count of the grouped by table, not the max and min of each group! - i hope you understand my question?
    Is this possible in one SQL-select?
    Thank you very much
    Best regards
    Heidi

    Hi, Heidi,
    HeidiWeber wrote:
    Hello,
    i want the max, min and count of a table, which is grouped by a column
    I need a combination of these two selects:
    select 
         max(COUNTRY_S) MAXVALUE, 
         min(COUNTRY_S) MINVALUE 
    from 
         tab_Country 
    select 
         count(*) 
    from 
         (select COUNTRY_TXT from tab_Country group by COUNTRY_TXT) ; 
    The result should be one row with the max and min value of the table and with the count of the grouped by table, not the max and min of each group! - i hope you understand my question?
    Is this possible in one SQL-select?
    Thank you very much
    Best regards
    Heidi
    It's not clear what you want.  Perhaps
    SELECT  MAX (country_s)               AS max_country_s
    ,       MIN (country_s)               AS min_country_s
    ,       COUNT (DISTINCT country_txt)  AS count_country_txt
    FROM    tab_country
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • Count(*) with nested query

    Hi,
    I have a question about the count(*) with nested query.
    I have a table T1 with these columns:
    C1 number
    C2 number
    C3 number
    C4 number
    C5 number
    (The type of each column is not relevant for the example.)
    This query:
    select C1, C2, C3, C4
    from T1
    group by C1, C2
    it's not correct becausa C3 and C4 are not columns specified in the GROUP BY expression.
    If if run this query:
    select count(*)
    from (select C1, C2, C3, C4
    from T1
    group by C1, C2)
    I haven't an error message (the result is correctly the number of records).
    Why?
    Thanks.
    Best regards,
    Luca

    Because you are just selecting count(*) and none of the columns from the subquery, Oracle is optimising it by ignoring the selected columns and just running the sub query with the group by columns. I know it seems odd, but if you take a basic example:
    SQL> ed
    Wrote file afiedt.buf
      1  select count(*)
      2  from (select empno, sal, mgr, deptno
      3  from emp
      4* group by deptno)
    SQL> /
      COUNT(*)
             3... all columns but deptno are ignored
    ... but if you include one of the other columns, even if you group by that column...
    SQL> ed
    Wrote file afiedt.buf
      1  select count(*), empno
      2  from (select empno, sal, mgr, deptno
      3  from emp
      4  group by deptno)
      5* group by empno
    SQL> /
    group by empno
    ERROR at line 5:
    ORA-00979: not a GROUP BY expression
    SQL>... the error returns, because you're forcing oracle to include the column in the subquery.

  • Physical Inventory Count with Batches / Inventory Tracking+Posting

    Hi,
    There does not seem to be any way to record a Physical Inventory count with Batch managed items.
    Scenario-1: In case 1.8 kg of batch number 222 is counted during Physical Count. B1 has Batch number 111 with quantity 2.5kg. B1 assumes that a lesser quantity of existing batch 111 was counted and the batch SELECTION screen appears.
    Scenario-2: Similarly, if 3 kg of batch number 222 is counted during Physical Count and Batch number 111 exists on Business One with quantity 2.5kg, then B1 assumes that a new batch was found and the batch CREATION screen appears.
    Scenario-3: If 2.5 kg of batch number 222 is counted during Physical Count - with Batch number 111 on Business One with quantity 2.5kg, then B1 assumes a zero "difference" in posting window. Wrong batch removal and new batch addition cannot be done - the batch selection/creation screen does not pop up with CTRL+TAB.
    A Physical inventory count sheet with hundreds of rows with all 3 above scenarios in the rows is normally supposed to be entered into any system.
    An easy way to do this should exist on SAP B1 but does not appear to exist right now.
    Thanks,
    Ajay Audich
    Message# 551219/2009
    Dear Ajay Audich,
    Thanks for your message and screenshots. In current version of SAP Business One, the Inventory Posting functionality does not offer input at the batch level. The system behaves in the following way:
    If the Difference number is positive, you will see a Define Bathes
    window where you can assign the item quantity to the relevant batches.
    If the Difference number is negative, you will see a Batch Number
    Selection widow where you can issue item from the relevant batch.
    So it isnot possible to enter the count for batch managed items per batch. The possible workaround is after Inventory Posting, use Goods Issue and Receipt to manually adjust the Batch quantity.
    Please kindly have a try. If the feature is important for customer
    business process, please kindly refer to attached Note 1028874 for
    further action.
    Sorry for any inconvenience, we appreciate your understanding.
    Kind regards,
    Canna Mu
    SAP Business One Product Support
    Edited by: Ajay Audich on Jun 8, 2009 1:48 PM

    Yes - it is important for the customer & will look at further steps as advised by you.
    Thanks for your reply.

Maybe you are looking for