PCI-6220 and Absolute Encoder

Hi,
Can anyone point me to a C# compatible example that would serve as a good starting place for determine the position of an UUT?
Using 12-bit absolute encoder with PCI-6220, I need to determine if the UUT (with optical encoder mounted) is moved either up/down 30 degrees from 0.
This piece of code will be called from another API to tell the motor to move then stop moving when the desired position of the UUT is found.
Any advice would be appreciated.
Sonny

Hi nimaq,
If you are using the DAQmx drivers, you can find the .NET examples here:
C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\DotNET2.0\
The position measurement example is located here:
C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\DotNET2.0\Counter\Measure Position
Chris Bolin
LabVIEW Partner Program, CLA

Similar Messages

  • Synchronizing 1 PCI 6220 and 2 PXI 6711 Boards

    Hello,
    I have created a program that writes both digital signals to the PCI 6220 board and analog functions to two 6711 boards.  Upon testing the output of these boards on the oscilloscope, I discovered that the timing of the digital board was about a half of a second behind the timing of the analog board.  If anyone has any ideas about why this may be happeneing itd be greatly appreciated.  I believe it is a synchronization mistake.  I have the boards connected with an RTSI cable but i never reference the cable in the program.
    Attachments:
    Ultracold Bloom User interface.vi ‏77 KB

    One solution would be to run a wire (a real one! you know with copper inside it? ) from the counter output to one of the PFI lines on the same card and then tie the PFI line to RTSI bus...
    There might be a more elegant way of doing it that someone could share, but this would certainly work. Just make sure that you document in your code the assumption that this jumper wire is in place.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Synchronize NI 6221 and absolute encoder

    I need to synchronize my NI USB 6221 with a single turn absolute encoder in serial configuration. The encoder has 2 clocks inputs (+ and -) and I don’t know  which number of line of Digital/IO that I have to use. How can I synchronize the NI acquisition data with encoder? I´m just a student and I don´t know very much about this type of equipments ( I don´t speak English very well too) so all kind of information will be very good for me.Thanks.
    Obs.: I’m using MATLAB for make the program’s interface of acquisition.

    Hi Cold
     I attach three links for you can start your application:
    - Quadrature Encoder Measurements: How-To Guide:
    http://zone.ni.com/devzone/cda/tut/p/id/7109
    - NI USB-6221 BNC:
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/203867 
    - DAQmx (E/M/S-Series Cards) with MATLAB®:
    http://digital.ni.com/public.nsf/allkb/7076035AEA7835FE8625707300520720?OpenDocument
    If you want, you can make contact in portuguese.

  • Pci 6601 for decoding renishaw and new encoder

    i have a pci 6601 and scb 68 that was recommend for decoding a renishaw encoder.
    it works great for determing the position of the renishaw.
    the renishaw encoder type is
    rgh24x30a00a
    http://www.renishaw.com/en/rgh24-linear-encoder-system--6444
    i would like to try the pci 6601 on a similar encoder.
    With this new encoder, im not seeing any output from the pci 6601. 
    I can see the pulses on the oscilloscope so im alittle confused.
    The pulses appear center around 2.5 volts and are around 1v in amplitude.
    In the same manner as with the renishaw, B- goes to counter 0 aux, a- to 0 source, and grond to ground.
    I believe the particular renishaw has a 1v peak to peak sinusoid pair (sin / cos).
    The new servo has a build in encoder with one volt peak to peak sinsuoid centered at 2.5v.
    Any ideas on why no counter number is showing?
    Message Edited by jimmyinct3 on 11-14-2009 05:57 PM

    If the signal is centered around 2.5V as mentioned, then it sounds like you will have difficulty meeting the TTL thresholds for hi/low. A TTL input signal is defined as "low" when between 0 V and 0.8 V with respect to the ground termina...  Scope both encoders and compare the signals that you are seeing on both.  What are the differences?
    Regards,
    h_baker
    National Instruments
    Applications Engineer
    Digital Multimeter Resources

  • PCI-6220 COUNTER (Labview): Does "Sample Source" = "Gate Source"?

    Hello,
    I'm using Labview, DAQmx, PCI-6220 (Counter0).  I connected an incremental encoder signal to the source input of CTR0.  In Labview, the "DAQmx Timing" vi requires that the "source" input be wired.  Does this "source" actually mean the source of the sample clock vs. the "Source" input to the counter?
    Thanks for your assistance,
    Chris

    Chris,
    When you talk about using a DAQmx Timing vi, I assume that you are performing
    buffered event counting or any other task that performs buffered acquistion. 
    You can see an example that performs buffered event counting in NI Example
    Finder called Count Digital Events Buffered - Continuous.  The DAQmx
    Timing vi in this example is used to read the current state of the counter
    into memory at a constant rate.  The source input of the Timing vi in this
    case means the source of the sample clock.  This clock is what determines
    when the counter state is read and stored into a buffer.
    If you are performing event counting, and do not need buffered acquisition (no
    sample clock), you can look at example Count Digital Events.vi in Example
    Finder.  In this example no DAQmx timing vi is used.
    Regards,
    Jesse O.
    Application Engineering
    National Instruments
    Jesse O. | National Instruments R&D

  • PCI 6220 how to route I/O signals?

    Hi
    I am using a PCI 6220 connected with a SCC 2345, on labview 71 XP based.
    I have 24 V signal and I want to divide the frequency, and send out divided signal on RTSI 0.
    I tryed to use a SC-DI on the 2345, but I don't know how to route the DI signal to the CRT0 source signal?
    Any Ideas?
    Laurent

    There is an infodoc numbered 48430 which helps

  • Generating a 6X Sine Wave using an absolute encoder

    How do I get an Analog Signal Generation Synchronized to six times the frequency of an absolute nine bit parallel encoders output with adjustable phase relation. I am using a PXI-6533, a PXI-6711 and have available a PXI-6070E.
    Now the long version of the problem. I have a 9-bit absolute encoder connected to a motor shaft (up to 420Hz). From the encoders 9-bit (0-511) parallel signal I need to create a synchronized 6X sine wave (up to 2500Hzwith an adjustable phase relation. Picture an electronic timing chain. For every cycle of the encoder, I need to produce six full sine wave cycles with a variable tuned phase shift. I have LabView 7 w/RT.
    I have tried to use the Update Clock (PFI5) to step through a buf
    fer but it seems to drop an update every so often. I also have tried to monitor the bit-0 line to determine freq. and scaled the update rate accordingly but the phase shifts all over the place. Does anyone have any ideas on the matter ? I would really appreciate it! Thanx….Phil

    Phil,
    Another different option to solve your application would be to use the new LabVIEW FPGA module and the 7831R reconfigurable I/O hardware. Using these tools you can configure the FPGA on the board to generate the sine wave based on the 9-bit parallel input. The most simple setup would be to have a lookup table in the FPGA that has a corresponding output value to each of the 512 possible input values. This 512 sample table would contain 6 cycles of a sine wave. Every time the parallel input changes the analog output value would be updated accordingly from the lookup table. This setup would also allow to easily add a phas
    e shift of the output by shifting the point in the lookup table you are reading by a known constant.
    Christian L
    NICS
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

  • Connecting Yaskawa Sigma II Servo Drive (SGDH) to PCI-7344 and UMI-7774

    Hi,
    I have  NI PCI-7344 and UMI-7774 and i want to
    Connect the UMI-7774 to Yaskawa Sigma II Servo Drive (SGDH) , the servo motor drive is connected to the servo motor with original Yaskawa cables.
    1.  do you know if National instruments provide special cables to connect the UMI-7774 to the Yaskawa Sigma II Servo Drive (SGDH) ?
         i know there is special cable to connect this servo drive to the NI PCI-7390
         http://zone.ni.com/devzone/cda/tut/p/id/5908 
        (you can find in this link that this cable exist: 50 Pin cable for connecting MCA-7790Y to Yaskawa Sigma II Servo Amplifier)
         but this is not the case here, i need to connect the Servo Drive to the UMI-7774..
     2. Where can i find a tutorial on how to configure the PCI-7344 in MAX to send simple commands to the Servo Drive
          i.e.  to run the servo motor from position A to position B (10,000 encoder pulses)
    i'll be gratefull for any help
    Regards
    Moti

    Hi MotiM,
    We do not have a cable that will let you directly connect the UMI-7774 to a Yaskawa Drive.  We do sell cables that will have the Dsub connector to match the UMI-7774 with pigtails to wire to the drive.  If you take a look at the product page for the UMI-7774 you can see the different cables listed under the accessories.
    To perform a simple move in Measurement and Automation (MAX) is very simple.  In MAX under NI-Motion select your PCI-7344. Under this section select the settings option (by default it will be called Default 7340 settings).  Select the Servo radio button.  Initialize your controller.  Then you can select Interactive and 1-D Interactive and command your motor from there.  I have attached an image with the important areas highlighted for you. 
    Message Edited by Adam_H on 09-19-2008 03:41 PM
    Adam H
    National Instruments
    Applications Engineer
    Attachments:
    MAX.jpg ‏93 KB

  • Work with PCI-6052E and PCI-6601 simultaneously

    Hi, I'm working with PCI-6052 for bufered data output and PCI-6601 for read two encoders at same time, when I work with single board I don't have problems but when I work both simultaneously I have a problem only I can out data or only I can read the encoders but not both at the same time. How I make this?

    Hi,
    You probably have one task in LabView running in series after the other. Both of these tasks require a loop. Your buffered data output needs to be written in continuous fashion in a loop (I believe) and your encoder measurements are being read constantly as well (should be in a loop). Try experimenting with these two suggestions.
    I would copy both programs into 1 VI and keep them running completely separate. LabView will be able to assign each a different thread so they should be able to run completely in parallel. Therefore you would have 2 parallel loops that are not connected at all.
    You can also create two completely different VIs and run them in parallel. There is no reason why the two different programs would interfere.
    Hope that he
    lps. Have a good day.
    Ron

  • How to connect heidenhain L476(semi absolute) encoder to 7344

    We are trying to connect a heidenhain L476 (semi absolute) encoder to the 7344 motion board,
    is there  NI software to handle this?  (in this system when the power goes off you only have to move about an inch
    to get a absolute reading instead of going all the way to absolute "0" ,sounds nice but doesn't make it any easier for me to set up the controller!!!)
    The people at heidenhain gave me a formula but I have no experience with the ni s/w and don't know
    how to approach the problem.
    Thanks for your help

    Got the info I needed disregard post

  • PCI-6220 Analog output to Biometrics DataLOG?

    Hello all,
    I am trying to send an analog signal to our Biometrics DataLOG device.  Currently, I have the PCI-6220 card installed and am running the signals through a BNC-2111 DAQ.  I am getting no output from our card through our DAQ, any suggestions?  Thank you!

    Provide some detailed information. How is the 6220 configured? How is it wired to the bnc? Do you see an output when you test the device in MAX? Are you checking the output with a meter or a scope or are you just relying on this unknown (to most of us) logger?

  • Help PCI 6220

    Hello I have a final project study on the design of a tester and I want to develop the program on the LabWindows / CVI for the  PCI 6220 National Instruments  if you help me  thank you

    Hello,
    Maybe you should explain more precisely the functionnalities required for your tester.
    Beyond that, you can find many DAQ examples in CVI...

  • [Question] PCI-6220: digital level at the pause of a continuous impuls train with external trigger

    Hallo,
    I'm trying to use a PCI-6220 card to generate a continuous impuls train which will be paused at an external trigger. I've used the example code in the example library to generate the impuls train. The idle state of the impuls train is set to be high. But I figure that die digital level at the pause is sometimes high and sometimes low. I suppose that the level stays at the exact time when the pause begins?
    Is my assumption correct? Is there any way to let the impuls always pause at the idle state, like it will then be paused after a full impuls is finished? Any tips or links will help. Thanks in advance.
    Wei

    Yes your assumption is right. The output is latched to the last set value.
    If you are generating the pulse through the counter,  setting the Idle state in Create Virtual Channel.vi   doesnt help?

  • DAQmxbase with pci 6220

    I have developed C code to sample a USB-9215A using nidaqmxbase on windows xp. Installing only nidaqmxbase (not nidaqmx) the code ran well. Now on the same machine I have installed a PCI-6220 card and am trying to reuse the same code (for both devices  Dev1, Dev2). After trying many different strategies it is not working and the USB device no longer works either. Sequence of events:
    1) There did not appear to be a driver for the 6220 using nidaqmxbase
    2) So removed nidaqmxbase and installed nidaqmx (940f1) , the device is now found (Usb on Dev1 and PCI on Dev2)
    3) Tried to compile the code but it appears  nidaqmxbase is not a subset of nidaqmx as indicated in the documentation (e.g. calls to "DAQmxBase****" functions are not found when linking against NIDAQmx.lib) and code will not compile
    4) So reinstalled nidaqmxbase (345) over the top of nidaqmx, code now compiles (linking against nidaqmxbase.lib) but will not run (for either USB or PCI)
    5) Error is DAQmxBase Error: 2288296
    6) The devices do not appear to be available to nidaqmxbase e.g. program "lsdaq" does not show devices
    So the question is do I need to ditch the nidaqmxbase software and re-write it using nidaqmx functions or can nidaqmxbase be made to work with the pci-6220 (my preference)

    Solution found
    It seems that 6220 is not supported in nidaqmxbase, so removed all ni software and installed nidaqmx only
    Then the code can easily be ported by changing all DAQmxBase**** function calls to DAQmx***** function calls

  • Problems with PCI-6220

    Hi Labviewers,
    I'm using a a PCI 6220 card for AI and having some troubles (LabView 7.0 / XP on industrial PC / DAQ-mx 7.4 but I also tried with other versions).
    1) the card is not "plug'n'played", at least not completely; it's recognised as a NI card, but with no model: I need to reinstall the driver and let XP to search automatically the correct driver to have it working
    2) my program works well if manually launched, but doesn't acquire data when launched at Startup; in this last case, after the program is closed, MAX is not able to access the card (it cannot even reset it!), moreover, restarting/switching off the PC does not help: the only way to get the card working again is to completely uninstall the driver and reloading it!
    I found a workaround, though: keeping the program into the Startup folder, I delayed launching by some seconds.
    Has anyone seen something similar?
    Paolo
    Paolo
    LV 7.0, 7.1, 8.0.1, 2011

    I think you found the answer yourself by delaying the startup of your application.
    1) my suggestion is to always use the latest Driver. NIDAQmx 8.1 is out and available for free download.
    2) There might be something related to your specific HW that shows this behaviour. Basically, the driver is loading up sometime after the app has started. This means that when the DAQmx functions are called, the driver has not yet gotten hold of the PCI-6220.
    Try and change the PCI Slot for the card and see what happens. Anyways, adding a few seconds of delay at the beginning of your application may just do the trick.
    3) Also, did you check if your PCI bus is supplying 3.3 V as well as 5V on the rails?
    AlessioD

