Setchoicemx100 – Yokogawa PC-Based MX100 User Manual

Page 786

Advertising
background image

17-52

IM MX190-01E

setChoiceMX100

Syntax

int setChoiceMX100(DAQMX100 daqmx100, int outputNo, int
idleChoice, int errorChoice, int presetValue);

Declaration

Visual Basic
Public Declare Function setChoiceMX100 Lib "DAQMX100"(ByVal
daqmx100 As Long, ByVal outputNo As Long, ByVal idleChoice As
Long, ByVal errorChoice As Long, ByVal presetValue As Long) As
Long
Visual Basic.NET
Public Declare Ansi Function setChoiceMX100 Lib
"DAQMX100"(ByVal daqmx100 As Integer, ByVal outputNo As
Integer, ByVal idleChoice As Integer, ByVal errorChoice As
Integer, ByVal presetValue As Integer) As Integer
C#
[DllImport("DAQMX100.dll" CharSet=CharSet.Auto,
EntryPoint="setChoiceMX100")]
public static extern int setChoiceMX100(int daqmx100, int
outputNo, int idleChoice, int errorChoice, int presetValue);

Parameters

daqmx100

Specify the device descriptor.

outputNo

Specify the output channel (AO/PWM data number).

idleChoice

Specify the selected value when idle.

errorChoice

Specify the selected value when an error occurs.

presetValue

Specify the output value if the selected value is the “specified

value.”

Description

Sets the output during idling and when errors occur for the specified output channel.

• The user-specified output value specifies an integer excluding the decimal point

positon.

Return value

Returns an error number.
Error:

Not descriptor

No device descriptor.

Reference

CDAQMX100::setChoice

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

Advertising