Manual

Table Of Contents
DobotVisionStudio User Guide
Issue V4.1.2 (2022-06-08) User Guide Copyright © Yuejiang Technology Co., Ltd.
243
Input
bytedata
Byte
Hexadecimal data to be sent
Return Value
Success: 0
Exception: error code rather than 0.
TCP, UDP, serial port interface: SendData(string data)
Function Description
Send String data
Function Method
GlobalCommunicateModule.GetDevice(int deviceID).SendData(string data)
Parameter Name
Data Type
Parameter Description
Input
deviceID
Int
Device ID in communication management
Input
data
String
Data to be sent
Return Value
Success: 0
Exception: error code rather than 0
TCP, UDP, serial port interface: SendData(byte[] bytedata)
Function Description
Send hexadecimal data
Function Method
GlobalCommunicateModule.GetDevice(int deviceID).SendData(byte[] bytedata)
Parameter Name
Data Type
Parameter Description
Input
deviceID
Int
Device ID in communication management
Input
bytedata
Byte
Data to be sent
Return Value
Success: 0
Exception: error code rather than 0
Data acquisition interface:
GetIntValue
Function Description
Obtain INT variable value
Function Method
int GetIntValue(string paramName, ref int paramValue)
Parameter Name
Data Type
Parameter Description
Input
paramName
string
Variable Name
Output
paramValue
int
Variable Value
Return Value
Success: 0
Exception: error code rather than 0
GetFloatValue
Function Description
Obtain Flat variable value
Function Method
int GetFloatValue (string paramName, ref float paramValue)
Parameter Name
Data Type
Parameter Description
Input
paramName
string
Variable Name
Output
paramValue
Float
Variable Value
Return Value
Success: 0
Exception: error code rather than 0.