Guilin Sun
Ansys Employee

I am not sure what do you mean "for the script". I tested a file and it works fine.

Have you upgraded the software version?  what is your OS version?

If this hinders your project and could not find a way to resolve, I would suggest that you disable the other source ad then use the default sourcepower to get the specific source result, with the given frequency.