FZ_FormBase.GetUnitData
Gets an external reference data in the processing unit
Public Shared Function GetUnitData( _
ByVal unitNo As Integer, _
ByVal dataNo As Integer, _
ByRef data As Double _
) As Integer
Public Shared Function GetUnitData( _
ByVal unitNo As Integer, _
ByVal dataIdent As String, _
ByRef data As Double _
) As Integer
Public Shared Function GetUnitData( _
ByVal unitNo As Integer, _
ByVal dataNo As Integer, _
ByRef data As String _
) As Integer
Public Shared Function GetUnitData( _
ByVal unitNo As Integer, _
ByVal dataIdent As String, _
ByRef data As String _
) As Integer
Parameters
unitNo
|
Processing unit number for the external reference data to be gotten
|
Input
|
dataNo
|
External reference number to be gotten
|
Input
|
dataIdent
|
External reference identification string
|
Input
|
data
|
Data to be gotten
|
Output
|
Return Value
Returns 0 when the external reference data is successfully obtained.
Otherwise returns a non-zero value.
Description
Gets the specified external reference data in the specified 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
' Gets a value of processing unit number 0 and external reference number 0
GetUnitData(0, 0, value);
' Gets the value of the processing unit number 0 and shutter speed 0
GetUnitData(0, "shutterSpeed0", value);
' Gets a value of processing unit number 1 and external reference number 100
GetUnitData(0, 100, str);
' Gets a value for the processing unit number 0, expression 1
GetUnitData(0, "setupData1", str);
End Sub