pcb_get_mks()
Retrieves the value of a parameter in MKS (unscaled) units. This function must be called within a PARM_MODIFIED_CB callback function created by dm_create_cb().
See also: pcb_set_mks(), pcb_get_form_value(), pcb_set_form_value(), pcb_get_string(), pcb_set_string(), dm_create_cb().
Syntax:
pcb_get_mks(callData, paramName)
where
callData is the third argument of the PARM_MODIFIED_CB callback function.
paramName is the name of the parameter to get the value from.
Example:
create_item(... create_parm("A", "A parameter value", PARM_REAL | PARM_STATISTICAL | PARM_OPTIMIZABLE, "StdFormSet", 0, prm("StdForm", "10.0"), list(dm_create_cb(PARM_MODIFIED_CB, "a_modified_cb", NULL, TRUE))), create_parm("B", "B parameter value", PARM_REAL | PARM_STATISTICAL | PARM_OPTIMIZABLE, "StdFormSet", 0, prm("StdForm", "20.0"))); defun a_modified_cb(cbP, clientData, callData) { decl paramData=NULL; decl a_mks=pcb_get_mks(callData, "A"); return(pcb_set_mks(paramData, "B", a_mks*2)); }
Where Used:
Schematic
Privacy
Statement
|
Terms of Use
|
Legal |
Contact Us
|
© Agilent 2000-2008 ![]()