void psample_pick(
Pint ws_id, /* workstation identifier */ Pint pick_dev, /* pick device number */ Pint depth, /* max depth of returned path */ Pin_status *status, /* (out) pick status */ Pick_path *pick /* (out) pick path */
)
typedef enum {
PIN_STATUS_NONE,
PIN_STATUS_OK,
PIN_STATUS_NO_IN
} Pin_status;
typedef struct {
Pint depth; /* pick path depth */
Ppick_path_elem *path_list; /* pick path list */
} Ppick_path;
typedef struct {
Pint struct_id; /* structure identifier */
Pint pick_id; /* pick identifier */
Pint elem_pos; /* element position */
} Ppick_path_elem;
Example:
/* Sample pick on workstation number 1 using device number 1 */ Pint ws_id,pick_dev,depth; Pin_status status; Ppick_path_elem elem[5] ; Ppick_path pick_path; ..... ws_id = 1; pick_dev = 1; depth = 5; pick_path.path_list = elem; psample_pick(ws_id,pick_dev,depth,&status,&pick_path); ......