Tochannelunitmx100 – Yokogawa PC-Based MX100 User Manual
Page 946

17-212
IM MX190-01E
toChannelUnitMX100
Syntax
int toChannelUnitMX100(DAQMX100 daqmx100, int chNo, char *
strUnit, int lenUnit);
Declaration
Visual Basic
Public Declare Function toChannelUnitMX100 Lib
"DAQMX100"(ByVal daqmx100 As Long, ByVal chNo As Long, ByVal
strUnit As String, ByVal lenUnit As Long) As Long
Visual Basic.NET
Public Declare Ansi Function toChannelUnitMX100 Lib
"DAQMX100"(ByVal daqmx100 As Integer, ByVal chNo As Integer,
ByVal strUnit As String, ByVal lenUnit As Integer) As Integer
C#
[DllImport("DAQMX100.dll" CharSet=CharSet.Auto,
EntryPoint="toChannelUnitMX100")]
public static extern int toChannelUnitMX100(int daqmx100, int
chNo, byte[] strUnit, int lenUnit);
Parameters
daqmx100
Specify the device descriptor.
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 specified channel number and unit name from the stored current channel
setting 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
getChannelUnitMX100
17.2 Details of Function - MX00 (Visual C/Visual Basic/Visual Basic.NET/C#) - Retrieval Functions