Yokogawa PC-Based MX100 User Manual

Page 1194

Advertising
background image

24-103

IM MX190-01E

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

24

toChannelUnitDA100Reader

Syntax

int toChannelUnitDA100Reader(DAQDA100READER daqda100reader,
int chType, int chNo, char * strUnit, int lenUnit);

Declaration

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

Parameters

daqda100Reader

Specify the device descriptor.

chType

Specify the channel type.

chNo

Specify the channel number.

strUnit

Specify the field where the string is to be stored.

lenUnit

Specify the byte size of the field where the string is to be
stored.

Description

Gets the unit name of the specified channel (channel type and number) from the
stored channel information 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 string.

Reference

getChannelUnitDA100Reader

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

Advertising