Tounitpartnomx100 – Yokogawa PC-Based MX100 User Manual
Page 956
![background image](/manuals/360310/956/background.png)
17-222
IM MX190-01E
toUnitPartNoMX100
Syntax
int toUnitPartNoMX100(DAQMX100 daqmx100, char * strPartNo, int
lenPartNo);
Declaration
Visual Basic
Public Declare Function toUnitPartNoMX100 Lib "DAQMX100"(ByVal
daqmx100 As Long, ByVal strPartNo As String, ByVal lenPartNo
As Long) As Long
Visual Basic.NET
Public Declare Ansi Function toUnitPartNoMX100 Lib
"DAQMX100"(ByVal daqmx100 As Integer, ByVal strPartNo As
String, ByVal lenPartNo As Integer) As Integer
C#
[DllImport("DAQMX100.dll" CharSet=CharSet.Auto,
EntryPoint="toUnitPartNoMX100")]
public static extern int toUnitPartNoMX100(int daqmx100,
byte[] strPartNo, int lenPartNo);
Parameters
daqmx100
Specify the device descriptor.
strPartNo
Specify the field where the string is to be stored.
lenPartNo
Specify the byte size of the field where the string is to be stored.
Description
Gets the part 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
getUnitPartNoMX100
17.2 Details of Function - MX00 (Visual C/Visual Basic/Visual Basic.NET/C#) - Retrieval Functions