Createaopwmmx100 – Yokogawa PC-Based MX100 User Manual
Page 752
![background image](/manuals/360310/752/background.png)
17-18
IM MX190-01E
createAOPWMMX100
Syntax
int createAOPWMMX100(DAQMX100 daqmx100, int * errCode);
Declaration
Visual Basic
Public Declare Function createAOPWMMX100 Lib "DAQMX100"(ByVal
daqmx100 As Long, ByRef errCode As Long) As Long
Visual Basic.NET
Public Declare Ansi Function createAOPWMMX100 Lib
"DAQMX100"(ByVal daqmx100 As Integer, ByRef errCode As
Integer) As Integer
C#
[DllImport("DAQMX100.dll" CharSet=CharSet.Auto,
EntryPoint="createAOPWMMX100")]
public static extern int createAOPWMMX100(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 AO/PWM data.
• Returns the AOPWM 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::getClassMXAOPWMList
CDAQMXAOPWMList::create
17.1 Details of Function - MX00 (Visual C/Visual Basic/Visual Basic.NET/C#) - Status Transition Functions