StepCalc performs a "step" data lookup based on the inputValue.
module modStepCalc <src_file = "stepcalc.cxx"> { int+IPort2 active = 1; float+IPort2 stepX[]; float+IPort2 stepY[]; float+IPort2 inputValue; float+OPort2 outputValue; cxxmethod+notify_inst+req update( .active+read+req, .stepX+read+notify+req, .stepY+read+notify+req, .inputValue+read+notify+req, .outputValue+write ); };
The modStepCalc module performs a "step" data lookup based on the inputValue input. It finds the first position in the StepX array that is greater than or equal to the input value, and then returns the corresponding value position from the StepY array as output.
active
Used to turn operation of module on and off. If zero, module will not execute.
stepX[]
Input array of float values which are used for comparison with inputValue parameter.
stepY[]
Input array of float values. Once a position index has been found in the input StepX array, the value at that index from this StepY array is copied to the output outputValue.
inputValue
The float value to use to search the StepX array. Once a value in the StepX array has been found which is greater than or equal to this value, that index is used to extract a value from the StepY array.
outputValue
The value from the StepY array at the same index at which the input value matched the requirements from the StepX array.
n/a
n/a
iac_proj/stepcalc/stpcmods.v contains the modStepCalc module V definition.
The low-level StepCalcMods library containing the module modStepCalc does not specify a process. By default the express process will be used.
Brian Selle, Leon Thrane, Advanced Visual Systems Inc. Documentation - Ian Curington, Advanced Visual Systems Inc.
Paul G. Lever
International AVS Centre Manchester Visualization Centre Manchester Computing University of Manchester Oxford Road Manchester United Kingdom M13 9PL
n/a