Setdoublechoicemx100 – Yokogawa PC-Based MX100 User Manual
Page 794
17-60
IM MX190-01E
setDoubleChoiceMX100
Syntax
int setDoubleChoiceMX100(DAQMX100 daqmx100, int outputNo, int
idleChoice, int errorChoice, double presetValue);
Declaration
Visual Basic
Public Declare Function setDoubleChoiceMX100 Lib
"DAQMX100"(ByVal daqmx100 As Long, ByVal outputNo As Long,
ByVal idleChoice As Long, ByVal errorChoice As Long, ByVal
presetValue As Double) As Long
Visual Basic.NET
Public Declare Ansi Function setDoubleChoiceMX100 Lib
"DAQMX100"(ByVal daqmx100 As Integer, ByVal outputNo As
Integer, ByVal idleChoice As Integer, ByVal errorChoice As
Integer, ByVal presetValue As Double) As Integer
C#
[DllImport("DAQMX100.dll" CharSet=CharSet.Auto,
EntryPoint="setDoubleChoiceMX100")]
public static extern int setDoubleChoiceMX100(int daqmx100,
int outputNo, int idleChoice, int errorChoice, double
presetValue);
Parameters
daqmx100
Specify the device descriptor.
outputNo
Specify the output channel (AO/PWM data number).
idleChoice
Specify the selected value when idling.
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.
• If the differences from the user specified output value are excluded, it is the same
as the setChoiceMX100 function.
• The user-specified output value specifies a floating point value including the
decimal point position.
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