F_VN_ExecuteNeuralNetwork_MIMO_String
Execute a neural network with multiple inputs and multiple outputs (MIMO) using the provided images. Ensure all model input names are listed in sInputNames and that the images and names are in the same order. The result of the specified output layers are returned. The function doesn't perform any pre-processing or transformation.
Can use available TwinCAT Job Tasks for executing parallel code regions.
Syntax
Definition:
FUNCTION F_VN_ExecuteNeuralNetwork_MIMO_String : HRESULT
VAR_INPUT
ipNeuralNetwork : ITcVnNeuralNetwork;
pSrcImages : PVOID;
nSrcArraySize : UINT;
sInputNames : STRING;
ipDestImages : Reference To ITcVnContainer;
sOutputNames : STRING;
hrPrev : HRESULT;
END_VAR
Inputs
Name |
Type |
Description |
---|---|---|
ipNeuralNetwork |
Neural network model | |
pSrcImages |
PVOID |
Pointer to an array of source input images |
nSrcArraySize |
UINT |
The size of the array referenced by pSrcImages. pSrcImages must reference an array with a size equal to the number of model inputs. |
sInputNames |
STRING |
Input names separated by ";" |
ipDestImages |
Reference To ITcVnContainer |
Container of images containing the output from the specified layers. |
sOutputNames |
STRING |
Names of output layers whose outputs are required separated by ";". If empty, the outputs of all unconnected output layers are provided. |
hrPrev |
HRESULT indicating the result of previous operations (If SUCCEEDED(hrPrev) equals false, no operation is executed.) |
Required License
TC3 Neural Network Realtime Inference
System Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT V3.1.4024.59 or later | PC or CX (x64) with min. PL50, e.g. Intel 4-core Atom CPU | Tc3_Vision |