Createbalancemx100 – Yokogawa PC-Based MX100 User Manual

Page 753

Advertising
background image

17-19

IM MX190-01E

17

Functions for the MX100 (Extended API) - Visual C/Visual Basic/Visual Basic.NET/C# -

createBalanceMX100

Syntax

int createBalanceMX100(DAQMX100 daqmx100, int * errCode);

Declaration

Visual Basic
Public Declare Function createBalanceMX100 Lib
"DAQMX100"(ByVal daqmx100 As Long, ByRef errCode As Long) As
Long
Visual Basic.NET
Public Declare Ansi Function createBalanceMX100 Lib
"DAQMX100"(ByVal daqmx100 As Integer, ByRef errCode As
Integer) As Integer
C#
[DllImport("DAQMX100.dll" CharSet=CharSet.Auto,
EntryPoint="createBalanceMX100")]
public static extern int createBalanceMX100(int daqmx100, out
int errCode);

Parameters

daqmx100

Specify the device descriptor.

errorCode

Specify the destination where the error number is to be returned.

Description

Creates new initial balance data.

• Returns the initial balance data identifier as a return value.
• Returns a negative number if unsuccessful.

• Stores the error number if the return destination is specified.

Return value

Returns the data identifier.

Error:
Not descriptor

No device descriptor.

Not data

Data creation failed.

Reference

CDAQMX100::getClassMXBalanceList
CDAQMXBalanceList::create

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

Advertising