Reading Encoder pulses using US DIGITAL PCI4E

Hello All,
I'm new to this forum so I hope that I post the question in the correct board.
I have an encoder connected to PCI4e board.
The problem is that when trying to measure velocity I get different result using different methods:
So I want to measure the Encoder pulses frequency.
I'm trying to figure out which PCI4E function gives me this information
If anyone know please tell me.
Thanks
Gil,
Solved!
Go to Solution.

Gil,
The US Digital website provides a set of VI's for using their hardware in Labview, this is not supported hardware and we do not have access to the commands that are sent to the device as it was made by a third party vendor. However there is example code for labview which can be downloaded at (http://usdigital.com/download/43) which was found in the download section of that product support page. Keep in mind, this code was created in LabVIEW 6.1 and may have problems integrating with current versions and or may have different functions and features. This download contains many different VIs which may help you to better understand the workings of the device. Feel free to contact me at any time if you experience any more issues. I will be happy to help you. Thanks!
Frank,
National Instruments
Staff Software Project Engineer

Similar Messages

  • Measurement error in reading Encoder Pulses

    I am using PCI-6601 card to read a Linear Encoder which gives 2000 pulses per mm of distance.The accuracy of the Linear encoder is 2Microns.In my application I am measuring a distance of 7mm.But the card is reading with an error of 30 to 50 Microns error.We had checked up all the factors related to mechanical and Encoder.In fact the same application was earlier working with Advantech Encoder card which has provisons to connect the A,B,A Bar,B Bar inputs from Encoder.There was an accuracy of 0 to 5Microns.But the application was replaced with NI Card because of the continuous problem of the Digital I/O Card used from Advantech.
    Mail me the possible causes and also the troubleshooting procedures for correcting the above problem

    Hi,
    What I think is happening is there might be some noise on your signal lines. The PCI-6601 counters are capable of detecting a pulse as small as 20ns. If the Advantech card can't detect pulses at that small a resolution, it might be ignoring "noisy" pulses that shouldn't be there. Are you reading more pulses than you should be or less?
    There are a couple things I might be able to suggest to clean up your signal. The counters support several different encoder modes. Try using X4 Encoders. An X4 encoder counter increments or decrements on each edge of channels A and B. Whether the counter increments or decrements depends on which channel leads the other. Each cycle results in four increments or decrements. I believe this X4 mode is more noise resi
    stant than the standard mode.
    Another thing you might want to consider is applying a filter to the input signals (debounce or deglitch filters). Each PFI line coming from the I/O connector can be passed through a simple digital filter. The filter operates off a filter clock and a fast internal sampling clock. It samples the signal on the PFI line on each rising edge of the sampling clock. A change in the signal is propagated only if it maintains its new state for at least the duration between two consecutive rising edges of the filter clock (one filter clock period). The frequency of the filter clock determines whether a transition in the signal may propagate or not.
    6601/6602 User Manual
    http://digital.ni.com/manuals.nsf/webAdvsearch/DD0DBB6404BC139886256721007CF16D?OpenDocument&vid=niwc&node=132100_US
    Hopefully one of these suggestions will do the trick. Have a good day.
    Ron

  • Reading a PWM and determining pulse width using a digital input pin on a NI 9425 DAQ

    Hello!
    I have been experimenting with LabVIEW for about a week now and have run into a brick wall.  I have found a fairly effective way of reading a PWM signal through an analog input and determining the pulse width.  However, it is becoming necessary for this project to do this same thing using a digital input.  I've been playing with this for about a day now and am not making much headway.
    For reference, I will be using a 9524 device
    Any ideas?

    Also, if it is helpful at all, I've attached two vi's.  One, functions just as I need it to - but it doesn't involve data aquisition.  The second should be similar to the first, but is non functional - I keep getting an error that my amplitude is zero.
    Any thoughts?
    Attachments:
    DigitalEdgeDetectionKnown.vi ‏47 KB
    DigitalEdgeDetectionRead.vi ‏148 KB

  • Use angular Encoder position to trigger Digital out

    Hi,
    I am a beginner labview user, I have access to three modules, two NI9201 and one NI9401.
    I have an angular encoder that is used to measure the angular position of a motors crankshaft, what I'm trying to do is use the encoder to trigger a digital out (spark event in the engine) at a certain angular position.  For example, I would like to trigger at top dead center (or 0 degrees on the encoder), then I want to be able to change this to +5 degrees on the encoder, etc. 
    So far I am able to read in the angular encoder when the motor is running, I am also able to output digital out signals although I can't find a way to link the two together.  
    If anyone has any idea how to do this, it would be greatly appreciated, I have attached my VI.
    Thanks in advance,
    Nick
    Solved!
    Go to Solution.
    Attachments:
    Encoder_Spark.vi ‏40 KB
    Encoder_Spark.vi ‏40 KB

    Hi Nick,
    I hope the attached vi will get you on track.  It's just a general concept.
    The while loop will run until you hit the stop button.
       I take it you will need one spark per revoultion.
    This VI is really just an If/Then
       If the encoder value is equal to (in this example ) zero,
       Then trigger the digital output.
    I know I have a broken wire, but I didn't know how to get the angular position from you DAQmx.
    Let me know if this help. (Also let me know if I'm off target)
    Good luck,
    Bill
    Attachments:
    Trigger spark concept.vi ‏9 KB

  • How do I use outlook digital id's to read encrypted email?

    I'm strugging with this one. I have an exchange account that makes use of digital ID's to encrypt email using MS Digifal ID's. Is there a location or feature on the iPhone4 where I can use the imported ID to let me read email that's been encrypted with s/mime on the iphone4?

    OR... *sorry" is there a third party application that I can put on the iPhone4 to allow me to do this?

  • I have a Kobo N416  E-Reader. It is no longer supported by Kobo and is outdated. I was told that I can use Adobe Digital Editions Desktop App to download book to this Kobo N416 E-Reader . How do I do this ? Thanks

    Question;  How do I download Ebooks to my Kobo N416 e-reader using Adobe Digital Editions App ? I have already tried to get help from Kobo Techs but they say the Kobo N416 E-Reader is no longer supported by Kobo and is outdated. Kobo told me to use Adobe Digital Editions to download the books I bought on Kobo to my Kobo N416 E-Reader. I have already contacted Adobe Digital Editions for help but they could not help me and told me to go to Adobe Forums.

    I didnt't say that our business is using Linux Desktops. I wrote, our main clientele is. And what our customers do like to use is something we cannot control...
    >What difference does it make to you if Adobe releases a new version of Reader that is not supported on Linux?
    a new Adobe Reader version that's supported on Linux would be nice. a dialogue between Adobe and Linux developers would be nice...
    >As long as the old versions can open the files correctly, that's all that matters, no?
    No, not if our staff is trained to use the newest Adobe Acrobat (trainings are usually for the newest versions) and uses that to produce forms. Now the files open correctly. But what will be in some months or years? Do people working on Linux do have to print the forms then again to fill in?
    So do you recommend that we stop the process of producing electronic forms and stay with paper-fill-in forms? Is that the goal of Adobe? (maybe not so clever for your "financial viability"?!?!? ... ein schuss ins eigene bein?!?!)
    >Adobe is a public company and therefore it's not going to maintain a version of its software at great cost if it's not financially viable. It's as simple as that...
    So it is to be interpreted that Adobe is interested in killing Linux cause if users cannot work with let's say forms, they will have to switch to something that can do that for them...
    We definitely don't want to force Windows or Mac on our clientele. So as far as I get it, we will go back to paper forms and terminate our licence agreements with Adobe and deinstall it...
    KR

  • Digital read n arduino using LINX

    The VI for reading digital input in arduino uno using LINX doesnt seem to work . Am I doing soething wrong?
    Attachments:
    arduino digital read.png ‏13 KB
    arduino digital read.vi ‏15 KB

    karthiksudhir80 wrote:
    The VI for reading digital input in arduino uno using LINX doesnt seem to work . Am I doing soething wrong?
    Did you tell the Arduino Uno that the pin is meant to be a digital input and not a digital out?

  • If possible online translation ebook with acrobat drm protection?; reader I am using is adobe digital edition version 4.0.2.103411

    I need help, about adobe offer some fee or service for a online translation of a ebook with acrobat drm protection?; the ebook reader I am using is adobe digital edition version 4.0.2.103411, the document format is EPUB; The language I need translate is from Italian to Spanish.

    Set your Computer to work with our eBook provider
    1.  Download and install Adobe Digital Editions. This software requires  Flash.
    2. Open up Adobe Digital Editions. It will ask you to activate  your software with an Adobe ID.
    3. If you create an Adobe ID:
    a.  You may download the book to more than one computer as long as the  computers all
    use the same Adobe ID. (Up to 6 computers can be  activated using one Adobe ID.)
    b. You can transfer your eBooks only  to Nooks that are using the same Adobe ID.
    4. If you decide to  continue anonymously:
    a. You will not be able to transfer eBooks to  your Nook!
    b. You may only download to one computer.
    c. You can  activate an Adobe ID at any time. However, you may lose the rights to  see any
    eBooks that were downloaded previously.
    5. We recommend  that you create an Adobe ID. Follow the steps to do so.
    6. Activate  your Nook by plugging it into your computer with Adobe Digital Editions  open.
    7. Adobe Digital Editions will detect your Nook and ask to  activate it using the same Adobe ID as
    your copy of Adobe Digital  Editions. Follow the prompts. (It may take a few minutes for Digital
    Editions  to see your Nook.)
    Getting your eBook on  to your Nook
    1. Open up Adobe Digital Editions.
    2. Plug in your Nook. If you have not previously set it up, Adobe   Digital Editions will ask to register
    your Nook using the same Adobe  ID as your Digital Editions.
    3. Your Nook will appear on the left  under Bookshelves.
    4. To transfer your eBook to the Nook, click on  your previously  downloaded eBooks and drag them
    to the Nook icon.  The book will transfer.
    5. Unplug your Nook.
    6. To find your new  eBook, go to My Library.
    7. On the touch screen, scroll up until  you see My Documents.
    8. Your new book will be in My Documents.
    9. Enjoy!

  • Encoder pulse edge counting on VBAI

    Hi I am Dana and currently using smart camera 1772C.
    I connected the incremental encoder (1200 pulses/revolution) to the camera in digital input port to trigger image acquisiton. 
    This is working well and accurate when encoder is rotating at very slow speed.
    But the problem is when it goes a little fast (1 revolution /sec). It cannot read edges because encoder pulses just remain at high (=1) and doesn't change at all.
    On the monitor panel, I can adjust the sampling rate but the maximum is 150 Hz. Is this the reason why I cannot read the high speed pulses?
    Please anybody help me !
    Thank you

    Hi Dana,
    The sampling rate most likely maxes out at 150Hz because the digital lines can change that quickly, but I checked the specs for the 1772C, and it looks like the maximum frames per second for that specific smart camera is 65fps. In order to trigger off a 1.2kHz signal, you would have to divide the signal down to a maximum of 65Hz. 
    David S.

  • How do I read a pulsed input on an SCB-68 counter channel?

    Hello all, I have been searching through the DAQ help and this board
    for a few hours now and I cannot find an answer that addresses what
    should be a simple problem. Let's start with hardware and software: I
    have a 6062E PCMCIA DAQmx card connected to a SCB-68 (E Series)
    connector block. I am running Version 7.1.0.306 of Measurement Studio
    for Visual Studio .NET and am coding in C#. So please, no LabView
    answers.
    I am trying to read the pulsed output of the Omega HHT-1501 Digital
    Tachometer - it outputs a TTL LOW pulse every time the sensor is
    triggered, I would like to read in these pulses and  get the
    frequency to determine RPMs.  As far as I can tell I need to
    connect the pulsed signal line to CTR0, which is PFI9/GPCTR0_GATE on
    the connector block, pin #3. I have verified that the tachometer is
    indeed pulsing correctly. I have used the DAQ Assistant to create a
    DAQmx task to acquire the frequency of a digital signal using the 1
    Counter Low Frequency Measurement method, input range is set from 1Hz
    to 1KHz, starting edge is set to falling. For Task Timing the
    Acquisition Mode is Continuous, Samples to Read = 100.
    When I run the test I get no response. And it also seems that the
    GPCTR0_GATE is always at +5V. I have tried just about every other
    combination of inputs, including using CTR1 on GPCTR1_GATE, pin 41, all
    with the same result - no signal read.
    So what is the problem? Every post or help article I have read makes it
    sound like plug and play to read the pulses but this is not the case -
    does the counter gate need to be configured as an input in either
    software or hardware? Am I supposed to have a signal set on the SOURCE,
    and if so what? And what about my ground line from the pulse source? I
    have tried attachign that to DGND, still no result, and if I attach the
    pulse signal gnd to the GPCTR0_SOURCE it causes my tachometer to lock
    up.
    This thread
    http://forums.ni.com/ni/board/message?board.id=170&message.id=34826&query.id=3937#M34826
    seems to be very closely related to what I want to do but is as vague
    as the help articles - it mentions using one of the two timebases as
    the source input - what does this mean in terms of code/wiring?
    Additionally in the NI-DAQmx help article under Device
    Considerations->Counter Signal Connections->AO/E/S Series it says
    "The count direction terminal must be tristated to use an external
    signal. Reset the device to ensure the terminal is tristated" for edge
    counting. A) Is this related? and B) how does one tristate by reset?
    Power cycling the scb-68 has no apparent effect on anything.
    I would appreciate any help on this matter, hopefully with as much
    detail as possible since the help manuals seem to be mostly useless for
    guiding one in performing any task.
    Thanks!
                       J. Slater

    Hi Shyam,
    The major factor that would come into play with the signal having some noise is that the counter is expecting a TTL signal and the oscilloscope is measuring an analog input signal. If your signal floats above the TTL thresholds or does not rise/fall within the specifications, the behavior is not predictable and it can be measured as a high or low by the counter. An oscilloscope will measure the analog signal and you may be able to measure the frequency of the noise on your scope by analyzing a smaller timeframe of the signal.
    What Is the Definition of a TTL (Transistor-Transistor Logic) Compatible Signal?
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/acb4bd7550c4374c86256bfb0067a4bd
    Steve B

  • Using a digital certificate to send an encrypted email.

    I want to send an e-mail through my i-pad using a digital certificate, that i have already configurated in my e-mail account. This e-mail i want to send also encrypted. Do i need to have a public certificate code from the person i´m sending the e-mail to? Like outlook express works?
    thanks for the answer in advance

    Hello,
    Your best option will be to use an encoder for feedback in your system. If you use an encoder then at the end of the move, the controller will compare your trajectory position with the position the encoder reads (the actual position) and make the necessary adjustments. Also, this is all handled transparently so you won't have to worry about any complicated programming issues.
    Regards,
    Andy Bell
    Applications Engineer
    National Instruments

  • Anyone able to play Amazon Instant Video using Apple Digital AV Adapter

    Amazon just released the Amazon Instant Video app for the iPad July 31, 2012. Version is 1.0
    It's not a great app yet. I can get it to play on the iPad (by itself). When I hook up the iPad to the TV using the Digital AV Adapter, the app gets very unstable, crashes at times, doesn't load shows....basically doesn't work. Virtually everything else on the iPad displays fine on the TV using the adapter. I've tried Safari, Netflix, and a couple of games just to see if the problem was with the iPad or the app. The problem is with the app.
    I emailed Amazon support via feedback within the app, and got responses back similar to this:
    "I'm so sorry for the trouble you facing with the Instant videos which you want to play on TV.
    I understand now a days all the TV's are HDMI connected but I assure you that we are working for the improvements required on this field.
    The Amazon Instant Video app for iPad does not support playback on HDMI-connected TVs.
    Customer feedback like yours helps us continue to improve the service we provide. I've forwarded your feedback to our Amazon Instant Video team for consideration as we make future improvements."
    I find it hard to believe they designed it to not work that way-I replied and asked them if it was...have not heard back yet.
    Has anyone been able to view Amazon Instant Video on their TV from an iPad ? If yes, how did you do it.?

    <"The makers of the app tell you it does not work that way, you think they are lying to you?">
    Where did you read that the app doesn't support this?  Their app description says it does not support AirPlay. I'm not using AirPlay. It doesn't mention anywhere that it doesn't support iPads connected to TVs with HDMI, except in a support email response back to me.
    With the iPad hard wired to the TV with the Apple Digital AV Adapter and an HDMI cable, on all of the other apps I've tried, the TV mirrors the iPad display. Even the few free games I tried would do this. This app falls apart when you hook up the HDMI to the iPad. To me that's a bug. I find it hard to believe that they designed it to not put out compatible digital video from the iPad. I would rather have seen their email response say that this is a known bug and that they are working on a fix. Maybe they are just beginning to understand the issues with version 1 and told the poor people answering the support emails to just say that it's not supported.
    I'm not particularly upset with them, as it is v1.0 of a free app. It's got plenty of other shortcomings. I was hoping that it would work somthat we could take advantage of the Amazon Prime stuff we're paying for without having to go out and buy another set top box or Blu-ray player that was compatible with their stuff.
    I would have gladly paid some money for a well designed app. Wish they had gone that route.

  • How to read pdf files using java.io package classes

    Dear All,
    I have a certain requirement that i should read and write PDF files at runtime. With normal java file IO reading is not working. Can any one suggest me how to proceed probably with sample code block
    Thanks in advance.

    hi I also have the pbm. to read pdf file using JAVA
    can any body help meWhy is it so difficult to read the thread you posted in? They say: java.io is pointless, use iText. So why don't you?
    or also I want to read a binary encoded data into
    ascii,
    can anybody give me a hint how to do it.Depends on what you mean with "binary encoding". ASCII's binary encoding, too, basically.

  • Can you use a digital recorder with Skype on a Mac mini?

    Can you use a digital recorder with Skype on a Mac mini?

    Have a look at http://www.ecamm.com/mac/callrecorder/

  • Can I use a digital download of Windows 8.1 to install Windows in the Windows partition created in Boot Camp or do I need the Windows 8.1 DVD physical copy to do the Windows 8.1 installation?

    Windows 8.1 installation on MacBook Pro

    Hi,
    I used a digital copy of Windows 8.1 to install it through Boocamp. It was the MSDN version of Win 8.1.
    Best regards,

