Switchcomputeda100 – Yokogawa PC-Based MX100 User Manual
Page 1118
![background image](/manuals/360310/1118/background.png)
24-27
IM MX190-01E
DARWIN for Extended API - Visual C/Visual Basic/Visual Basic.NET/C# -
24
switchComputeDA100
Syntax
int switchComputeDA100(DAQDA100 daqda100, int iCompute);
Declaration
Visual Basic
Public Declare Function switchComputeDA100 Lib
"DAQDA100"(ByVal daqda100 As Long, ByVal iReportRun As Long)
As Long
Visual Basic.NET
Public Declare Ansi Function switchComputeDA100 Lib
"DAQDA100"(ByVal daqda100 As Integer, ByVal iReportRun As
Integer) As Integer
C#
[DllImport("DAQDA100.dll" CharSet=CharSet.Auto,
EntryPoint="switchComputeDA100")]
public static extern int switchComputeDA100(int daqda100, int
iReportRun);
Parameters
daqdarwin
Specify the device descriptor.
iCompute
Specify the computation.
Description
Starts/stops computation.
• Valid with the computation function.
• The status is updated at the end of the process.
• This function executes the EX command of the DARWIN communication function.
Return value
Returns an error number.
Error:
Not descriptor
No device descriptor.
Reference
CDAQDA100::switchCompute
24.1 Details of Functions - DARWIN (VC/VB/VB.NET/C#) - Status Transition Functions