Hello,
I would like to create a function which gets the following parameters:
(func_name, parameters, parameter_name_to_sweep, start_value, step_size, stop_value)
The function should call the func_name function with the parameters list and will sweep one parameter using the start_value/step_size/stop_value.
The function will return a family of the results from running the func_name vs sweep.
So in essence, I would like to be able to use any calculator/ocean function as the func_name parameter.
I'm not much of a programmer, I guess what I'm looking for is a function pointer ?
How do I call a function by "parsing" a string ? and how do I parse the original parameters back into the function call ?
Any suggestion how to pass the parameters to that function ?
An example of the function could be:
sweepCalc(valueAt VT("signal") "n_xValue" 0u 1u 10u)
This will call the valueAt function 10 (or 11) times each time at a different time and will return a family.
Perhaps even some clever use of famMap with linRg function is possible.
Any suggestions how to implement this ?
Thanks in advance,
Michael