Datastringvalueda100 – Yokogawa PC-Based MX100 User Manual

Page 1142

Advertising
background image

24-51

IM MX190-01E

DARWIN for Extended API - Visual C/Visual Basic/Visual Basic.NET/Visual C# -

24

dataStringValueDA100

Syntax

int dataStringValueDA100(DAQDA100 daqda100, int chType, int
chNo, char * strValue, int lenValue);

Declaration

Visual Basic
Public Declare Function dataStringValueDA100 Lib
"DAQDA100"(ByVal daqda100 As Long, ByVal chType As Long, ByVal
chNo As Long, ByVal strValue As String, ByVal lenValue As
Long) As Long
Visual Basic.NET
Public Declare Ansi Function dataStringValueDA100 Lib
"DAQDA100"(ByVal daqda100 As Integer, ByVal chType As Integer,
ByVal chNo As Integer, ByVal strValue As String, ByVal
lenValue As Integer) As Integer
C#
[DllImport("DAQDA100.dll" CharSet=CharSet.Auto,
EntryPoint="dataStringValueDA100")]
public static extern int dataStringValueDA100(int daqda100,
int chType, int chNo, byte[] strValue, int lenValue);

Parameters

daqda100

Specify the device descriptor.

chType

Specify the channel type.

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 (channel type and number) from

the stored 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

CDAQDA100::getClassDataBuffer
CDAQDARWINDataBuffer::getClassDARWINDataInfo
CDAQDARWINDataInfo::getStringValue

24.2 Details of Functions - DARWIN (Visual C/Visual Basic/Visual Basic.NET/C#) - Retrieval Functions

Advertising