Setaotypemx – Yokogawa PC-Based MX100 User Manual

Page 300

Advertising
background image

5-42

IM MX190-01E

setAOTypeMX

Syntax

int setAOTypeMX(DAQMX daqmx, int aoNo, int iKind, int
refChNo);

Declaration

Public Declare Function setAOTypeMX Lib "DAQMX"(ByVal daqmx As
Long, ByVal aoNo As Long, ByVal iKind As Long, ByVal refChNo
As Long) As Long

Parameters

daqmx

Specify the device descriptor.

aoNo

Specify the AO data number.

iKind

Specify the type of AO channel using channel type.

refChNo

Specify the reference channel using a channel number.

Description

Sets the channel corresponding to the AO data number to the specified channel
type.

• Channels must be on the AO module.
• The channel type that can be specified is either AO or command AO.

• The reference channel number must be an input channel.
• When specifying command AO, the reference channel number is ignored.

• 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::setAOType

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

Advertising