Tostringvalueda100 – Yokogawa PC-Based MX100 User Manual

Page 1160

Advertising
background image

24-69

IM MX190-01E

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

24

toStringValueDA100

Syntax

int toStringValueDA100(int dataValue, int point, char *
strValue, int lenValue);

Declaration

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

Parameters

dataValue

Specify the data value.

point

Specify the decimal point position.

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

Generates the measured value from the specified data value and decimal point

position.
• Converts the generated measured value into a string and stores to 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.

• The strings that can be stored are, in general, ASCII strings.

Return value

Returns the length of the string.

Reference

CDAQDARWINDataInfo::toStringValue

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

Advertising