Setchkindmx100 – Yokogawa PC-Based MX100 User Manual

Page 785

Advertising
background image

17-51

IM MX190-01E

17

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

setChKindMX100

Syntax

int setChKindMX100(DAQMX100 daqmx100, int chNo, int iKind, int
refChNo);

Declaration

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

Parameters

daqmx100

Specify the device descriptor.

chNo

Specify the channel number.

iKind

Specify the channel type.

refChNo

Specify the reference channel using a channel number.

Description

Sets the channel type to the specified channel numbers.
• The range, span, scale, alarm and other setup items are set to the default values.

• The reference channel specification is valid when the channel type is difference

between channels, remote RJC, AO, or PWM.

Return value

Returns an error number.
Error:

Not descriptor

No device descriptor.

Reference

CDAQMX100::setChKind

17.1 Details of Function - MX00 (Visual C/Visual Basic/Visual Basic.NET/C#) - Status Transition Functions

Advertising