sir, i'm doing a project on incremental encoder based position sensor.innorder to validate this i'm trying to read square wave signals from function generator (since optical encoder produses square wave pulses as output). is there any methode to read voltage signals from signal generator using MATLAB simulink softwear..? please answer