pcb_get_parm_type()

Returns parameter type. This function must be called within a PARM_MODIFIED_CB callback function created by dm_create_cb(). Returns one of the following strings:

"NUMBER"
"EXPRESSION"
"CONSTANT_FORM"
"VARIABLE"
"UNKNOWN_FORM"
"UNKNOWN"
"STRING"
"DEFAULT_VALUE"
"DATA_FILE"
"ERROR"

See also: pcb_get_mks(), pcb_set_mks(), pcb_get_form_value(), pcb_set_form_value(), pcb_get_string(), pcb_set_string().

Syntax:

pcb_get_parm_type(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 type from.

Example:
defun a_modified_cb(cbP, clientData, callData)
{
      decl paramData=NULL;
      decl a_mks=pcb_get_mks(callData, "A");
      paramData=pcb_set_mks(paramData, "B", a_mks*2);
      return(pcb_set_mks(paramData, "C", a_mks*3));
}

Where Used:

Schematic

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources