Yokogawa PC-Based MX100 User Manual
Page 951
![background image](/manuals/360310/951/background.png)
17-217
IM MX190-01E
Functions for the MX100 (Extended API) - Visual C/Visual Basic/Visual Basic.NET/C# -
17
toModuleSerialMX100
Syntax
int toModuleSerialMX100(DAQMX100 daqmx100, int moduleNo, char
* strSerial, int lenSerial);
Declaration
Visual Basic
Public Declare Function toModuleSerialMX100 Lib
"DAQMX100"(ByVal daqmx100 As Long, ByVal moduleNo As Long,
ByVal strSerial As String, ByVal lenSerial As Long) As Long
Visual Basic.NET
Public Declare Ansi Function toModuleSerialMX100 Lib
"DAQMX100"(ByVal daqmx100 As Integer, ByVal moduleNo As
Integer, ByVal strSerial As String, ByVal lenSerial As
Integer) As Integer
C#
[DllImport("DAQMX100.dll" CharSet=CharSet.Auto,
EntryPoint="toModuleSerialMX100")]
public static extern int toModuleSerialMX100(int daqmx100, int
moduleNo, byte[] strSerial, int lenSerial);
Parameters
daqmx100
Specify the device descriptor.
moduleNo
Specify the module number.
strSerial
Specify the field where the string is to be stored.
lenSerial
Specify the byte size of the field where the string is to be stored.
Description
Gets the serial number of the specified module number from the stored current
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 string.
Reference
getModuleSerialMX100
17.2 Details of Function - MX00 (Visual C/Visual Basic/Visual Basic.NET/C#) - Retrieval Functions