Creates a network data model (NDM) interface on the comm card.
The network data model is used to send and receive
messages between the vision system and a remote device
(usually a PLC).
Namespace: Cognex.VisionPro.CommAssembly: Cognex.VisionPro.Comm (in Cognex.VisionPro.Comm.dll) Version: 69.0.0.0
Syntax
Parameters
- protocolType
- Type: Cognex.VisionPro.Comm CogFfpProtocolConstants
Return Value
Type: CogNdmExceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | Thrown if an NDM has already been created on this board. Note that you can get access to a previously created NDM instance held by the CommCard via GetActiveNetworkDataModel |
| ArgumentException | Thrown if protocolType is invalid. |
| CogHardwareInUseException | Thrown if the hardware is in use by another process. Only a single process may access the hardware. When this exception is thrown, you must close any other processes that are using the hardware, and re-start this process in order to access the hardware. |
| CogIncompatibleFirmwareException | Thrown if the version of the Comm Card firmware is incompatible with the version of the host library. Run "%VPRO_ROOT%\bin\fwuphost.exe --pkg vm56_firmware_X_X_X_X.pkg" to upgrade firmware." |
See Also