Tomodulenameda100 – Yokogawa PC-Based MX100 User Manual
Page 1159
![background image](/manuals/360310/1159/background.png)
24-68
IM MX190-01E
toModuleNameDA100
Syntax
int toModuleNameDA100(DAQDA100 daqda100, int unitNo, int
slotNo, char * strName, int lenName);
Declaration
Visual Basic
Public Declare Function toModuleNameDA100 Lib "DAQDA100"(ByVal
daqda100 As Long, ByVal unitNo As Long, ByVal slotNo As Long,
ByVal strName As String, ByVal lenName As Long) As Long
Visual Basic.NET
Public Declare Ansi Function toModuleNameDA100 Lib
"DAQDA100"(ByVal daqda100 As Integer, ByVal unitNo As Integer,
ByVal slotNo As Integer, ByVal strName As String, ByVal
lenName As Integer) As Integer
C#
[DllImport("DAQDA100.dll" CharSet=CharSet.Auto,
EntryPoint="toModuleNameDA100")]
public static extern int toModuleNameDA100(int daqda100, int
unitNo, int slotNo, byte[] strName, int lenName);
Parameters
daqda100
Specify the device descriptor.
unitNo
Specify the unit number.
slotNo
Specify the slot number.
strName
Specify the field where the string is to be stored.
lenName
Specify the byte size of the field where the string is to be stored.
Description
Gets the module name in the position indicated by the specified unit number and
slot number from the stored system configuration 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.
• Returns 0 if it does not exist.
• The strings that can be stored are, in general, ASCII strings.
Return value
Returns the length of the actual string.
Reference
getModuleNameDA100
24.2 Details of Functions - DARWIN (Visual C/Visual Basic/Visual Basic.NET/C#) - Retrieval Functions