Count edges with hardware reset

Hello all,
I have a PCI-6220 and I would like to configure a counter to count edges with a hardware reset or use my counter to measure linear position without the B input, after words, only with the A input to count edges and the Z input to make the initial position.
Somebody knows how?
Thanks in advance, best regards,
Paulo Carmo

Duplicate Post
John Passiak

Similar Messages

  • Counting edges with dynapar encoder

    Hello,
    I am very new to Labview. To kick off some experience, I am trying to count edges on a Dynapar encoder, Model E14020000303. Here is the data sheet:
     https://ecatalog.dynapar.com/downloads/E14_DS_702489_2_.pdf
    I am using LabVIEW 2011, with a NI USB-6210 DAQ. My white wire on the encoder is connected to PFI0. The red and black wires are connected to my 5V voltage source. I am rotating my encoder to count the revolutions. Supposedly my encoder is a 200 PPR, and it is also quadrature. 
    However, I am not understanding what I am getting when counting edges using DAQ Assistant. I am using the Edge Count on ctr0. I can set the DAQ assistant to run on 1 sample acquisition mode and count the rising edge. When I turn the encoder 100 times, the measured value on the DAQ Assistant is usually around 76500, which would mean 765 edges counted per revolution. I can also change things around and go to continuous acquisition mode. I set up PFI2 as the external clock source with a rising edge and put the green wire in PFI2. I set it to read 1 sample at 1k Hz. This usually results in counting around 820 edges.
    I don't understand why I am getting these readings. The DAQ Assistant should only be counting rising edges because that is what it is set at. Why am I getting numbers so high? 
    Thanks!
     

    Hey guys,
    Sorry for the late reply, I have been put on other tasks. You all were right about the ground, that indeed was the problem. With the daq grounded, the encoder measures 200 edges per revolution.
    Thanks!

  • Count edges with 6036e

    Hello !
    I am currently trying to count photons with a PCMIA 6036e. 
    I have to detect a TTL signal ; each photon correspond to a pulse. So I tried to count rising edges, since one rising edge = one photon. I want to use either digital line or counter. Moreover, I have to count the rising edges for a limited time (typically 1s).
    I have tried several VIs, but none of them work. I either don't have an error message, but only 0 as a result, or an error message saying data were overwritten before they could be read.
    The problem does not come from the card, since it can count the rising edges in MAX. I have also tried examples such as "count digital events", but they give me the same error.
    I would appreciate any help !
    thanks,
    Camille

    Hello,
    Check carefully the wiring of your signal to the DAQ board; there is to main input for counter application, the source and the gate. Depending on the measurement you do, you have to wire your signal to the gate or to the source. In your case, the acquisition type should be a simple event counting. Using CTR0, the input signal should be wired to PFI8 (PFI3 for CTR1).
    The specification of the PCMCIA-6036E mention that the minimal pulse duration you can handle is 10ns in edge detect mode. If the pulse you measure  are shorter, you will not be able to see it.
    Regards, 
    .mrLeft{float:left} .mrInfo{border-left:solid 1px #989898;font-size:x-small;color:#989898}
    Mathieu R.  
      CTD - Certified TestStand Developer / Développeur TestStand Certifié  
      CLAD - Certified LabVIEW Associate Developer  

  • PCI-6013 intermitant bad counts good after hardware reset

    I am using a PCI-6013 board to two edge separation counting into 10 bins over 1 second.  Most of the time the counter works great but some of the time I get garbage data eg 0,6050955,6050951,0,6050944,6050954,0,6051007,0,6050951.  The counts are coming from a PMT that has a max linear response of 1,000,000 counts per second.  Each data point represents 100ms of counting.  Powering the PMT off and then on has no effect.  After restarting my program the reponse returns to normal until the counts freak out again maybe 20 minutes later.  Does any one have any ideas why this is happening?

    What two signals are your trying to perform a two edge separation measurement on? What do you mean by bins? What language are you doing this in and can you post your code?
    Matt
    Applications Engineer
    National Instruments

  • Timing problem with counting edges

    Hello!
    I use a NI PCI-6221 DAQ card with NI-DAQmx to count edges of TTL pulses for a spectrometric application.
    It is extremely important that I count the pulses for a well-defined period of time. Typically, I want to count the edges that reach the counter in the period of 400 milliseconds.
    Normally, this works quite well, when I use a WHILE loop that reads and restarts the counter every 400 milliseconds. Things change when the PC I run the VI on has other programs running in the background. Expecially computing-time intensive programs delay the 400 milliseconds of the WHILE loop for up to several 100 percent, resulting in an wrong counter read.
    I tried to use a timed WHILE loop but this din't change anything, regardless of the timimg source (onboard clock or PCI-6221 counter) I applied.
    Has anyone encountered similar problems and found a solution? Isn't there a possibility to control the counting time by hardware?
    Thanks in advance!
    EresthorMessage Edited by Eresthor on 04-07-2005 08:17 AM

    Hej Lynn,
    of course your idea works, thank you. It works extremely well this way, too.
    My problem with this approach is that I need both counters on the PCI-6221 to count data from my spectrometer simultaneously on two channels. That's why I would like to trigger the counter in a different way, for example with a clock.
    Is there no way to trigger the counter with the timebase of a hardware clock on the card? Or ist there another possibility without wasting a counter?
    Eresthor

  • Count edges of AI signal with NI 9221

    Hi,
    I'm trying to count edges of an AI signal that are acquired with an NI-9221 on a cDAQ. The average frequency is about 1kHz.
    I'm acquiring the signal with 10kHz but don't get the right amount of edges. 
    Is
    there any solution for this problem. I know, of course it would be
    easier to use a CTR-modul but my signals doesn't fit with the specs.
    Thanks for any help
    Yves

    Yes, I know. I wanted it to be posted in the Labview forum and hadn't realized my mistake.
    But I still don't have any solution....
    Yves

  • Can i Count digital edges with all three channels on a 9421 cDAQ

    Hi!
    We have just purchased a Compact DAQ with NI 9203, NI 9217 and a digital card 9421. In the application for which these parts have been purchased I want to measure flow, power, pressure, temperature and water and energy consumption of a sterilizer. I have connected the flowmeters, and pressuremeters to the analog current card 9203, the RTD termomters to the 9217 and three digital pulse outputs from two flowmeters and a poweranalyser to the 9421 card. I have configured the analog inputs on 9203 and 9217 to my satidafction. But now to my question. I want to configure VI to count the digital edges from the three channels in the 9421. I know that the card only has two counters but since my pulses only has a frequency of approximately 1 Hz I believe that i in some way should be possible to count the edges with a regular digital input channel as well.
    I know I have signal from all three pulse outputs to the 9421 card, since I have tested this in the Measuremnet & Automation explorer.
    Do I need to add an extra DAQ-assistant to be able to acquire the digital signal parallell to the analog signals from the two other cards?
    And is it possible to count the edges of mylow frequency on say for example channel di0, di1 and di2 as i wish and not only on di0 and di5 which I think are the counter-channels?
    Do i need to put the 9421 card in one particular slot on my cDAQ-station, this I also ask since my pulses frequnency is low and I don´t now if i really need to use the counter on slot 5-6 to count my pulses?
    Attachments:
    Measurementbench.vi ‏143 KB

    Hi Gravy Train,
    I'm curious about why you are using 2 loops.   You mentioned one is for monitoring and one is for DAQ....what do you mean by that?   What is the overall goal of this piece of code.   Also, I noticed that you are not closing the task.   Since this is just a subset, I realize you could be closing it in your actual code, but just in case you're not.....it is very important that you close all tasks when you are down acquiring data.
    Best Regards,
    Starla T  

  • IPad unresponsive after iOS 8.02 update, doesn't show up in iTunes, hardware reset (home and standby buttons both held down for ten seconds) not working

    I have a 32GB iPad mini that was purchased new in June of this year. A little while ago, I started the iOS 8.02 download while it was plugged into a wall socket using an official apple wall to USB plug and an official apple thunderbolt cable. I then left for 25 minutes to get some food.
    On coming back, I discovered the iPad with a black screen showing the apple logo. I thought this was just an ordinary part of the update, it was restarting or something after installation, so I thought nothing of it. Then, after another minute or two, the screen flashed blue and then went completely black.
    Puzzled, I waited for another second and the apple logo reappeared as if the iPad was restarting again. However, after a few minutes, this happened again. This has been going on for the last half an hour, and I was wondering has anybody experienced this before.
    As I stated in the title, it won't show up in iTunes, and the hardware reset or whatever it's called doesn't work. Also, bear in mind I had issues syncing it with iTunes the night before and it also seemed to crash a few times last night, restarting the iPad and bringing it to the blank screen with the apple logo for a few seconds before going to the lock screen. That didn't happen at all this morning though.
    The iPad is not jailbroken, however, it does have licenses for gba4iOS, which is still installed on it, and a VPN license installed on it by the Hola app, which I deleted but never bothered deleting the license for. Any help would be greatly appreciated.

    Hi Colin how are you?
    I updated my IPAD yesterday and have the exact same problem.
    Itunes does not recognize my ipad. Home and standby also doesnt work.
    Also have the blue thing every few minutes and the apple logo but it never goes beyond it.
    Have you solved the issue?
    IPAD AIR

  • Alpha channel weirdness with hardware MPE

    To begin, I'm using a GTX 480 with the hack, so I'm not going to complain too loudly it this is a result of using as-yet unsupported hardware. However, I just want to verify with other hardware MPE users (both legit and unsupported) if this issue is happening on other systems.
    I've noticed some oddities with imported PSD files and the way that their alpha channels are rendered with hardware MPE, versus software MPE. I'm putting up a couple frame grabs with GPU acceleration turned on and off at couple different point where I'm using the PSDs. Forgive the PNG compression; you should be able to see the difference, nevertheless.
    First up, 100% opaque text over a background. The edges of the text are... fuzzy, maybe?
    Software:
    Hardware:
    Second, a couple layers Fast Blurring and fading in. The logo is 100% opaque, and there is a separate "glow" layer (rasterized in PS) behind it. Pretty obvious, here...
    Software:
    Hardware:
    Finally, a mostly-transparent logo bug. The hardware version is not as transparent.
    Software:
    Hardware:
    The only difference between each of these examples is that I turned on or off GPU acceleration in the Project Settings; it's the same PSD for each grab. I've also noticed that standard cross dissolves are a little chunky when dissolving to or from a graphic (even a flattened version); the opacity change is not as linear as it usually is. In software mode, this goes away.
    Anyone witnessed similar results? Again, I want to believe that this is just a result of using the GTX 480 and the hack, without official support. It could very well be the nVidia driver, too, I suppose, but I haven't tried rolling back to check that (I'm running the latest versions).
    Thoughts?

    I can confirm this.
    I do not think its the psd but the Alpha Channel in general.
    The colours are off when in MPE (Nvidia GTX 285)
    I filed a bug report.

  • Is it possible to use "Delay Values" to create a frequency signal from digital "Count Edges" -task? (= are the results I'm getting correct?)

    Hello.
    I have a digital encoder from which I need freaquency information (to ultimately get rpm -infromation). The problem is that this task is inside a loop with 2 other DAQmx -tasks that are using "one sample on demand"-aquisition mode and if I configure this new counter task to be a freaquency task, it only updates once in ~ second which makes the whole loop lag.
    I thus created an "artificial" freaquency signal by using "Count Edges" -aquicition mode and the "Delay Values" -block so that I substract the delayed signal from original "Count Edges" -signal. There is a 0,01s delay in the loop and I figured out that if the history of the "Delay Values" -block is 100 samples I would thus get the real edge-freaquency.
    I tested this configuration and the results seem to be at least really close to correct but I have no idea if this idea is in any way correct...
    This explanation was probably quite confusing so please see the picture attached.
    Thanks a lot in advance! 
    Attachments:
    are_the_results_correct.jpg ‏200 KB

    First of all, thank you for quick reply. Unfortunately I don't have the acces to the vi. until tomorrow.
    And yes, I think you understood correctly: essentially this arragement measures how many edges have been counted during one iteration. This is how I figured out that this could then be used as a frequency measurement:
    1. From the "Edges - Delayed Edges" I get the information on how many edges have been counted during last iteration.
    2. I "know" (really I don't?) that one iteration lasts ~0,01s because of the delay in the loop.
    3. There is 2048 edges in one round of the encoder so I get the rpm as follows: rpm = (edges - delayed edges)/204,8*60(s)
    (If I was using history size of one as you suggested it would be: rpm = (edges-delayed edges)/2048 * 60) However using history size of 10 and taking it account in the multiplication smoothens the response nicely.
    But doesn't this arragement count on the fact that the vi runs smoothly and there is no additional lag?
    I quess using another loop and notifiers for a dedicated freaquency measurement as you suggested could be worth trying. I just have to first learn how to use them. 
    If I do use them will the main loop run smoothly and not wait for every update of the notifier? This would be essential since the freaquency output refresses only about once in a second if I use the continious aquisition mode.
    Attachments:
    are_the_results_correct.jpg ‏198 KB

  • Problems with hardware acceleration

    Hallo
    I have big problems with hardware acceleration in flash player. What complicates the problem is my laptops manufacter note here:http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&lndocid=MIGR-69684
    so I'm accualy confused - is my laptop defected or the source of the problem is in flash player engine.
    In to to point: I can't play some videos, because my video adapter/driver is restarted during watching and after it happens - flash plugin doesn't work anymore (until browser is restarted).
    I have flash player in version: 10.2.154.25
    Nvidia driver: 260.99 (with newest situations is not much better, I tried newest WHQL certified driver but I didn't work perfectly)
    Hardware: Lenovo ThinkPad T61, core2duo 2.1Ghz, 3GB RAM, NVIDIA Quadro 140M NVS.
    And here's video showing my laptops behaviour:
    http://www.youtube.com/watch?v=QrXJCcWV2Sk
    Notice also screen blinking (and audio stuttering) before video adapter is restarted.
    Is it flash fault or hardware is defected?

    I got my laptop with replaced systemboard today.
    Unfortunately the problem is still present. In the meantime there was Flash update released (10.2.159.1 for IE) so I also tried to install newest version - but it didn't help.
    Having systemboard replaced, flash updated I still have screen blinking, video adapter restarting and NOT smooth playback using hardware acceleration.
    Output from LatMon:
    Highest DPC routine execution time (µs):  60999
    Responsible driver:                       nvlddmkm.sys  (NVIDIA Windows Kernel Mode Driver, Version 267.76 , NVIDIA Corporation)
    DPC count (execution time <500 µs):       1307911
    DPC count (execution time 500-999 µs):    0
    DPC count (execution time 1000-1999 µs):  0
    DPC count (execution time 2000-3999 µs):  0
    DPC count (execution time >=4000 µs):     11
    Highest ISR routine execution time (µs):  853
    Responsible driver:                       dxgkrnl.sys  (DirectX Graphics Kernel, Microsoft Corporation)
    ISR count (execution time <250 µs):       2516652
    ISR count (execution time 250-499 µs):    0
    ISR count (execution time 500-999 µs):    29
    ISR count (execution time 1000-1999 µs):  0
    ISR count (execution time >=2000 µs):     0
    Highest pagefault resolution time (µs):   621633
    Hard pagefault count (total):             22908
    Number of processes hit:                  17
    Pagefault count of hardest hit process:   17072
    Process with highest pagefault count:     devenv.exe  (PID: 5144, Microsoft Visual Studio 2010, Microsoft Corporation)
    NOTE: some processes were hit by hard pagefaults. If these were programs producing audio, they are likely to interrupt the audio stream resulting in dropouts, clicks and pops. Check the Processes tab to see which programs were hit.
    Note: all execution times are calculated based on a fixed CPU clock speed of 2094 MHz. Disable variable speed settings like Intel Speed Step and AMD Cool N Quiet in the BIOS setup for more accurate results.

  • Flash player hanging with hardware acceleration enabled

    I'm having the following problem: The Flash player is working fine for some apparently random period of time, then it hangs when it is starting up in order to display a video.  This appears to happen only when hardware acceleration is enabled.  (I have not noticed any problems with hardware acceleration disabled, but I only discovered 24 hours ago that this helped.).  The hang happens under all web browsers (Firefox reports that the Flash player crashed, but it is actually hung on start up, not crashed).  After a hang occurs, trying to view any other Flash video also hangs, and all other programs that attempt to access the video card like Windows Media Player also hang.  The only way to reset things and get video working again is to reboot the machine.
    I suspect the problem is either the Flash player or the machine's graphics driver.  I'm running Flash Player WIN 10,1,53,64 under Windows 7 64 on an Intel Core i5 machine with Intel GMA HD graphics, driver version 8.15.10.2025.
    BTW, is there anyway to permanently disable Flash's use of hardware acceleration? (if I disable, the setting doesn't seem to want to stay)

    Thanks.  The computer is a Lenovo Thinkpad T510.  Intel's utility reports:
    Graphics Driver
    Product Detected
    Intel® HD Graphics
    Current Driver Installed
    8.15.0010.2025
    A customized computer manufacturer driver is installed on your  computer. The Intel Driver Update Utility is not able to update the  driver. Installing a generic Intel driver instead of the customized  computer manufacturer driver may cause technical issues. Contact your computer manufacturer for the latest driver for your computer.
    Running Lenovo's ThinkVantage System Update utility reports that all drivers are up-to-date.

  • Count edges on rtsi0

    Hi all,
    I have a PCI 7831-R and a PCI 6143 card running on my computer. Both
    are synchronized with a RTSi cable. The PCI7831 delivers via RTSI 0 a
    clock signal for Trigger my analog signals. My problem is now that i
    want count the edges on rtsi0 because I want to know what  the
    values  of my analog signal are refered to my triggersignal. For
    example, Trigger edge 1 - analog value x,  trigger 
    edge  2 - analog value x. Is that possible. I don't found nothing
    on ni examples. Thank you for your help.
    Grüße aus Deutschland
    Manuel

    Manuel,
    you want to count edges from a RTSI line with the PCI 6143, right?
    Have a look on the following post:
    http://forums.ni.com/ni/board/message?board.id=250&message.id=4715&requireLogin=False
    Regards,
    ThSa
    Message Edited by ThSa on 04-05-2006 09:42 AM
    http://www.newgistics.com

  • Setting output pin to high while counter counts edges - 660x

    Traditional DAQ allowed you to set the output of a counter while it counted, is there an equivalent for daqmx?  The counter output for our current setup spins a motor until the counter reaches the proper number of counted edges from another pulse generator on the board. Perhaps I need to reconsider the setup, but there should be a method to do this action.  I was only able to find an indicator of the output state in the Channel property nodes. Any ideas? Thanks.

    Hello Roth,
    An event is thrown whenever a counter reaches its terminal count, and you should be able to use that to your advantage here.  Once that terminal count is reached, you can use DAQmx properties to set the counter to output a pulse or toggle the line.  If you use this property in conjunction with the initial count property, you can have the counter cound X number of edges and then toggle the output line:
    I hope this helps!
    Thanks,
    Justin M.
    National Instruments
    Message Edited by Justin M. on 06-12-2006 01:05 PM
    Attachments:
    Terminal Count Toggle.JPG ‏11 KB

  • Alazar count edges synchronization

    Hello,
    We have an Alazar AT9350 of which the acquisition has to be synchronised with the acquisition of a Count-Edges channel on an NI-6259 DAQ board. Running them synchronously is easy, for we run the Alazar board with a trigger signal (50KHz) that we can route to the NI board as well. However, starting them synchronously poses more of a challenge. The original solution was to input the trigger on the NI-board and reroute it when the count edges VI starts. However, the board needs one counter to create the sample clock (or receive the trigger signal), and one counter to output the signal. This leaves no counter for the Count-Edges channel (our NI board has only two counters). 
    I have come up with a possible solution for synchronisation, but it is a bit ugly. I output the task just after the start task VI to an indicator, and create a local variable. I connect a read version of the local variable to the acquisition while loop of my alazar board. My assumption: because the while loop has to wait till all data flows have presented data to him, the while loop must start synchronously with the start task. The actual program is much bigger, that's why I'm using a local variable here. A direct wire is also possible, but it would look even uglier. 
    I have put a snapshot of a simplified version of my program as an attachment. I realise I am not actually saving any data or outputting what the Count-Edges reads, of course this is different in my real version. 
    Is my method viable or should I use a different method? (or perhaps it is viable, but I should still use a different method).  
    Solved!
    Go to Solution.
    Attachments:
    labview program.JPG ‏114 KB

    Dear GerdW,
    Thanks for your suggestions.
    [quote]Probably not "real time"… When you use DAQmx to read your input data you can synchronize input channels. Have you looked in the example VIs for that case? [\quote] I use an NI board with DAQmx drivers to acquire the Count Edges. I use an Alazar board with their own SubVI's for the other acquisition. Therefore I cannot use the DAQmx synchronisation (which would've been quite easy indeed). And indeed, by "real-time", I of course mean that the amount of data I process per second is the same as the amount of data that I acquire per second .
    I changed my example, hope I finally understood you well. I added a wait function to the loop that sends the notification. Otherwise the notification is sent on the same time, but there is still no synchronisation because the notifier is retrieved upon reaching the loop (and it essentially does nothing). To make sure I know when I start the two loops synchronously, I will add a high-resolution relative seconds to both loops and subtract them in another loop. If there is a better way to test synchronisation I'd happily take any suggestions. (Though perfect synchronisation is the best, one or two ticks off won't do much harm). 
    Attachments:
    MinimalExampleWhileLoopSynchronisation.PNG ‏14 KB

Maybe you are looking for

  • Avoiding BPM ?

    Hi folks, Currently i have developed a scenario File->XI->Proxy(Sync)->(File and then JDBC) using BPM. Basically the response of proxy i am writing in a File and then in a table..Just to maintain this serial order(File and then table)i have used BPM.

  • PDF Form Submit Format

    Hello, Does anyone know the format of form values that are sent out after user clicks the submit button in the form? I have a PDF form file stored in my computer. In my program, I read this form file and dynamically create a submit button. After that

  • Can i still turn on my powerbook without the battery detached...

    battery detached and power adapter connected and on?thanks

  • X11 drawing problem after 10.6.3 update.

    The latest software update has caused drawing problems in the only X11 application that I need to use. The application (among other things) draws a tree diagram where boxes are drawn around text. The boxes are connected with lines. The boxes may be f

  • Tech specs for iOS7

    Are the tech specs for iOS7 already known. In other words, which versions of the iPhone it'll be available for.