Runcommandda100 – Yokogawa PC-Based MX100 User Manual

Page 1106

Advertising
background image

24-15

IM MX190-01E

DARWIN for Extended API - Visual C/Visual Basic/Visual Basic.NET/C# -

24

runCommandDA100

Syntax

int runCommandDA100(DAQDA100 daqda100, const char * strCmd);

Declaration

Visual Basic
Public Declare Function runCommandDA100 Lib "DAQDA100"(ByVal
daqda100 As Long, ByVal strCmd As String) As Long
Visual Basic.NET
Public Declare Ansi Function runCommandDA100 Lib
"DAQDA100"(ByVal daqda100 As Integer, ByVal strCmd As String)
As Integer
C#
[DllImport("DAQDA100.dll" CharSet=CharSet.Auto,
EntryPoint="runCommandDA100")]
public static extern int runCommandDA100(int daqda100, byte[]
strCmd);

Parameters

daqda100

Specify the device descriptor.

strCmd

Specify the command message to be sent.

Description

Sends the specified command message and terminator and receives the response.

• This function adds a terminator to the command message at the time of

transmission. Therefore, do not include the terminator in the command message.

• This function does not support simultaneous transmission of multiple commands

or command messages that include the terminator.

• Like the data output request command of the talker function, does not support

commands that do not send responses.

Return value

Returns an error number.
Error:

Not descriptor

No device descriptor.

Reference

CDAQDA100::runCommand

24.1 Details of Functions - DARWIN (VC/VB/VB.NET/C#) - Status Transition Functions

Advertising