FZ_PanDAForm.AssignUnit
Registers a processing unit with a flow
Public Shared Function AssignUnit( _
ByVal unitNo As Integer, _
ByVal itemIdent As String _
) As Integer
Parameters
unitNo
|
Unit number to register a processing item
|
Input
|
itemIdent
|
Processing item identification name to be registered
|
Input
|
Return Value
Returns 0 when the unit is successfully registered.
Otherwise returns a non-zero value.
Description
Registers the specified processing item as unit on the specified unit no.
When a processing unit is already registered on the specified processing unit no, the registered processing unit is deleted and the new one is registered.
The processing target scene is a current scene.
* When you execute this method, basically disable a measurement trigger (execute
MeasureStop ) before the execution.
After registered a processing unit, enable the measurement trigger (execute
MeasureStart ).
Example
Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
' Disables a measurement trigger
MeasureStop()
' Registers a search processing item with the unit number 1
AssignUnit(1, "Search")
' Enables a measurement trigger
MeasureStart()
End Sub