FZ_FormBase.SetUnitData
Sets an external reference data in the processing unit
Public Function SetUnitData( _
   ByVal unitNo As Integer, _
   ByVal dataNo As Integer, _
   ByVal data As Double _
) As Integer
 
Public Shared Function SetUnitData( _
   ByVal unitNo As Integer, _
   ByVal dataIdent As String, _
   ByVal data As Double _
) As Integer
 
Public Function SetUnitData( _
   ByVal unitNo As Integer, _
   ByVal dataNo As Integer, _
   ByVal data As String _
) As Integer
 
Public Shared Function SetUnitData( _
   ByVal unitNo As Integer, _
   ByVal dataIdent As String, _
   ByVal data As String _
) As Integer
 
Parameters
| unitNo 
 | Processing unit number for the external reference data to be set 
 | Input 
 | 
| 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 specified processing unit.
Example
    Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
        Dim value As Double
        Dim str As String
        ' Sets 10 for the processing unit number 0, the external reference number 0
        value = 10
        SetUnitData(0, 0, value);
        ' Sets 500 for the processing unit number 0 and shutter speed 0
        value = 500
        SetUnitData(0, "shutterSpeed0", value);
        ' Sets a calculation string for the processing unit number 0, the external reference number 100
        str = "U1.DO0+1"
        SetUnitData(0, 100, str);
        ' Sets a calculation string to the processing unit number 0, expression 1
        str = "U1.DO1+10"
        SetUnitData(0, "setupData1", str);
    End Sub