Operation Integer getDeviceID (Integer portID, String system_name), in Class Port

Documentation
returns the deviceid of the given portid