Developing a Real-Time (Labview Based) Productivity Measurement System for Textile Factories.