Connecting RS422 Quad Encoder to NI 6602

I have 4 Quadrature Encoder that output RS422 signals that I would like to connect to the NI-6602 board. Will the differential signal levels of the RS422 match with NI-6602 counter timers inputs? Does any one have an example of the pin numbers to connect the A,!A,B,!B,Z and !Z signals to for the NI-6602 card.
Here is the PDF to the NI-6602 Counter Timer board:
http://www.ni.com/pdf/products/us/4daqsc386-393_386-387.pdf
Thanks for your help.

Hello,
If your "RS 422 signal" is a pulse going from 0V to 5V, then they should match with the inputs with your NI-6602. Chapter 4 of the manual found here describes how to make the necessary I/O connections for your board.
Hope this helps,
LA

Similar Messages

  • Z Channel of Quad Encoder Signal

    Okay guys, I've got one for yous....
    Here's what must be done:
    I have to use a PCI 6602 to generate all six
    channels of a quad encoder signal. This signal
    must be of variable frequency, and have the
    capability to be ramped. By ramped I mean I must
    be able to change the frequency of the signal on
    the fly at a defined rate (or acceleration).
    Here is what I have so far:
    Right now, the first four channels of the quad
    encoder signal are set up (A,A',B,B'). To do this,
    I set up a regular encoder signal (Channel X) to
    trigger these four channels. Each of these
    channels supports variable frequency and the
    ramping previously described.
    What I'm stuck on:
    I am bei
    ng thrown by the Z-reset. This channel is
    supposed to output a pulse every 2000 counts from
    channel A. I configured Z to produce a triggered
    pulse that has a 2000 count low part and a single
    count high part. This works fine until I try to
    ramp it.

    Hey Spencer,
    I appreciate your response. What was holding me up what the Z-Reset. To change the frequency of the all seven signals at once, I would manually go through and change the number of ticks each pulse was on. The Z reset would error out because the counter would still be outtputting a really long pulse while I was trying to change its frequency. Then one your your collegues suggested just changing the timebase's frequency instead of the number of timebase ticks each counter was on. This magically solved the problem. Now whenever I ramp the signal, I only have to change the timebase's frequency to change the frequency of the other seven counters! This makes the ramp function simpler and noticeably smoother!
    Thanks for the he
    lp
    Dave

  • Is It Possible To Use NI cFP-CTR-50​2 as Quad Encoder?

    Instead of going the route of using a Quad Encoder (which requires additional cost and work to install for a project), I was wondering whether is it possible to configure the cFP-CTR-502 to count directionally using a Digital Input for direction and a prox-switch?
    If I used the DI as a Gate to count the prox-switch on two separate counters, then read the count when the Gate was TRUE and FALSE respectively, then did a subtraction of these two counts - couldn't I get the overall count in a particular direction?
    Is there anything wrong with the above?
    If not, I am pretty sure I can do something like this in software but was wondering if the cFP Module could be configured somehow to do it?
    Cheers
    -JG
    Certified LabVIEW Architect * LabVIEW Champion

    Andy H NI wrote:
    Hi jgcode,
    I think what you're suggesting could work. If digital input TRUE indicates movement to the left, and digital FALSE is movement to the right, then subtracting the two counts would work (this is what a quad encoder does, after all). The catch is that you cannot count edges when the gate is false, so the digital state can't be directly linked to a single counter gate. You would need to use two digital outputs and two counters on the CTR-502 to get around this. Writing TRUE to the gate of counter 1 could be one direction, and TRUE to the gate of counter 2 could be the other. Then you'd just subtract the two counts in software to find your position.
    Hope this helps!
    Thanks for your reply Andy. I am glad you think the concept will work.
    On further brainstorming of the idea, we discovered the same as above (cannot gate counter on FALSE) so am thinking we can have a non-gated count and a gated count and just do some maths to get around it.
    Or we can do as you suggested.
    Cheers!
    -JG
    Certified LabVIEW Architect * LabVIEW Champion

  • Quad Encoder Decode for FPGA

    Quad Encoders are commonly used position feedback devices.  I'm exploring the possibility of using a Scancon 2RMHF with cRIO or sbRIO, it's has 500cpt on AB, plus a once per rev pulse.  A quick search on the internet shows there are many dedicated ICs that will convert the Quad AB signals to position, e.g. HTLC-2032 or LS7366.
    My question is, if I use cRIO or sbRIO, do NI have ready-to-use FPGA code that will perform the same function as the ICs ?   I have searched ni.com for "quad encoder" but with limited results.

    You can use the onboard FPGA on CompactRIO or Single-Board RIO with Digital I/O to read from most quadrature encoders directly.  You just need to ensure you use a DIO module that is fast enough to capture all the digital edges of your quad encoder signal at the fastest rotational rate of your encoder (500cpt * the number of turns/sec).  The faster the I/O module you use relative to the speed of the encoder pulses, the better accuracy you will acheive with the FPGA.
    To get started with the FPGA programming you can reference this developer zone article on Quadrature Encoders, which I found referenced from ni.com/ipnet, your one-stop-shop for finding NI FPGA example programs and reference IP.
    I also like to use the handy functions generated by the FPGA wizard manually in my FPGA applications.  You can find the Quad Encoder functions here on your hard drive after you install LabVIEW FPGA:   C:\Program Files\National Instruments\LabVIEW 2009\FPGAWizard\PlugIns\Function\niRIOQuadCtr\Templates\Fpga
    I would recommend copying any VIs you use from this folder into your own "user VIs" folder so you have the ability to update or modify them if you see fit without affecting the functionality of the original FPGA Wizard.
    Hope this helps,
    Spex
    National Instruments
    To the pessimist, the glass is half empty; to the optimist, the glass is half full; to the engineer, the glass is twice as big as it needs to be...

  • Reading quad encoder with 9870

    Hi there, my project involves using a quadrature encoder to sense the position and degrees of two encoders.
    I have successfully modified the example vi from http://zone.ni.com/devzone/cda/tut/p/id/3921 using NI 9411.
    However, I would like to know how I can read this data from the 9411 module into the NI 9870.
    I have read examples of DMA from http://zone.ni.com/devzone/cda/tut/p/id/4534 but I do not clearly understand how it works.
    How can I implement the FPGA file that I have achieved using NI 9411 to NI 9870 without serial connection.
    Thank you

    Hi Elman,
    The filter clock is used to make sure that your signal has
    integrity and eliminates glitches.  In
    order for signal to be counted, it must remain high for two consecutive periods
    of your filter clock.  There are five
    time bases (5us, 1us, 500ns, 100ns and programmed) that can be used as your
    filter clock.  The programmed clock can
    be created by another counter and this setting will let a signal be counted if
    it is at least twice times the filter period.
    This is a great method to help eliminate errors that can be
    introduced by noise, crosstalk or transmission line effects.
    The TimebaseSrc property is going to select a clock to be
    used as the source.  In your example that
    property is correct, you would want to use the 80MHz clock.  The TimebaseRate property is going to be used
    to divide the clock down to specific frequency. 
    It will divide the master clock down by an integer value and round it to
    get a rate that is as close to the value entered.  I would recommend leaving this number as
    80MHz. 
    The MinPulseWidth property is going to determine the clock
    of the filter clock.  This property is
    going to use the TimebaseRate property to create the predefined filter clock
    settings.  If your signal stays high for
    two consecutive periods of the minimum pulse width, then it will be counted. 
    You need to determine the minimum pulse width that is
    acceptable for your application.  Since
    your signal has a pulse width of about 360ns, you might want to use the
    predefined filter clock of 100ns.
    In short, you are creating a digital filter that will only allow
    a signal to be recognized if it remains high for two consecutive pulses.
    For further explanation, refer to the PCI/PXI–6602 User
    Manual page 3-20.
    http://www.ni.com/pdf/manuals/322137a.pdf
    Respectfully,
    Rob F
    Test Engineer
    Condition Measurements
    National Instruments

  • Connecting new quad core macbook pro to external monitor

    How would one go about connecting the new MacBook Pro to an external HD monitor? "The Apple Mini-DVI to DVI adapter is designed for use with the iMac (Intel Core Duo), MacBook, and 12-inch PowerBook G4." Does this mean it won't work with the quad core? I'd like to set up another monitor with my new 15 inch laptop and Screen Recycler isn't really doing the trick, tried with with a 24 inch imac and it was terrible quality. Please help, thanks.

    I have a mid year 2010 17" MBP and needed to do the same thing. 
    I got a mini-DVI port adaptor to HDMI, and connected it to my stereo - so I could watch on big flat screen TV and hear 5.1 sound via surround speakers, works great.  I down load missed episodes of castle and stuff and watch them all in HD.  (Via ITUNES).
    The catch, most mini port cables - do not carry both video and audio, even if HDMI and even if they say they do!  After buying the wrong cable at the local apple affiliate, I learned there are only two that did work.
    (even thought the packaging said they carried sound, the cable in fact was not recognized by the sound drivers, so no sound through Mac X (Snow Leopard).  I got the second cable form Moshi, and it worked instantly.
    NO problems since, at all.
    So does the port work with the quad duo core chip? Yes to I5, and yes to I7.  My IPAD has I5, and my MBP has I7. It's a dual core, virtual quad core, and it's works beautifully.

  • Strange display resolution on 30" connected to Quad

    My son has just connected a 30" display to his Quad with Nvidia GE Force 6600 card and the Apple System Profiler shows resolution of 1280x800. Of course this is bad and text is BIG etc etc. The resolution for the 30" is 2560x1600.
    Let me backtrack a little here.
    Son's Quad was purchased along with the 30" and it was fully operational.
    I have a 2x 2.5 GHz PM with Nvidia Ultra 6800 connected to a 23" display.
    Now before son started to use his Quad we switched the 30" with my 23" and he used the 23" for some two monts and I used his 30" for same period. The 30" worked without issues on my PM. I did play CoD2 quite a bit with the 30" - very nice too.
    Yesterday we switch the displays back. That is, the 30" is now connected to son's Quad and the 23" is now connected to my PM.
    The 23" on my PM works perfectly.
    The 30" on my son's Quad has max resolution of 1280x800. The ASP utility shows this. The System Pref Displays pane also shows max resolution for display is 1280x800.
    What's going on here ?
    How can my son get things back to be same when the 30" was originally connected to his Quad with a resolution of 2560x1600 ?
    Son has rebooted, powered off display but this hasn't changed things at all.
    He has not updated any software since using his Quad - has not downloaded any new Apple Software Updates either.
    I did upgrade my PM from 10.4.6 to 10.4.7 with the 30" display connected a few weeks back.
    It seems that the Quad with the 23" connected has somehow setup something in the graphics card (maybe) that is somehow affecting the proper operation of the 30" display.
    Any help would be most appreciated as son who lives in his own place has lots of video editing an such to do for a living, and I'm helping via phone.
    Thanks.... Barry

    Problem solved - son had the 30" plugged into the 2nd display socket of the 6600 graphics card. Ho hum. ;-))
    Thanks.

  • RPM Measurement using Quadrature Encoder and PXI 6602 counter

    Hi,
    I am on a project at work where I need to verify the speed (in RPM) of an unloaded motor which can operate up to 1400 rpm.  After doing some research, i determined that a quadrature encoder could be used to make the measurement.  I am looking at this encoder  http://sine.ni.com/nips/cds/view/p/lang/en/nid/205321.
    I have a PXI 6602 counter/timer module in which I would like to interface to the quadrature encoder.  I would like to create a VI that allows me to calculate the speed using the encoder.  Can someone provide me with details of what needs to be in the VI or an example which can do this?  At the most basic level, i want to calculate the speed on demand.  After doing this, i would like to figure out how to quickly calculate the speed so that i can determine response time of the speed changing within sub-millisecond resolution (1 ms resolution max).
    Further, i created a VI that allows me to change the pulse width of a 100 Hz pulse train at run-time which tells the motor controller the desired speed.  I would like to be able to use this VI to change the speed of the motor and the first VI (that I am seeking help about) to calculate the response time (time between the initial speed and settling at the new setpoint).
    I am familiar with the NI example finder, but have not been able to find an example that I can use.
    Thanks,
    Gary

    Hey Gary,
    I think for you setup, you should try using the Meas Dig Frequency - Low Freq 1 ctr. You can find it by searching example finder with 'low freq'. This vi tells you the frequency of a digital signal by sampling between two pulses and inverting the time between pulses. If you hook up your encoder to a counter and have that counter specified in the vi, it will be able to give you on demand readings of frequency (you can do some multiplication to get the rpm value, freq*60/pulses per revolution of encoder). A simple way to take continuous readings is to put a while loop around the daqmx read and the data output of the read. You can also replace the numeric indicator to a waveform chart to graphically display the change of frequency or rpm readings over time.
    You should be able to integrate this as two separate tasks with the pulse train vi you created earlier.
    Hope this helps
    Luke W

  • How to connect an angular encoder to NI9401 for velocity?

    I have an angular encoder connected to a NI9401 daq. I put line A of the encoder to one of the digital inputs and the same with line Z (line B is not conected because direction is not relevant). However I'm having a hard time trying to get the velocity because I haven't been able to count the pulses and all the examples that I have seen they use counter that the NI9401 doesn't has.
    Can anyone help me????

    Hello,
    What system do you have the NI 9401 module in … a compact DAQ or a compact RIO?  Please provide this information.  If you have the NI 9172 compact DAQ chassis, then placing the NI 9401 module in slots 5 or 6 will give you access to the counters on the back plane of the chassis.
    NI cDAQ-9172 User Guide and Specifications
    Samantha
    National Instruments
    Applications Engineer

  • Network Camera connection with Live encoder

       Hi,
              Is it possible to connect network camera with Flash Media Live Encoder rather than USB camera.
    Thanx in advance.

    Yes, you will be able to publish to FMS. Platform independence of FMS is not related to wrting the filter. Please keep following points in mind before writing the filter:
    1. Writing the filter will simply list the network camera as a device on your system, so that FMLE can access it.
    2. Your camera should provide raw frames (RGB, etc format) for FMLE to encode. Even after writing the filter you may not be able to capture and encode using FMLE if the camera doesn't provide raw frames.
    Please let me know if things are still not clear.

  • I want to be connected to the encoder with umi board.

    hi anyone help me please !!!
    i'm beginning labview
    I use labview 2009 sp1 , MAX 4.6 ,PCI 7354 ,umi 7774 motion interface. i want to drive DC servomotor and p
    osition control with encoder.
    i have questions?
    UMI 7774 have to connect with encoder that have A,A-,B,B-,index,index- ?
    If not how to do?
    Do i have to wire inverting gate?
    I want to test the encoder test on MAX and wiring follow manual but no have encoder signal.
    If measuring with oscilloscope have a signal. why is it?
    thank for any advice you have
    P.S. sorry my writing is bad. If i am not polite so sorry.
    Solved!
    Go to Solution.

    i use second hand motor " pittman 14202 series".
    a name plate is 14202D335-R1 385-22-001 24VDC 1000CPR 05-10-00.
    a encoder maybe E30A. It have not Index channel because i measure A signal and Index signal.they're inphase.It's strange.
    Do you think about it?
    and if i haven't Index channel. what should i do it?
    thank you very much for reply
    Attachments:
    E30 encoder.pdf ‏99 KB
    Pittman Motor__14202 Series.pdf ‏44 KB

  • How do I read DAQ at every state change on a quad encoder over RTSI

    I have successfully routed either A or B encoder phase to the DAQ card over RTSI, but this gives you 1/4 of your encoder counts to the DAQ. Is there a way to trigger the DAQ clock with both the rising and falling edges, A and B signals so you get a DAQ reading with every encoder count?

    mikema111,
    From your explanation I am assuming that you are using an X4 encoder. Unfortunately there isn't a way to combine both Phase A and Phase B (rising and falling edges) into a DAQ scan clock without external circuitry.
    However, one possibility would be to use a sort of XOR circuit to merge the two phases into one signal and then pass that signal into one of your analog input channels. You could then setup that analog input channel for windowed analog input triggering. As the TTL pulse rises through the window an AI Start Trigger pulse is generated and then another pulse is generated as it passes back down through this window. Pass the AI Start Trigger pulse into a counter setup for retriggerable single pulse generation and you will have your DAQ scan cloc
    k on the output pin of the counter.
    If you are just interested in counting the pulses in both Phase A and Phase B you can configure one counter to count on the rising edge and the other on the falling edge as described in the following Knowledge Base:
    http://digital.ni.com/public.nsf/websearch/15170E05F0F4B65C86256E2400812CD9?OpenDocument
    I also recommend reading the following document that discusses several different options when using a quadrature encoder with an E Series board (DAQ-STC).
    http://zone.ni.com/devzone/devzoneweb.nsf/Opendoc?openagent&36BD71244BB26FC886256869005E541B
    Ames
    Applications Engineering
    National Instruments

  • Newbie needs help on Quad encoder for cRIO 9421

    Hi,
    When using PCI 4451/4452, we can use the GPCTR0_UP_DOWN Signal and input this signal on the DIO6 pin; this general-purpose counter 0 counts down when the pin is at a logic low and counts up when it is at a logic high.
    If we are now using cRIO 9421, how do we achieve both the count up and count down capability which can be easily done using DAQmx?
    Thanks thanks!
    -Mr Bing

    Mr. Bing,
    You can do the UP/DOWN counting programatically. You can modify the examples in this folder for your application C:\Program Files\National Instruments\LabVIEW 7.1\examples\FPGA\Counters\Event Counters. To count UP you can increament as you get the events and to count DOWN you can intialize a numeric control and decreament the value as you get the events.
    Ame G.
    National Instruments

  • 6602 quadrature encoder with c code

    I need to implement a quadrature encoder on the 6602 board usinng c language.
    I found some good function, for example  DAQmxBaseCreateCIAngEncoderChan, but i think this function is only for DaqmxBase,
    is there some similar function for Daqmx, or have i to do it myself?
    From where can i start?
    Thank you in andvance
    There are 10 kinds of people. Those who understand binary notation, and those who do not.

    Solved my problem.
    I installed the daqmx version on CD and it was old.
    Now i installed the new version daqmx 9.0 , that i toke from the site.
    This version has the function i need  DAQmxCreateCIAngEncoderChan,
    it compiles , now i have only to attach my encoder.
    Thank you lo stesso
    Message Edited by blacksocket on 02-08-2010 05:32 AM
    There are 10 kinds of people. Those who understand binary notation, and those who do not.

  • How to generate 2 breakpoints on an encoder using the NI-7344 without physically connecting the encoder to a second axis?

    I'm using the NI-7344 motion-controller (for the control of 2 servo-motors) in combination with an E-series DAQ-card.
    I need to acquire data at two different scanrates using breakpoints over RTSI, one channel for example every 10 encoderpulses, the second channel for example every 200 encoderpulses.
    I'm using on onboard program that uses the modulo breakpoint for generating a pulsetrain over RTSI, but I also need a breakpoint (from an unused axis) to generate the other pulsetrain.
    Is there perhaps a way to tell an axis to use the encoder from another axis so the breakpoint can be generated at this axis without having to connect o
    ne encoder to two different axis?
    thanx

    Hello,
    I am alittle confused about your application, but maybe this will answer your questions. In the "Configure Breakpoint VI" you can set the Axis or Encoder input as the following: Axis or Encoder is the axis or encoder to be controlled. You can enable Breakpoint Position on encoders mapped to axes 1 through 6 or directly on encoders 0x21 through 0x24.
    So you can use an encoder that is not mapped to that axis.
    Please let me know if this was not your question.
    Regards,
    Andy Bell
    Applications Engineer
    National Instruments

Maybe you are looking for

  • Import images from a scanner using WIA Support (Windows only)

    I use an Epson 4490 Photo scanner together with Photoshop CS 4 on a 64 bit Vista computer.  I have always been able to open scanned images in Photoshop once the scan was completed. Recently I updated the Epson driver and when I scan in 'Professional

  • Sending data through network takes forever

    hi fellow java developper i'm developping a program that hides files contents trough xml messages in order to exchange securily from a intranet to an extranet whitout having to use ftp and port 21. The problem is it takes over 22 seconds to send a 22

  • Customer Exit for Calendar Month based on the day (system Date)

    Hello, I need help in creating a customer exit for Calendar month without the user input. The logic is as follows: For the BEx variable created with customer exit option and no user input: If the day on the system date falls in between 1 to 14 take t

  • Export InDesign pages in jpeg, then rename the jpeg automatically.

    How to rename separated jpeg files automatically ? Exemple of my InDesign document : Page 1 :      Product #26356 Page 2 :      Product #920009 Page 3 :    Product #910573 I need to export them in jpeg after for a technical reason. But, how to rename

  • Nokia email e71

    Hello, Now I have began to use email much more seriously and of course for my old and lovely phone e71 the software support is awful. I want to ask the community a few questions, if I may: What is the latest version of nokia email or nokia messaging?