Thanks, your solution works. I also tried to make it in different way but it has problem with avg. let instpower=supply*vv1#branch let activepower=avg(instpower) let vout_rms = sqrt(mean(out*out)) let output_power= vout_rms*vout_rms/25 let eff=-1*output_power/activepower let eff_last=length(eff)-1 print eff[eff_last]
I think that this solution is the best, but i am wondering about commented line. You write a comment: let activepower=avg(instpower) $ This does not do what you think it does Thanks for it.I thinking about replacing avg by mean . But i want to calculate this only in range 15us to 20us.
You write a comment: let activepower=avg(instpower) $ This does not do what you think it does Thanks for it.I thinking about replacing avg by mean . But i want to calculate this only in range 15us to 20us.
You write a comment: let activepower=avg(instpower) $ This does not do what you think it does Thanks for it.I thinking about replacing avg by mean .
Thanks, your solution works. I also tried to make it in different way: let instpower=supply*vv1#branch let activepower=avg(instpower) let vout_rms = sqrt(mean(out*out)) let output_power= vout_rms*vout_rms/25 let eff=-1*output_power/activepower let eff_last=length(eff)-1 print eff[eff_last]
Hi, I have problem with measure statement and vectors. .control tran 0.1n 20u 0 0.1n let instpower=supply*vv1#branch let activepower=avg(instpower) meas tran inputpower avg instpower from=15u to=20u meas tran outrms RMS out from=15u to=20u meas tran outpower param='(outrms^2)/25' meas tran efficiency param='100*outpower/inputpower' .endc I get following error: inputpower = -5.102376e+01 from= 1.500000e-05 to= 2.000000e-05 outrms = 3.54502e+01 from= 1.50000e-05 to= 2.00000e-05 measure 'outpower' failed...
Hi, I have problem with measure statement and vectors. .control tran 0.1n 20u 0 0.1n let instpower=supplyvv1#branch let activepower=avg(instpower) meas tran inputpower avg instpower from=15u to=20u meas tran outrms RMS out from=15u to=20u meas tran outpower param='(outrms^2)/25' meas tran efficiency param='100outpower/inputpower' .endc I get following error: inputpower = -5.102376e+01 from= 1.500000e-05 to= 2.000000e-05 outrms = 3.54502e+01 from= 1.50000e-05 to= 2.00000e-05 measure 'outpower' failed...
Hi, I have problem with measure statement and vectors. .control tran 0.1n 20u 0 0.1n let instpower=supplyvv1#branch let activepower=avg(instpower) meas tran inputpower avg instpower from=15u to=20u meas tran outrms RMS out from=15u to=20u meas tran outpower param='(outrms^2)/25' meas tran efficiency param='100outpower/inputpower' .endc I get following error: inputpower = -5.102376e+01 from= 1.500000e-05 to= 2.000000e-05 outrms = 3.54502e+01 from= 1.50000e-05 to= 2.00000e-05 measure 'outpower' failed...