![Digi-Pas DWL5000XY Скачать руководство пользователя страница 21](http://html.mh-extra.com/html/digi-pas/dwl5000xy/dwl5000xy_installation-and-operation-manuallines_2496732021.webp)
Digi-Pas
®
© 2018 Digipas Technologies Inc. All Rights Reserved.
www.digipas.com
Page 16
DWL-5x000XY DATA SHEET
5.2.4. DWL5000XYLibrary.SerialComm.Stand
Description:
This function reads the device is in Single Axis mode or
Dual Axis mode.
Prototype:
public static int Stand(int sensor_number)
Arguments:
sensor_number The specific sensor module.
Return Value:
1 - Device is in Single Axis Mode
2 - Device is in Dual Axis Mode
Code Example:
DWL5000XYLibrary.SerialComm.Stand(1);
5.2.5. DWL5000XYLibrary.SerialComm.Dual_X_Value
Description:
This function reads the dual axis x angle value.
Prototype:
public static double Dual_X_Value(int sensor_number)
Arguments:
sensor_number The specific sensor module.
Return Value:
Dual Axis X angle value
Remarks:
DWL5000XYLibrary.SerialComm.Mode(0x02, 0, 0, 0, 0, 0) needs
to call first before using this function.
Code Example:
DWL5000XYLibrary.SerialComm.Dual_X_Value(1);
5.2.6. DWL5000XYLibrary.SerialComm.Dual_Y_Value
Description:
This function reads the dual axis y angle value.
Prototype:
public static double Dual_Y_Value(int sensor_number)
Arguments:
sensor_number The specific sensor module.
Return Value:
Dual Axis Y angle value
Remarks:
DWL5000XYLibrary.SerialComm.Mode(0x02, 0, 0, 0, 0, 0) needs
to call first before using this function.
Code Example:
DWL5000XYLibrary.SerialComm.Dual_Y_Value(1);
5.2.7. DWL5000XYLibrary.SerialComm.Vibro_Value
Description:
This function reads the vibro value.
Prototype:
public static double Vibro_Value(int sensor_number)
Arguments:
sensor_number The specific sensor module.
Return Value:
Vibro value
Remarks:
DWL5000XYLibrary.SerialComm.Mode(0x03, 0, 0, 0, 0, 0) needs
to call first before using this function.
Code Example:
DWL5000XYLibrary.SerialComm.Vibro_Value(1);