Case Studies

High-Speed Pharmaceutical Vision Inspection with NI Vision

NI Embedded Controller
Posted in LabVIEW, Machine Vision, Manufacturing Automation and Intelligence, Medical and Pharmaceutical, Test & Measurement Automation

Summary

DMC developed a vision system to inspect a proprietary pharmaceutical product and the text printed on its packaging.  Due to the sensitive nature of distributing pharmaceuticals, DMC's client needed to ensure that 100% of their products were the proper size, had enough marking to identify the product, and that the product was accurately located in its package.  The client also needed to ensure that the text on the packaging was legible and accurate. DMC's solution needed to ensure product accuracy while meeting the demands of the high-speed packaging line.

Solution

DMC implemented a vision system using four line scan cameras - two cameras acquire images of the products (4 per camera) before the package is closed and the other two cameras acquire images of the text printed on the outside of the packaging. DMC developed a LabVIEW program which runs in Real-Time on the NI embedded controller to acquire, process, and inspect images from all four cameras.  The images of the product were inspected to ensure proper size, shape, positioning, absence of foreign objects, and presence of marking text.  The text on the package is inspected for size, position, density, contrast, and sharpness.  The system is capable of running inspections at the maximum speed of the machine: 1440 products and packages per minute.

The built-in FPGA on the NI embedded controller is utilized to count encoder signals, trigger the cameras, and initiate processing in the real-time code.  After inspection is complete, results are sent to a PLC via EtherNet/IP communication so that the machine can reject bad packages at the end of the line.

A separate LabVIEW program runs on the Windows Touchscreen PC to provide the user with an interface to monitor and configure the vision system.  A supervisor may enter a password to access and edit the recipe parameters that define the inspection criteria.  This gives the system the flexibility to handle a variety of product types.  The interface also calculates rejection rate statistics (separated by failure mode) and displays trend graphs to the operator, providing the operator with diagnostic information to help maximize yields.

Customer Benefits

  • Reduce potential liability by inspecting 100% of products, rejecting incorrect doses of the drug and products that do not meet quality standards.
  • Increase yield by tracking statistics about rejected doses so that the operators are able to isolate and resolve problems with production.
  • Easy configuration of custom recipes provides flexibility to inspect a variety of product types and sizes.

Technologies

  • National Instruments Compact Vision System and NI Industrial Controllers
  • National Instruments  LabVIEW FPGA
  • Basler Runner Line Scan Camera (ruL2048-19gm)
  • Touchscreen HMI PC (Windows 7)
  • NI LabVIEW Driver for EtherNet/IP
  • NI LabVIEW Real-Time