Configuration
2
0
2
2
-0
2
25
5
Configuration
5.1
VsxProtocolDriver
General
SmartRunner Explorer has a VSX programming interface. The driver VsxProtocolDriver pro-
vides full access to the input and output data of the sensor and facilitates integration in a C#-
based programming environment. The driver connects to the sensor and handles the commu-
nication in accordance with the communication protocol. The user can access functions for set-
ting parameters on the sensor, retrieving parameter values from the sensor, and saving and
loading entire parameter sets both locally and on the sensor. The user can also receive sensor
images. Each function also contains an error object from which information can be obtained in
the event of an error in the function.
The driver is implemented in C# and requires .NET Standard 5.0 or higher.
The functions of the driver can be used
synchronously
or
asynchronously
. For this, the
required instance must be created using the Init function.
For clarity, this manual only describes the most important functions and variables. The DLL
contains additional functions that are used for other Fuchs vision sensors. These
functions are described in the corresponding product manual. There are several declaration
options for some functions. In the following, the preferred functions are marked in bold.
Synchronous and Asynchronous Functions
The auxiliary classes used in the parameters are described below.
Initialization
UDP Broadcast
The static function returns a list of the Vsx devices that are found on the network via a UDP
broadcast.
Asynchronous Function
public static async Task<(bool Succ, List<Device> DeviceList, Error
ErrorDesc)> UdpDeviceList()
Synchronous Function
public static (bool Succ, List<Device> DeviceList, Error ErrorDesc)
UdpDeviceList()
Possible error IDs: VSX_DRIVER_CONNECTION_ERROR
Note
Integrating the NuGet
In order to use the DLL, the NuGet must be integrated. This can be done in Visual Studio by the
NuGet package manager, for example. The DLL can be found in the software folder on the
SmartRunner Explorer product page of Fuchs. The NuGet is located in the ZIP file
stored in this folder under the project folder ext.