Maybe you are looking for

  • Attachments from Workflow to ABAP Webdynpro launched from UWL

    Hi All, You might have seen a recent post from me for sending attachments from ABAP Webdynpro to Workflow. I could do that by just calling SAP_WAPI_ATTACHMENT_ADD. I didnt have to create an instance of the SOFM object by passing the ATT_ID from this

  • Color space for picture to use in FCP or DVDSP ???

    I'm using 720x480 TIFF file from Photoshop to import in FCP, should I use Adobe RGB 1998 for the color space ? What about DVDSP ? The same ? Merci, Jean

  • HT4623 iPhone 4 will not restore and update. (Error 26)

    My iPhone 4 will not restore and update on iTunes. Error 26. I have tried everything. Removing battery. Removing motherboard. DFU/Recovery Mode. No luck. Could it be hardware issue?

  • BT Infinity 2 - Satisfaction clause

    Once you have ordered BT Infinity you can cancell up untill the installation has taken place. You may cancel your agreement for BT Infinity by contacting us at any time up until the service start date. However you will be liable to pay for any work t

  • BAPI_BUPA_CENTRAL_CHANGE

    Hi Friends, please help me out!!!! am changing the search terms of a BP using FM BAPI_BUPA_CENTRAL_CHANGE and also i've used BAPI_TRANSACTION_COMMIT.... But still the DB is not updating and it is not throwing any error...... here is the  piece of cod