Maybe you are looking for

  • Performing math on Decode function tags and moving averages

    I have a query shown below to create columns for my report. Can I use the field names as shown in bold to perform math functions? Is there an easy way to do this? select Data_date, SUM(DECODE(tag_id,'SEF_F0348I',avg_value,NULL))"TE_Flow_mgd", SUM(DEC

  • How to get the 4 digit number associated with a SAP icon ( ICON_MAIL )

    Hi Friends,                Could anyone please tell me how to get the 4 digit number associated with a SAP icon ( ICON_MAIL ).                eg: - For ICON_GREEN_LIGHT the four digit id code is '@08@' (which you can get from ICON table )and the asso

  • Error when installing Oracle8i for Windows98

    I got an error when Oracle8i for Windows 98 was finished with its install. I ignored the error and tried using the database. Everything seems to work fine. Has anyone encountered this error. Does anyone think this will cause a problem in the future,

  • Hello! Could someone help lead me in canceling this account?

    I had purchased and made an account on Christmas day and would like to cancel it seeing I have no desire to keep it anymore.Could anyone help me out with this? I am having trouble trying to accomplish this on my own and would appreciate any help give

  • How do I order a backup CD

    I would like to order a backup Cd for photoshop elements 11.  I bought the program from Amazon as a download.  I do have a key #.