ProcItemForm.SetUnitData
Sets an external reference data in the processing unit
Public Function SetUnitData( _
ByVal dataNo As Integer, _
ByVal data As Double _
) As Integer
Public Shared Function SetUnitData( _
ByVal dataIdent As String, _
ByVal data As Double _
) As Integer
Public Function SetUnitData( _
ByVal dataNo As Integer, _
ByVal data As String _
) As Integer
Public Shared Function SetUnitData( _
ByVal dataIdent As String, _
ByVal data As String _
) As Integer
Parameters
dataNo
|
External reference number to be set
|
Input
|
dataIdent
|
External reference identification string to be set
|
Input
|
data
|
Data to be set
|
Input
|
Return Value
Returns 0 when the external reference data is successfully set.
Otherwise returns a non-zero value.
Description
Sets the specified external reference data in the processing unit.
Example
Private Sub Form_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim value As Double
Dim str As String
' Sets 10 for the processing unit, the external reference number 0
value = 10
SetUnitData(0, value)
' Sets 500 for the processing unit and shutter speed 0
value = 500
SetUnitData("shutterSpeed0", value)
' Sets a calculation string for the processing unit, the external reference number 100
str = "U1.DO0+1"
SetUnitData(100, str)
' Sets a calculation string to the processing unit, expression 1
str = "U1.DO1+10"
SetUnitData("setupData1", str)
End Sub