Read no. of pulse count with fixed time interval

Hi,
I am try to read no of pulse count ( Pulse period = 500ms, On time = 100msec and Off time = 400msec). Between pulses there is a fixed time interval of 2seconds. I am using NI USB DAQ 6341. Can anybody help me regarding this? 

Thanks for replying. I have gone through  that example, the given example are only increment count when pulese are detected.
In my case, i want to count the no. of pulses between the time interval of 2sec. e.g. Suppose my device generate 5 no. of pulses and after every 5 pulses their is 2sec time interval, here i need to read only 5 pulses not the continuous count. And no. of pulses are generated by device can be vary but the time interval between those pulses are fixed. Could you give me suggession regarding this?

Similar Messages

  • Can pulse measurement.vi measures 2M points with 10ns time interval?

    Hi,
    I used pulse measurement.vi to measure the pulse duration of waveforms when the waveforms exceed certain threshold level. The data file has 2 millions data points with 10ns time interval.  But I got error message saying that
    "The waveform did not cross the mid reference level enough time to perform this measurement. Check the signal length, mid reference level, and reference level unit."
    I was wondering if pulse measurement.vi is capable of handling such large file or it was due to my paramenter errors.
    Thank you for your help in advance.

    I realized that I can't really modify the percent level settings or specfication of the pulse measurement.vi. For instance, I changed the percent level setting to peak instead of the default auto select. After running the VI unsuccessfully and I reopened the pulse measurement.vi, I saw the percent level setting was set to auto select again instead of peak method. I have attached the image of the block digram and a very small part of the waveform data. I hope you can open both.
    Thank you.
    Attachments:
    pulse measurement.doc ‏45 KB
    example.txt ‏2 KB

  • Some website opens automatically in a new tab with some time interval repeatedly

    Sometimes a specific website ie. " http://www.yourtest-india.com/cgi-bin/wingame.pl?partner_pk=8&wingame_pk=40&freetest_pk=10&SourceId=355&CreativeId=23885235&LineItemId=8914668&PublisherId=309257&SectionId=8433399&sub_id_postback=00005de1e959adfd24a71a545c7258e4a8e59 " opens repeatedly in new tab with some time interval and even if I close the new tab that has opened again this new tab opens after same time interval.
    This happens only when the firefox window is active or open. When the window is minimized no new tabs open. But once I switch to firefox new tab opens immediately with the same page as mentioned above.

    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • Time dependent data load to BW using Fixed Time Interval selection

    Hi,
    I'm facing a problem in extracting time-dependent master data to BW. I would really appreciate if anyone can help in this regard.
    We have a table in R/3 which has time-dependent data. For example, for a single OBJID we could have multiple records with different BEGDA/ENDDA and different attributes. When we try to load this data into BW InfoObject, we see a time-dependent data selection in update tab of infopackage. We need to select BEGDA/ENDDA in datasource since otherwise during loads we would get a "DUPLICATE RECORDS" load error in BW.
    The problem is when we enter a Fixed-time interval Start Data and End Date in the InfoPackage, only the records with that StartDate and EndDate are loaded. Ideally I would want to see all the records whose BEGDA/ENDDA falls in the range of StartDate and EndDate.
    I tried modifying the ROOSFIELD table for the data source. I made the BEGDA SELOPTS as GE(16) and ENNDA SELOPTS as LE(64). But still it doesn't seem to work. I checked if the change to ROOSFIELD has any affect in RSA3. Unless we give a range for BEGDA it doesn't seem to behave as expected. Could someone let me know how I can load all records to BW whose BEGDA/ENDDA fall in the range of StarteDate and EndDate.
    Thanks,
    Anil.

    Anil,
    If you are using a custom dataSource, make sure the dataSource fields for begda and ennda are labeled "datefrom" and "dateto".
    Cheers,
    T-

  • Two signals on two outputs with specific time interval

    I cant manage with following:
    Have NI-6251 card. Trying to sent two step-signals on two outputs with
    specific time interval, say 1 to 10 ms with 1us accuracy.
    How can I start?
    Thanks!

    Hi Anonymous,
    What do you mean by step-signals?  Do you mean a signal that steps up the voltage over time, a step function signal that is zero until a certain time then goes to 1, or a pulse train?
    In the meantime you can find examples for getting started in the NI Example Finder by selecting Help » Find Examples
    When that opens you can limit the examples to ones that are compatible with your hardware.  In the bottom left corner select your hardware and check the Limit results to hardware box.
    Browse to Hardware Input and Output » DAQmx » Digital Generation or Generating Digital Pulses.
    Best Regards,
    Bryan H.

  • Fixed time interval selection in Infopackage

    Hi Guys,
    I have a generic data source from PA0315 table that I am using to supply master data 0EMPLOYEE. In the update tab of the infopackage it has a fixed time interval selection with Start Date and End Date. I enter 01.01.1900 to 31.12.9999 so that I can capture the entire data for every load.
    But when ever I enter that selection option it always returns with '0' data. But if I enter specific date ranges it returns with data. But being specific does not help me b/c I want the entire date range.
    Has anybody come across this before and have an idea on a solution to capture all the data.
    Any response will be appreciated.
    K.

    Hi,
    I'm facing a similar problem. I would really appreciate if anyone can help in this regard.
    We have a table in R/3 which has time-dependent data. For example, for a single OBJID we could have multiple records with different BEGDA/ENDDA. When we try to load this data into BW InfoObject, we see a time-dependent data selection in update tab of infopackage. We need to select BEGDA/ENDDA since otherwise during loads we would get a "DUPLICATE RECORDS" load error in BW.
    The problem is when we enter a Fixed-time interval Start Data and End Date in the InfoPackage, only the records with that StartDate and EndDate are loaded. Ideally I would want to see all the records whose BEGDA/ENDDA falls in the range of StartDate and EndDate.
    I tried modifying the ROOSFIELD table for the data source. I made the BEGDA SELOPTS as GE(16) and ENNDA SELOPTS as LE(64). But still it doesn't seem to work. I tried the same in RSA3. Unless we give a range for BEGDA it doesn't seem to behave as expected. Could someone let me know how I can load all records to BW whose BEGDA/ENDDA fall in the range of StarteDate and EndDate.
    Thanks,
    Anil

  • Infopackage time dependant data fixed time interval

    Hi,
    I have issue with infopackage. When I tried to load the master data attribute itu2019s not loading the changed data.When I checked the infopackage it has update tab and in this time dependant data section,it was marked as fixed time interval.The changed data in R/3 actually falls under the interval what was entered in the fixed time interval period.But it was not extracted.
    I found that if we enter the exact specific dates interval in the fixed time interval,it fetches data.But we canu2019t enter each dates interval for all changed data in R/3. It needs to fetch all the data.When I try to remove the fixed time interval,it is not allowing as it is mandatory field.
    Please suggest me how to fetch all the records for time dependant data.I tried other options like routine and variables.But it doesnu2019t work and it is fetching data only if we enter the exact dates interval.
    Regards,
    Ramana

    There is nothing to do with PL/SQL.
    You can refer below links:
    http://www.lc.leidenuniv.nl/awcourse/oracle/server.920/a96524/c12parti.htm
    http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10739/partiti.htm#i1006727

  • Step motor control with a time interval

    Hi all,
    I am trying to control a step motor to move in vertical direction by Labview2010. The specific Labview function blocks are created by the manufacturer of the step motor. Now the axis can move properly but my question is that I want it to move with a time interval. For example, we set the desired position to 10mm and waiting time 1s. When I click on the start button once only the axis moves 1mm and wait 1s. Then axis moves another 1mm and wait 1s. This action will obviously repeat 10 times until the axis reaches 10mm position.
    I will be very thankful if someone could give me some hints.
    Best regards,
    Nicky

    You're welcome
    You should some more to the code so that it's more reliable. There might be some miscalculation between the travel distance and the resolution, i.e. 5mm travel and 2mm resolution will give the forloop 2,5. This should be either 2 or 3. I'm not quite sure how the for loop handles this. I think it will round to nearest. You should anyways check it out. Also avoid using 0mm.
    Good look with your project 
    Regards,
    Even
    Certified LabVIEW Associate Developer
    Automated Test Developer
    Topro AS
    Norway

  • Pulse counting with voltage input

    Im using compact field points  analog I/O (AI-112) to measure the frequnecy of an anamometer.
    Basically the sensor is just a switch that open/closes at a frequency which gives 1 pulse per second (1Hz = 1.25MPH).
    I know the pulse counter I/O would be best for this, but I assume labview with realtime should be able
    to handle this measurment. Im having trouble finding the right VI's to do the job. Any suggestions for
    possible ways to count the pulses/ measure the frequncy would be appreciated.

    Hello cfpboy,
    I have a question about your signal first.  How long does your signal remain changed when a pulse occurs?  Does the signal stay "high" for 1 full second and then go "low" or does it pulse "high" once a second and then immediately return to "low".  If it stays "high", then you could simply poll the input in a LabVIEW Loop set to occur once a second.  You could then store the value in a shift register, and compare the current value to the previous value.  If they are different, then the state has changed, and you could then increment your software counter.  As you are using an analog input module, you will want to convert your voltage level to a "digital state" by checking if it is above or below a specified level.
    One drawback of this approach is long term phase shifting as well as the possibility of reading while in a transition state.  This could potentially throw off your measurements.  As you are using LabVIEW Real Time, you can slightly mitigate some of these problems by utilizing a LabVIEW Timed Loop instead of a normal Loop.
    Thanks,
    Jonathan C
    Staff Application Engineering Specialist | CTD | CLA
    National Instruments

  • Pulse count with a 9401 modules (cDAQ-9172 system)

    I'm trying to do a pulse counting by a 9401 module in a cDAQ-9172 system. I have three 9401 modules . One of them is working as a trigger (start-stop count) and the other two  (in slot 5 and 6) are for counting pulses from the 2 meters. It looks like a simple task but my problem is that I am counting always  3 to up to15 pulses less than my reference counter. everything points out to a task in my program is causing a delay. The question is where or what is causing such a wrong counting
    Attachments:
    COOMET Comparison DN80 short.vi ‏737 KB

    First for triggering with cdaq you must use the 9405 or 9406 (for analog triggering or 9401 for digital triggering) module in slot 5 and 6 - look in following link. Signals are routed with the chassis PFI Lines and only available at Slot 5 and 6.
    http://digital.ni.com/public.nsf/allkb/851828B06A20E01B862571DA0005591A?OpenDocument
    http://digital.ni.com/public.nsf/websearch/EFD808DC883F095186257170005A634D?OpenDocument
    Then the other moduls in other slots can be configured with these pins for triggering. When you wants triggering on both edges you can look in following link:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=248456&requireLogin=False
     Best Regards

  • Sum low pulse width over fixed time period

    Hello,
    I'm using a NI cDAQ-9178 with the NI 9411 DI module.  I'm looking to read a (not very clean) ~100kHz square wave
    signal and sum the low pulse width (1-3us each) over a 5ms period.  The falling transition is relatively clean, but
    the rising transition is a bit slow (0.5-1us).
    Any advice on how to code this?  I've looked at the counter examples for measuring pulse width and semi-periods,
    but the values I get with those examples do not match what I measure with an oscilloscope.
    Thanks,
    Anna Liao

    Hi Anna
    It does not sound like you are receiving any errors, but maybe the suggestion provided in the document I Get Error -10920 When Counting Square Waves without an Adequate Rise Time can help in your application. It sounds like it could explain why your values do not appear correct.
    Milan

  • How to create a counter (with fixed increment) in DME file

    Hi Experts,
    Is there a way to define a counter in one of the Segment/loop of DME (Such as number of invoices), where we have to increment the actual value of the counter reading by a fixed value, say 2. Example, if the counter can print the invoice numbers as 1,2,3, 4,5 etc. then it should rather print X+2 in each case, i.e. 3, 4, 5, 6, 7 and so on.
    Regards
    Harsh

    Hi Amitash,
    Thanks for the response. Sorry I couldn't articulate my question correctly. Let me try to rephrase.
    I have to print all the invoice details related to each payment document, in the DME output. One of the field in the invoice details is a simple counter, which prints a simple sequence number 1 to 5 (for 5 invoices). This counter can go upto any number depending on the number of invoices (1 to n). Now with the help of aggregation functions I am able to generate such a counter. But here is the twist now. Instead of printing 1 to 5, the counter should print 3 to 8. ( i.e. 1 to n, it should be printing 3 to n+2 ). Is that possible?
    Regards
    Harsh

  • Flexible DWS With Fixed Time For Clock In

    Hi Experts, Please Advise
    The issue is exactly like the following example
    an employees required to work 9 hours a day
    they can come from 8:00 am to 09:00 am but from 8:00 to 9:00 is not tolerance, the system required to calculate 9 hours from clocking in with maximum clocking in 09:00 am
    Emp X clock in 8:00 he must clock out MINIMUM at 17:00
    Emp Y clock in 8:30 he must clock out MINIMUM at 17:30
    Emp Z clock in 9:00 he must clock out MINIMUM at 18:00
    but clocking in after 9:00 am is not allowed
    Any suggestions ?
    Thanks

    Hi Islam,
    You can check it that employee's clocked in before 9 am or after that through below PCR. Create a one constant in T511K and store as 9.
         HRS=PBEG
         HRS?CXXXX     (XXXX= Constant)
           Leave
         <
           Leave
         >
           COLERYYE     (YY= Error message no)
    Insert this PCR with PTIP function after P2011 function in time schema.
    Check and tell me.
    Regards,
    Sankarsan

  • How to track EM usage pattern in a fixed time interval?

    Hi, all.
    I am trying to get an idea of how much EM our system is using at different time during the day in order to find out the EM usage pattern on the ECC6.0 system. From ST02, I only see the current usage and max usage. But there is no history on the EM usage. I checked st03 and came up empty too. Would you know if there is any other way to do that? I guess we can write a custom abap to do it and schedule the job in sm37. But it is probably because I don't know better.
    Please advise.
    Thanks,
    Jonathan.
    Edited by: Jonathan Ma on Jun 24, 2010 5:19 PM

    Anyone, please?

  • How do I adapt this example to count ticks/unit time?

    I found the attached example in Labview 2012, for counting ticks of an encoder wheel.  I can easily count ticks with this vi and my encoder wheel hardware.
    I would like to be able to count ticks in a fixed time interval, and return a value of ticks/ms etc.  I would like to do this over and over again in WHILE loop structure.
    How do I modify this example to count only for a fixed time interval, e.g. 50ms, output the number of counts, and then start over from zero again?
    Alternatively, I could fix the number of ticks, and measure the time that it takes to count, e.g. count to 100 ticks, and tell me the time it took to get to 100 ticks.  Either way is acceptable for my application.  Both give me "ticks/time"
    Can someone suggest an architecture to do this?  I'm a bit stuck on how to start.  I was looking at the timed loop structure, but, I can't figure out how the counter would reset to zero...it seems like it would add counts with successive iterations.
    I am using cDAQ9174 and NI9401 module.
    Thanks,
    Dave
    Attachments:
    Count Digital Events_example.vi ‏23 KB

    Hi Kevin,
    I got the vi working, but, there is one weird aspect of it.  I am seeing these phantom signals.  Here are three samples of data collected varying the averaging period from 50ms to 1000 ms.  The rate the encoder is moving is about 1 revolution/second, not super fast by any means.  Notice that the phantom signals can be very large or very small
    Phantom1 is 1000 ms period.
    Phantom 2 is 100 ms period (it's hard to see on the picture, the actual frequency measurement is about 120Hz, as seen in the Excel file data)  The spike to 450,000HZ makes the rest of the data look like ZERO, but, it is actually similar to the others, since all three were collected at the same motor speed.
    Phantom 3 is at 50 ms period.
    The frequency is about 120 Hz.  This encoder has 120 ticks/revolution, so 120Hz, is one rev/second.
    Is there a filter that can be added to eliminate these signals.  They are positively definitely and for certain, NOT real.  My system is a simple belt driven encoder from a DC motor at fixed speed for all three collections here...the spikes up and down are impossible.
    I also attached my vi, in case you want to see if I ruined anything adding the WRITE TO SPREADSHEET function.  I will post in the next one..apparently there is  a limit of 3 attachments.
    Thanks,
    Dave
    Attachments:
    phantom1_1000ms period.jpg ‏45 KB
    phantom 2_100ms.jpg ‏78 KB
    phantom3_50ms period.jpg ‏75 KB

Maybe you are looking for