AnsweredAssumed Answered

How to sweep string value?

Question asked by kkladopoulos Employee on Jan 27, 2004
Latest reply on Apr 16, 2004 by kkladopoulos
Try to set PhaseNoiseData to

"1000 -70 10000 (-Pw_PN) -40000 -60 400000 -90"

Should the -40000 after (-Pw_PN) be 40000?

An alternative is to set PhaseNoiseData to a variable, e.g. pNoise, and set pNoise to

pNoise=strcat( "1000 -70 10000 -", sprintf( "%d", Pw_PN ), " -40000 -60 400000 -90" )

if Pw_PN is an integer.

If Pw_PN is a real number then replace %d with %f.  

Outcomes