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