I have added a function block into my schematic which makes a calculation based on the value of a resistor in the schematic. Been looking at the manual, have gone through the forum, but I can’t find a way to refer to the resistor value. I tried R1, [R1], and other possibilities, but I’m always getting an error saying the variable is not defined. What is the correct way to do this?
You would need to define the resistance value by a variable, e.g., R = 1;, in the initialization command window of the Simulation Parameters Window (from the Simulation menu). Then, the R variable could be used elsewhere and you would have consistent values for all instances.