Yokogawa PC-Based MX100 User Manual

Page 945

Advertising
background image

17-211

IM MX190-01E

Functions for the MX100 (Extended API) - Visual C/Visual Basic/Visual Basic.NET/C# -

17

toChannelTagMX100

Syntax

int toChannelTagMX100(DAQMX100 daqmx100, int chNo, char *
strTag, int lenTag);

Declaration

Visual Basic
Public Declare Function toChannelTagMX100 Lib "DAQMX100"(ByVal
daqmx100 As Long, ByVal chNo As Long, ByVal strTag As String,
ByVal lenTag As Long) As Long
Visual Basic.NET
Public Declare Ansi Function toChannelTagMX100 Lib
"DAQMX100"(ByVal daqmx100 As Integer, ByVal chNo As Integer,
ByVal strTag As String, ByVal lenTag As Integer) As Integer
C#
[DllImport("DAQMX100.dll" CharSet=CharSet.Auto,
EntryPoint="toChannelTagMX100")]
public static extern int toChannelTagMX100(int daqmx100, int
chNo, byte[] strTag, int lenTag);

Parameters

daqmx100

Specify the device descriptor.

chNo

Specify the channel number.

strTag

Specify the field where the string is to be stored.

lenTag

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

Description

Gets the specified channel number and tag from the stored current channel setting
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 actual string.

Reference

getChannelTagMX100

17.2 Details of Function - MX00 (Visual C/Visual Basic/Visual Basic.NET/C#) - Retrieval Functions

Advertising