Real-Time PC-based Platform for Building Industrial Automation Applications