Toalarmnamemx100 – Yokogawa PC-Based MX100 User Manual
Page 942
![background image](/manuals/360310/942/background.png)
17-208
IM MX190-01E
toAlarmNameMX100
Syntax
int toAlarmNameMX100(int iAlarmType, char * strAlarm, int
lenAlarm);
Declaration
Visual Basic
Public Declare Function toAlarmNameMX100 Lib "DAQMX100"(ByVal
iAlarmType As Long, ByVal strAlarm As String, ByVal lenAlarm
As Long) As Long
Visual Basic.NET
Public Declare Ansi Function toAlarmNameMX100 Lib
"DAQMX100"(ByVal iAlarmType As Integer, ByVal strAlarm As
String, ByVal lenAlarm As Integer) As Integer
C#
[DllImport("DAQMX100.dll" CharSet=CharSet.Auto,
EntryPoint="toAlarmNameMX100")]
public static extern int toAlarmNameMX100(int iAlarmType,
byte[] strAlarm, int lenAlarm);
Parameters
iAlarmType
Specify the alarm type.
strAlarm
Specify the field where the string is to be stored.
lenAlarm
Specify the byte size of the field where the string is to be stored.
Description
Stores the string corresponding to the specified alarm type to the specified field.
• The string stored in the field includes the terminator (NULL).
• The return value is the length of the actual string. The return value does not
include the terminator.
• The strings that can be stored are, in general, ASCII strings.
Return value
Returns the length of the string.
Reference
getAlarmNameMX100
17.2 Details of Function - MX00 (Visual C/Visual Basic/Visual Basic.NET/C#) - Retrieval Functions