11-04-2006 11:19 PM
I am a brand new LabView user and need guidance capturing the apex of a linear encoder’s travel using an M series PCI-6621 card and LabView 8. We have a new 8 axis CNC lathe and need to quantify a potential manufacturing defect and it is impreitive this is done in a compressed time frame. Quite simply we need to move a single axis of the machine onto a linear encoder approximately 12 times a minuet for 12+ hours and capture the apex of travel in order to document any accumulated position change/error over the test period. At this time we have no convenient way to trigger the measurement event outside of programming a dwell at the position to be captured. Any guidance will be greatly appreciated.
11-05-2006 01:14 PM
Hi HB,
Are you using a quadrature encoder? Are you currently able to read the encoder? A quadrature encoder would make this relatively simple (no triggering would be needed), since it would know its absolute position. If you are not using a two pulse encoder, I would try to find another way to capture the apex angle /distance of the tool. It seems like a last resort to add a dwell in the program just for measurement sake. In other words i would not deviate from the original program in question. There is almost a guaranteed likelihood that there is going to be a change in the angle time slope when the tool transitions from foreward to reverse. This will take some playing around with. Personally I would log each degree increment to a file so I can analyse later. Just some thoughts. BTW I have found the encoder position global channel works best (Quadrature only).![]()
Some more thoughts- personally the sensor of choice would be an LVDT. It is less prone to error due to vibrations and deflection measurements can be made as well.
Could you quantify the repeatability error (.001").
Chris
11-06-2006 10:24 AM
11-06-2006 11:01 AM
11-06-2006
11:59 AM
- last edited on
04-22-2025
11:18 PM
by
Content Cleaner
Hello HB,
With the help of those great suggestions from Chris, you've identified that you are using a two-phase quadrature encoder, which is good news since this is the type of encoder most easily interfaced with National Instruments DAQ devices. Chris asked another good questions about what specific DAQ device you are using, as the method for connecting the encoder and programming your application will depend on this. If you have a choice, I would highly recommend you use either an M Series Multifunciton DAQ device or a TIO Series Counter/Timer device to read your encoder signal, as these devices natively support two-phase quadrature encoders.
If you use one of these devices, I would start by recommending you take a look at the help documentation for your device, such as the M Series Help manual if your using an M Series DAQ device. The M Series Help manual has a section about Position Measurements which contains instructions about how to the A, B, and Z signals from your encoder to the PFI (programmable function input) lines on the device. Again let us know what device you are using and we can point you towards more specific documentation.
The next step is to program a position measurement task in LabVIEW. The DAQ Assistant, found on your functions palette under Measurement I/O > DAQmx, provides a wizard-style interface for easily programming your position measurement task. I would also recommend that you take a look at the DAQmx shipping examples found under Help > Find Examples. Specifically, I would take a look at the example titled Measure Angular Position.vi, found under Hardware Input and Output > DAQmx > Counter Measurements > Position.
I hope this information helps and let us know some more information about your specific hardware.
Regards,
Travis G.
Applications Engineering
National Instruments
www.ni.com/support
11-07-2006 07:31 PM
Chris & Travis,
Thanks for the help. I would love to take you up on your offer for help with the encoder hook up. Currently I have a PCI-6621 M series DAQ board (P/N779066-01), SC-2345 carrier, 2 ssc-FT01 feed through moduals and a couple ofbrigdes for strain guages (other application). I was looking through the manual this afternoon but did not find anything that directly applied to my encoder. My local salesman helped me pick out the hardware based on another application and I thought the SSC-FT01s were for the encoder but it seems I might need to use the break-out block in the SC-2345. Any suggestions?
Thanks,
Bob J.
11-08-2006 01:30 AM - edited 11-08-2006 01:30 AM
Message Edited by Chris Co on 11-08-2006 01:31 AM
Message Edited by Chris Co on 11-08-2006 01:47 AM
11-08-2006
01:41 AM
- last edited on
04-22-2025
11:19 PM
by
Content Cleaner
Chris,
This is good news. Someone else sent me a NI document stating that I could not use a differential encoder on an M series board. I'll try this first thing in the morning.
http://digital.ni.com/public.nsf/allkb/58f4c61446030c1386256feb006a19ce
Bob j