Datastringvaluemx100 – Yokogawa PC-Based MX100 User Manual
Page 892
![background image](/manuals/360310/892/background.png)
17-158
IM MX190-01E
dataStringValueMX100
Syntax
int dataStringValueMX100(DAQMX100 daqmx100, int chNo, char *
strValue, int lenValue);
Declaration
Visual Basic
Public Declare Function dataStringValueMX100 Lib
"DAQMX100"(ByVal daqmx100 As Long, ByVal chNo As Long, ByVal
strValue As String, ByVal lenValue As Long) As Long
Visual Basic.NET
Public Declare Ansi Function dataStringValueMX100 Lib
"DAQMX100"(ByVal daqmx100 As Integer, ByVal chNo As Integer,
ByVal strValue As String, ByVal lenValue As Integer) As
Integer
C#
[DllImport("DAQMX100.dll" CharSet=CharSet.Auto,
EntryPoint="dataStringValueMX100")]
public static extern int dataStringValueMX100(int daqmx100,
int chNo, byte[] strValue, int lenValue);
Parameters
daqmx100
Specify the device descriptor.
chNo
Specify the channel number.
strValue
Specify the field where the string is to be stored.
lenValue
Specify the byte size of the field where the string is to be stored.
Description
Gets the measured value of the specified channel number from the stored current
measured data.
• Converts into a string and stores it in the specified field.
• 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
CDAQMX100::getClassMXDataBuffer
CDAQMXDataBuffer::currentDataInfo
CDAQMXDataInfo::getStringValue
17.2 Details of Function - MX00 (Visual C/Visual Basic/Visual Basic.NET/C#) - Retrieval Functions