Need to use quadrature encoder to trigger (RTSI) single point DAQ on 2 channels of E-Series DAQ, using 6602 NI-TIO for counting encoder pulses.

This is for LV6i, W2000, all PCI equipment.
Using a quadrature-measure position-VI, I get 7200 edges/rev from the encoder of my physical system. This equates to 0.05 degrees of angular displacement. This amounts to an angle stamp as opposed to a time stamp.
I need each of these 7200 edges (source: 6602 NI-TIO) to trigger (using RTSI) the acquisition of a single sample from each of 2 channels on an E-Series DAQ board (maybe more channels later). I only need/want one rev (7200 samples per channel) of data for each run of the test. As I write this I think I want pre-triggering and a little more than a rev of data. So the
re is a buffering step. Anyway, you can get the idea.
I need this angle stamp and the DAQ samples to be placed in an array and on the hard drive for graphing and other mathematical treatment, analysis, etc.
I think there must be a way to use the quadrature output of the counter/timer as a scan clock for the DAQ board, but I haven't seen an example to guide me.
It seems like all of the RTSI or other triggering examples I have seen trigger once to start a continuous scan, not a series of discrete samples repeated quickly. I am not sure how to fill an array with this data. Again, examples are for continuous sampling, not a series of discrete readings.
Any hints on any part of this task will greatly appreciated. This is my first LV project.

