Setspanmx100 – Yokogawa PC-Based MX100 User Manual
Page 810

17-76
IM MX190-01E
setSpanMX100
Syntax
int setSpanMX100(DAQMX100 daqmx100, int chNo, int spanMin, int
spanMax);
Declaration
Visual Basic
Public Declare Function setSpanMX100 Lib "DAQMX100"(ByVal
daqmx100 As Long, ByVal chNo As Long, ByVal spanMin As Long,
ByVal spanMax As Long) As Long
Visual Basic.NET
Public Declare Ansi Function setSpanMX100 Lib "DAQMX100"(ByVal
daqmx100 As Integer, ByVal chNo As Integer, ByVal spanMin As
Integer, ByVal spanMax As Integer) As Integer
C#
[DllImport("DAQMX100.dll" CharSet=CharSet.Auto,
EntryPoint="setSpanMX100")]
public static extern int setSpanMX100(int daqmx100, int chNo,
int spanMin, int spanMax);
Parameters
daqmx100
Specify the device descriptor.
chNo
Specify the channel number.
spanMin
Specify the span minimum.
spanMax
Specify the span maximum.
Description
Sets the span to the specified channel number.
• Set according to the specified range type.
• If the span value is outside the range, it is rounded to a possible value.
• If the minimum and maximum values are equal, the default value is set.
• The span value is specified with an integer excluding the decimal point.
Return value
Returns an error number.
Error:
Not descriptor
No device descriptor.
Reference
CDAQMX100::setSpan
17.1 Details of Function - MX00 (Visual C/Visual Basic/Visual Basic.NET/C#) - Status Transition Functions