first version of pwlTraceGen without syntax error