Setdotypemx – Yokogawa PC-Based MX100 User Manual

Page 315

Advertising
background image

5-57

IM MX190-01E

Functions for the MX100 (Visual C/Visual Basic)

5

setDOTypeMX

Syntax

int setDOTypeMX(DAQMX daqmx, int doNo, int iKind, int
bDeenergize, int bHold);

Declaration

Public Declare Function setDOTypeMX Lib "DAQMX"(ByVal daqmx As
Long, ByVal doNo As Long, ByVal iKind As Long, ByVal
bDeenergize As Long, ByVal bHold As Long) As Long

Parameters

daqmx

Specify the device descriptor.

doNo

Specify the data number.

iKind

Specify the DO channel type.

bDeenergize

Specify de-energize using a Boolean value.

bHold

Specify hold using a Boolean value.

Description

Sets the channel corresponding to the DO data number to the specified channel

type.
• Channels are on the DO module, and the type must be set to DO (alarm output,

command DO, system fail, or system error).

• Set the reference alarm using the setRefAlarmMX function.

• The setup data is retrieved collectively, changed, and sent collectively.

Return value

Returns an error number.

Error:
Not descriptor

No device descriptor.

Reference

CDAQMX::getMXConfig
CDAQMX::setMXConfig
CDAQMXConfig::setDOType

5.1 Details of Functions - MX100 (Visual C/Visual Basic) -

Advertising