Setscalemx100 – Yokogawa PC-Based MX100 User Manual
Page 809
![background image](/manuals/360310/809/background.png)
17-75
IM MX190-01E
17
Functions for the MX100 (Extended API) - Visual C/Visual Basic/Visual Basic.NET/C# -
setScaleMX100
Syntax
int setScaleMX100(DAQMX100 daqmx100, int chNo, int scaleMin,
int scaleMax, int scalePoint);
Declaration
Visual Basic
Public Declare Function setScaleMX100 Lib "DAQMX100"(ByVal
daqmx100 As Long, ByVal chNo As Long, ByVal scaleMin As Long,
ByVal scaleMax As Long, ByVal scalePoint As Long) As Long
Visual Basic.NET
Public Declare Ansi Function setScaleMX100 Lib
"DAQMX100"(ByVal daqmx100 As Intger, ByVal chNo As Intger,
ByVal scaleMin As Intger, ByVal scaleMax As Intger, ByVal
scalePoint As Intger) As Intger
C#
[DllImport("DAQMX100.dll" CharSet=CharSet.Auto,
EntryPoint="setScaleMX100")]
public static extern int setScaleMX100(int daqmx100, int chNo,
int scaleMin, int scaleMax, int scalePoint);
Parameters
daqmx100
Specify the device descriptor.
chNo
Specify the channel number.
scaleMin
Specify the scale minimum.
scaleMax
Specify the scale maximum.
scalePoint
Specify the decimal point position for scaling.
Description
Sets the scale to the specified channel number.
• Set according to the specified range type.
• If the scale value is outside the range, it is rounded to a possible value.
• If the minimum and maximum values are equal, the scale is “No scale.”
• The scale value is specified with an integer excluding the decimal point.
Return value
Returns an error number.
Error:
Not descriptor
No device descriptor.
Reference
CDAQMX100::setScale
17.1 Details of Function - MX00 (Visual C/Visual Basic/Visual Basic.NET/C#) - Status Transition Functions