Switchdomx100 – Yokogawa PC-Based MX100 User Manual
Page 814

17-80
IM MX190-01E
switchDOMX100
Syntax
int switchDOMX100(DAQMX100 daqmx100, int idDO, int bONOFF);
Declaration
Visual Basic
Public Declare Function switchDOMX100 Lib "DAQMX100"(ByVal
daqmx100 As Long, ByVal idDO As Long, ByVal bONOFF As Long) As
Long
Visual Basic.NET
Public Declare Ansi Function switchDOMX100 Lib
"DAQMX100"(ByVal daqmx100 As Integer, ByVal idDO As Integer,
ByVal bONOFF As Integer) As Integer
C#
[DllImport("DAQMX100.dll" CharSet=CharSet.Auto,
EntryPoint="switchDOMX100")]
public static extern int switchDOMX100(int daqmx100, int idDO,
int bONOFF);
Parameters
daqmx100
Specify the device descriptor.
idDO
Specify the DO data identifier.
bONOFF
Specify ON/OFF using a Boolean value.
Description
Sends the DO data of the specified DO data identifier.
• Changes the valid channels of the DO data to the specified ON/OFF value and
sends it.
Return value
Returns an error number.
Error:
Not descriptor
No device descriptor.
Reference
CDAQMX100::switchDO
17.1 Details of Function - MX00 (Visual C/Visual Basic/Visual Basic.NET/C#) - Status Transition Functions