add laserpulse new function in main-1.cpp