Datastringvalueda100reader – Yokogawa PC-Based MX100 User Manual

Page 1185

Advertising
background image

24-94

IM MX190-01E

dataStringValueDA100Reader

Syntax

int dataStringValueDA100Reader(DAQDA100READER daqda100reader,
int chType, int chNo, char * strValue, int lenValue);

Declaration

Visual Basic
Public Declare Function dataStringValueDA100Reader Lib
"DAQDA100"(ByVal daqda100reader 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 dataStringValueDA100Reader Lib
"DAQDA100"(ByVal daqda100reader 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="dataStringValueDA100Reader"]
public static extern int dataStringValueDA100Reader(int
daqda100reader, int chType, int chNo, byte[] strValue, int
lenValue);

Parameters

daqda100Reader

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

dataStringValueDA100

24.4 Details of Instantaneous Value Loading Functions - DARWIN - Status Transition Functions

Advertising