Setchunitda100 – Yokogawa PC-Based MX100 User Manual

Page 1113

Advertising
background image

24-22

IM MX190-01E

setChUnitDA100

Syntax

int setChUnitDA100(DAQDA100 daqda100, int chType, int chNo,
const char * strUnit);

Declaration

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

Parameters

daqda100

Specify the device descriptor.

chType

Specify the channel type.

chNo

Specify the channel number.

strUnit

Specify the unit name.

Description

Sets the specified unit name on the specified channel (specified under channel type
and channel number).

• If the channel type is set to the constant for “Specify all measurement channel

types,”all subunits are processed.

• If the channel number is set to the constant for “Specify all channel numbers,”all

channels within the channel type are processed.

• Updates the stored channel information data after the setting.
• This function executes the SN command of the DARWIN communication function.

• The specified string is, in general, an ASCII string.

Return value

Returns an error number.

Error:
Not descriptor

No device descriptor.

Reference

CDAQDA100::setChUnit

24.1 Details of Functions - DARWIN (VC/VB/VB.NET/C#) - Status Transition Functions

Advertising