Yokogawa PC-Based MX100 User Manual
Page 957

17-223
IM MX190-01E
Functions for the MX100 (Extended API) - Visual C/Visual Basic/Visual Basic.NET/C# -
17
toUnitSerialMX100
Syntax
int toUnitSerialMX100(DAQMX100 daqmx100, char * strSerial, int
lenSerial);
Declaration
Visual Basic
Public Declare Function toUnitSerialMX100 Lib "DAQMX100"(ByVal
daqmx100 As Long, ByVal strSerial As String, ByVal lenSerial
As Long) As Long
Visual Basic.NET
Public Declare Ansi Function toUnitSerialMX100 Lib
"DAQMX100"(ByVal daqmx100 As Integer, ByVal strSerial As
String, ByVal lenSerial As Integer) As Integer
C#
[DllImport("DAQMX100.dll" CharSet=CharSet.Auto,
EntryPoint="toUnitSerialMX100")]
public static extern int toUnitSerialMX100(int daqmx100,
byte[] strSerial, int lenSerial);
Parameters
daqmx100
Specify the device descriptor.
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 unit’s serial 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
getUnitSerialMX100
17.2 Details of Function - MX00 (Visual C/Visual Basic/Visual Basic.NET/C#) - Retrieval Functions