Sounds like a fairly ambitious first project!
I assume your 7200 edges/rev come from an encoder with 2 channels in quadrature which each provide 1800 cycles/rev. You can clock in analog data at 1800 scans/rev with either of the two encoder channels, but will probably need an external quadrature decoder circuit to produce 7200 scans/rev. Either method can be done with screwdriver and wire or else by using another counter from the 6602 and the RTSI bus. Here are two approaches in detail, but you could mix-and-match as needed.
Note also that if you can be sure that your reference encoder will be uni-directional, you wouldn't need to measure position -- position could be determined by the array index of the analog scan data. This would simplify things greatly.
1800 scans/rev, screwdriver & wire
Wire both encoder channels to your 6602 breakout box and configure your counter for the 4x quadrature option. Send a wire from one of the encoder channel connections at your 6602 breakout box to a PFI pin at your E-series board breakout box. Config the analog acquisition to use an external scan clock and specify the correct PFI pin -- there are built-in examples that will guide you. Now one edge of one encoder channel acts as a scan clock for your analog acquisition. Inside the 6602 breakout box, route the same signal to one of the default gate pins and configure your encoder counter gate to use that pin as its gate signal. Note that there will be a race condition governing whether the encoder value updates from the encoder inputs before or after the value is latched by the gate.
7200 scans/rev, extra counter & RTSI
Make sure you have a RTSI connector between your two acquisition boards inside your PC. Build a quadrature decoder circuit that will convert your two encoder channels into a clock and direction output. (Consider the LSI 7084 decoder chip or similar). Setup your "encoder" counter for buffered position measurement. Use "Counter Set Attribute" to define "up down" as "digital" (don't use it to define "encoder type"). The clock output goes to the counter SOURCE and the direction output goes to the counter UP_DOWN pin.
Use "Adjacent Counters.vi" to identify the counter considered adjacent to your encoder counter. Configure it for "retriggerable pulse generation". Use "Counter Gate (NI-TIO).vi" to specify "other counter source" as the gating signal. Configure the output pulse specs to be short duration (make sure total of delay + pulse width is less than the minimum period of the incoming encoder clock signals). Use "Route Signal.vi" to send this counter's output onto the RTSI bus, say RTSI 0.
Now configure the analog acq. to use RTSI 0 as its external scan clock. Also configure the encoder counter to use RTSI 0 as its gate signal. Voila! Now your quadrature decoder clock output acts as a scan clock for analog acquisition and a "gate" to buffer your encoder measurement. The short delay helps ensure that the clock updates the position measurement before the gate fires to latch the value.
Respond if you need clearer explanation. There's a fair amount of decent info "out there" if you scour the online help and this website. Good luck!

Similar Messages

  • I want to perform bidirectional i/o using a pci-6534.The problem is that i need to use the same lines for i/p and o/p. is that possible?

    I want to perform bidirectional i/o using a pci-6534.The problem is that i need to use the same lines for i/p and o/p. is that possible? And if it is how an i doing this?

    Hi I Pant,
    The idea that crossed my mind was to tie each of the lines coming from/going to "your device" to two of the DIO lines. Configure one these two ports as input, the other as output.
    When you want to read the state of the line, read from the line configured as input. Similarly, use the other port when it is time to write.
    Provided "your device" uses tri-state drivers/receivers, or can be used in a "wired-OR" configuration, this may work.
    What is "your device"?
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • I need to use Adobe Flash PLayer for an online conference.  I get a pop-up blocked message.

    I need to use Adobe Flash PLayer for an online conference.  I get a pop-up blocked message. I have already unblocked pop-ups as far as I can see.
    Maybe I'm missing something?

    After installing Flash, reboot your Mac and relaunch Safari, then in Safari Preferences/Security enable ‘Allow Plugins’. If you are running 10.6.8 or later:
    When you have installed the latest version of Flash, relaunch Safari and test.
    If you're getting a "blocked plug-in" error, then in System Preferences… ▹ Flash Player ▹ Advanced
    click Check Now. Quit and relaunch your browser.

  • I now have internet thru AT&T Uverse with their wireless router.....do I still need to use my Airport Express for my 2 MACS or can I just unplug it?

    I now have internet thru AT&T Uverse with their wireless router.....do I still need to use my Airport Express for my 2 MACS or can I just unplug it?

    You can just unplug the express and use the Uverse wireless or ethernet directly to it.

  • I deleted all downloaded songs from my iphone but under Settings/About it still shows songs on my phone. How do I fix this?  I need to use that storage space for other things.

    I deleted all downloaded songs from my iPhone but under
    Settings/About it still shows songs on my phone.
    How do I fix this?  I need to use that storage space for other things.

    First thing to try is to reset your device. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider should one appear until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.

  • Need help using Apple Remote Desktop for remote family members

    I am new to ARD and need help. I know there are solutions to do what I am trying to do through LogMeIn and Teamviewer - but I have LogMein right now and the free edtition is going away and I think Teamviewer will do the same sooner or later. I have remote desktop but hadnt used it, so I thought it would be a good thing to implement so I wont have to worry about paying fees for services like LogMein or teamviewer down the road.  Long story short I need to be able to remote help friends and family members with their macs and using applications, mostly through screen sharing and control and file sharing. All of the folks id like to help have home ( not business style ) internet service whith DHCP and non-static IP's.  I have set this up for myselft to test it and I can be at work and search my homes IP address and I can see all the macs with ARD on them and it all works perfectly.  I have a mac mini running Lion Server so the ports are forwarded to that server at my home - this is the only think I can think of that is making my home work and my friends not.  But when I try to help my friends and family after I type in their IP and it scans it sees their computer - ( it shows a grayed out icon and their IP ) but nothing else.  I cannot control or screen share. It says it cannot verify.  I helped my friends put the ARD client ( most up to date client ) on their macs as well.  I was hoping that using ARD would mean not haivng to set up my friends and family's routers for port fowarding and all those details.  Is there anything I can do using ARD to be able to type in my friends IP address have it scan and then see all their MACS at their home and pick the one that needs attention/ help, without port forwarding or heavy set up ?  I guess the root question here is how or what is best way to set up ARD to be used to help people remotley when they are all home users as well, no port forwarding, no static-IP, that kinda thing.
    Any help is appreciated - Im trying to use ARD and not a 3rd party app since im afraid even if they are free now they wont stay that way. Please let me know throughts and sugesstions ;p)

    I poked around a bit and the file seems to be:
    /Library/Application Support/Macromedia/mms.cfg
    I'd like to get some confirmation from Adobe that this is the correct file to push, though (it seems like it as it only contains this):
    AutoUpdateDisable=0
    SilentAutoUpdateEnable=1

  • I need help using customized HTML code for media players in Dreamweaver CC. My client is waiting patiently for this issue to be resolved.

    When I add multiple media players to my web page and upload them online, all four mp3 files begin to play at one time.  I need someone to take me through the steps to create playback controls in the HTML code so that the media players DO NOT play until the viewer clicks the "play button."

    By default, HTML5 videos do not autoplay on page load.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 with Video</title>
    <!--help for older IE browsers-->
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    </head>
    <style>
    video {
        max-width:100%;
        display:block;
        margin:0 auto;
    </style>
    <body>
    <h2>Use 3 File Types to support all browsers &amp; mobile devices:  MP4, WEBM and OGV.</h2>
    <h3>If needed, use this Online Video Converter
    http://video.online-convert.com/</h3>
    <!--begin video-->
    <video controls poster="Your_poster_image.jpg">
    <!--these are 6 sec sample videos for testing purposes. Replace sample-videos with your own files-->
    <source src="http://techslides.com/demos/sample-videos/small.webm" type="video/webm">
    <source src="http://techslides.com/demos/sample-videos/small.ogv" type="video/ogg">
    <source src="http://techslides.com/demos/sample-videos/small.mp4" type="video/mp4">
    If you're seeing this, you're using an
    outdated browser that doesn't support
    the video tag. </video>
    <!--end video-->
    </body>
    </html>

  • I need to use my new computer for my existing iphone. how do i do that without losing all of my data?

    i bought a new computer and would like to use it for my existing iphone. the iphone is registered on my boyfriends computer as of now. i dont want to lose all of my data in the process. how would i go about doing this?

    Copy the iTunes library from your boyfriend's computer to your computer. Then when you sync you won't lose anything.

  • I need to use a plug in for an internet program, but it will not open in Adobe

    Its for a poker website and it keeps saying its not found in Adobe

    See if Deltagraph is still around.  We used to use that for plotting scientific data on Macs.  I don't know if it is at all transferrable with Sigmaplot if you have a colleague who uses it, but if you're doing this on your own I would look at getting DG vs, doing a dual boot  etc.

  • I need to use the 'Ins' key for reverting x,y & z axis co-ords

    Apple selling X3: The Return. However the problem is that the navigational command 'go to' will only take you to x and z coordinates, the pc users then use the 'Ins' key to flip to y axis for the third dimension navigation point. I have tried looking at keyboard mapping but the new aluminium iMac keyboard is an 'Function Key' nightmare compared to earlier version. Any brave soul wishing to answer this one.

    Have to wait for Admin to delete these duplicate message. Sorry peeps!

  • Do I need to use an apple monitor for my pc to work right.

    I brought a G5 tower without a hard drive.  Put a new 1 terabite hard drive and got new osx 10.5.  Having trouble installing the osx.   Seems like the optical drive is not reading the disk.  Swapout optical drives with one from another working pc (dell), still not reading disk.  Do I really need to have apple
    keyboard, mouse, and monitor, for it to work properly.  Am I just waisting time and money.

    A windows monitor, mouse, and keyboard will work on most older Mac computers. However you really need a Apple keyboard because there are some different keyboard keys your gonna need like the Apple and Option key that a windows keyboard doesn't have.
    As far as the hard drive I work mostly on windows hardware so someone like BDAqua would be very knowledgeable with that. I seem to think you need the hardware drivers for the G5 that may or may not be with the new OS 10.5? A Dell hard drive will not work with the G5 if it already has a windows OS installed to it, you'd have to reformat the Dell hard drive while in a Dell computer to erase it. Your not wasting your time.

  • Does Stop task reset a quadrature encoder counter?

    I am using an M-Series PCI-6280 board, with one of its onboard counters wired as a quadrature encoder.
    1)I start the counter task, take a set of measurements with the counter, and then stop the task.
    2) The encoder which the encoder counter is monitoring continues to output quadrature encoder signals into the PCI board's counter.
    3) I start the task again, and perform another set of measurements.
    Which of the following occurs?
    Upon starting the task again, the counter's previous value was wiped and the measurements taken in (3) start at 0 counts. 
    The counter keeps the value it had before it was stopped and subsequently started, and the measurements in (3) cumulate on top of the measurements taken in (1). 
    The counter keeps the value it had before it was stopped, continues to increment/decrement position in (2) even after the task is stopped, and when the task is started in (3) the counter value is cumulative with the quadrature encoder pulses in (1) and (2). 
    Thanks in advance for the help. 
    Solved!
    Go to Solution.

    Hello acmap,
    In this case The behavior will be the following:
    Upon starting the task again, the counter's previous value was wiped and the measurements taken in (3) start at 0 counts.
    However, you can specify the initial count value of the counter on the Initial Count terminal of the DAQmx Start Task VI, so it doesn't have to start at zero, and you can implement the behavior described in your second option.
    Daniel

  • I want to use my iPad 2 for fantasy football, I need to be able to enter the draft room but I need flash player. How do I do this seeing flash player doesn't load with apple?

    I want to use my ipad2 for fantasy football and I want to draft with it. How do I do this seeing apple and flash player are not compatible?

    Yea there really is no app or browser you can use. Until adobe and apple settle their differences and realize they should focus on meeting their customers needs my iPad 2 is just a larger version of my iPhone and I still need to use my Mac book for school and work.

  • I need to use silverlight for a photo processing site.  it shows i have downloaded, but it won't go past the page for install now

    I need to use Silverlight by microsoft for a photo processing website.  When I go onto the website and click install, it goes thru all the motions and shows downloaded, but their website keeps telling me to install now.  What do I need to do next

    You won't be able to.  You will need to acquire a special copy.  See the following:
    Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3 -
    http://helpx.adobe.com/x-productkb/policy-pricing/creative-suite-2-activation-end-life.htm l

  • Using output type ET01 for Material Label

    Hello,
    We are looking to implement a label for Deliveries through various processes which include manual and MIGO.
    We have already implemented the GR label using the output type WEE1, however, we need to implement another label for Goods Issue as well.
    From our understanding we need to use output type ET01 for delivery labels. However, we need inputs on how to implement this output type. And can we also print this output form through MIGO, as I understand message is determined only at the delivery level which comes after MIGO?
    Please correct me if the output type ET01 is not meant for deliveries/GI label.
    Thanks,
    Anil Japa

    Hi Anil,
    Can you check this link MIGO
    Regards,
    Madhu.

Maybe you are looking for

  • Can I photocast to more than one .Mac account?

    Is there a way for me to choose which .Mac I'd like to photocast to from iPhoto? I have more than one .Mac account and would like to share different albums to different .Mac accounts.

  • I have a IMac and I want to email a video and it says its to big can i shrink it?

    how to send a email that is to big how to reduce it

  • Naming of bus channels showing up in side chain  menuLogic 9

    Hi In mixer view, Im using a kick which Ive sent to its own bus to use for side chaining, which is on bus 12, Ive installed a compressor on another track (Midi instrument track) in the side chain menu the bus channel just shows up as 12 not the name

  • Ora- 1555 errors

    hi guys, if i get for example : ORA-01555 caused by SQL statement below (SQL ID: dxswvyyhkkg43, *Query Duration=2347 sec*, SCN: 0x0915.5ce46fff):and my -> NAME                                 TYPE        VALUE undo_retention                       int

  • Save Query as SQL

    I am working with Hyperion Interactive Reporting Studio Version 9.3.1.0.0.248 on Windows XP. I have a query which has been built using the DataModel view in Hyperion (similar to a MS Access query). I am trying to find a way to export this query to SQ