Tochannelunitda100 – Yokogawa PC-Based MX100 User Manual
Page 1156
![background image](/manuals/360310/1156/background.png)
24-65
IM MX190-01E
DARWIN for Extended API - Visual C/Visual Basic/Visual Basic.NET/Visual C# -
24
toChannelUnitDA100
Syntax
int toChannelUnitDA100(DAQDA100 daqda100, int chType, int
chNo, char * strUnit, int lenUnit);
Declaration
Visual Basic
Public Declare Function toChannelUnitDA100 Lib
"DAQDA100"(ByVal daqda100 As Long, ByVal chType As Long, ByVal
chNo As Long, ByVal strUnit As String, ByVal lenUnit As Long)
As Long
Visual Basic.NET
Public Declare Ansi Function toChannelUnitDA100 Lib
"DAQDA100"(ByVal daqda100 As Integer, ByVal chType As Integer,
ByVal chNo As Integer, ByVal strUnit As String, ByVal lenUnit
As Integer) As Integer
C#
[DllImport("DAQDA100.dll" CharSet=CharSet.Auto,
EntryPoint="toChannelUnitDA100")]
public static extern int toChannelUnitDA100(int daqda100, int
chType, int chNo, byte[] strUnit, int lenUnit);
Parameters
daqda100
Specify the device descriptor.
chType
Specify the channel type.
chNo
Specify the channel number.
strUnit
Specify the field where the string is to be stored.
lenUnit
Specify the byte size of the field where the string is to be stored.
Description
Gets the unit name of the specified channel (channel type and number) from the
stored channel information data.
• Stores the string in the specified storage destination.
• The string stored in the field includes the terminator (NULL).
• The return value is the length of the actual string. The return value does not
include the terminator.
• The strings that can be stored are, in general, ASCII strings.
• Returns 0 if it does not exist.
Return value
Returns the length of the actual string.
Reference
getChannelUnitDA100
24.2 Details of Functions - DARWIN (Visual C/Visual Basic/Visual Basic.NET/C#) - Retrieval Functions