Admin Production ni-theme
Current Publication

Network Streams Library Error Codes

LabWindows/CVI

Network Streams Library Error Codes

The Network Streams Library functions return negative values when they detect errors. The following table lists the error codes, defined constants, and error messages associated with functions in the the LabWindows/CVI Network Streams Library.

Use the CNSGetErrorDescription function to convert the error code, returned in the error parameter of Network Streams Library functions, into meaningful error messages.

Error codes are defined in the cvi\include\cvinetstreams.h file.

Value Defined Constant Error Message
-6999 CNSErrStreamManagerNotExists The Network Streams Engine does not exist.
-6998 CNSErrStreamManagerAlreadyInited The Network Streams Engine was already initialized.
-6997 CNSErrStreamManagerNotInited The Network Streams Engine is not initialized.
-6996 CNSErrStreamManagerInitFailed The Network Streams Engine initialization failed.
-6995 CNSErrStreamManagerUninitFailed The Network Streams Engine uninitialization failed.
-6994 CNSErrStreamNotExists The specified endpoint does not exist.
-6993 CNSErrStreamAlreadyExists An endpoint with the same name already exists.
-6992 CNSErrStreamInvalidSize The buffer size of the endpoint must be greater than zero.
-6991 CNSErrStreamInvalidName You did not specify a valid endpoint name.
-6990 CNSErrStreamReadOnly You cannot write to a reader endpoint.
-6989 CNSErrStreamWriteOnly You cannot read from a writer endpoint.
-6988 CNSErrStreamNotLinked The local endpoint is not connected to a remote endpoint.
-6887 CNSErrStreamAlreadyLinked The local endpoint is already connected to another endpoint. Each endpoint can connect to only one other endpoint at a time.
-6886 CNSErrStreamAlreadyExistsAsAncestor The name of one endpoint cannot be the partial name of another endpoint within the same application. Change the name of this endpoint so that it does not overlap with an existing name, or destroy the other endpoint before creating this endpoint.
-6985 CNSErrStreamAlreadyExistsAsDescendant The name of one endpoint cannot be the partial name of another endpoint within the same application. Change the name of this endpoint so that it does not overlap with an existing name, or destroy the other endpoint before creating this endpoint.
-6984 CNSErrStreamCanNotSync The local endpoint lost connection and reconnected with the remote endpoint, but some data was lost.
-6983 CNSErrStreamCanNotFlush You cannot flush a network stream from the reader endpoint.
-6982 CNSErrStreamMultiReadWriteOverflow You cannot read or write a number of elements that is larger than the size of the endpoint buffer.
-6981 CNSErrStreamIsOrphan The remote endpoint has been destroyed.
-6980 CNSErrStreamIncompatibleFormat Incompatible format.
-6979 CNSErrStreamCouldNotAllocateMemory The Network Streams Library could not create the local endpoint because the computer that hosts the endpoint ran out of memory.
-6978 CNSErrStreamRestarted The remote endpoint was restarted because the computer that hosts the endpoint crashed, was rebooted, or experienced a hang.
-6977 CNSErrStreamOutOfSync The stream detected an unrecoverable loss of data. Contact National Instruments for support.
-6976 CNSErrStreamIncompatibleDataType The data type of the remote endpoint does not match the data type of the local endpoint. The data types of the endpoints must match.
-6975 CNSErrStreamIncompatibleAccess The remote and local endpoints are either both reader endpoints or both writer endpoints. You can prompt a connection between a reader and writer endpoint.
-6974 CNSErrMSGStreamAlreadyLinked The remote endpoint is already connected to another endpoint. Each endpoint can connect to only one other endpoint at a time.
-6973 CNSErrMSGStreamIsOrphan The remote endpoint has been destroyed.
-6972 CNSErrMSGStreamCouldNotAllocateMemory The Network Streams Library could not create the remote endpoint because the computer that hosts the endpoint ran out of memory.
-6971 CNSErrMSGStreamRestarted The local endpoint was restarted because the computer that hosts the remote endpoint crashed, was rebooted, or experienced a hang.
-6970 CNSErrMSGStreamLinkingToDifferentEndpoint The local endpoint found the remote endpoint at the URL you specified, but the remote endpoint was trying to connect to a third endpoint. Ensure that corresponding endpoints each specify the URL of the other endpoint, or specify a URL with only one of the endpoints so the other endpoint accepts a connection from the first endpoint that connects to it.
-6969 CNSErrIncompatibleProtocol The protocol version of the writer endpoint is not compatible with the protocol version of the reader endpoint. To transfer data between these endpoints, you must upgrade the version of LabVIEW or LabWindows/CVI that the older endpoint uses.
-6968 CNSErrLogosXTDuplicateService Another application is already streaming data to an endpoint in the context you specified. If you specified a context name in the reader name or writer name terminal of the endpoint, you must specify an unused context name. If you did not specify a context name, you must specify an unused context name by entering an endpoint URL in the reader name or writer name terminal.
-6967 CNSErrNullPointerPassed A NULL pointer was passed to the Network Streams Library.
-6966 CNSErrNotEnoughMemory Not enough memory.
-6965 CNSErrUnexpectedError Unexpected error. Please contact National Instruments for support.
-6964 CNSErrUnexpectedException Unexpected exception. Please contact National Instruments for support.
-6963 CNSErrNWStreamDLLNotFound ni_nwstreams_local.dll could not be loaded.
-6962 CNSErrCNStreamDLLNotFound cnetstreams.dll could not be loaded.
-6961 CNSErrWrongDLLVersion cnetstreams.dll version does not match ni_nwstreams_local.dll.
-6960 CNSErrCouldNotFindFunction Function not found in cnetstreams.dll. You may have installed an older version of the Network Streams Library. Please install the correct version.
-6959 CNSErrCouldNotCreateMutex Unable to create mutex for loading cnetstreams.dll.
-6958 CNSErrOperationTimedOut Operation has timed out.
-6957 CNSErrDataTypeNotScalar The network stream data does not contain a scalar.
-6956 CNSErrDataTypeNotArray The network stream data does not contain an array.
-6955 CNSErrDataTypeNotStruct The network stream data does not contain a structure.
-6954 CNSErrEndpointNotArray The data type of this endpoint is not an array.
-6953 CNSErrInvalidArray The array does not contain the specified number of elements.
-6952 CNSErrInvalidArraySize The array size cannot be 0 or exceed INT_MAX. For multidimensional arrays the number of dimensions cannot be 0 or exceed USHRT_MAX.
-6951 CNSErrInvalidDataType This function does not support the given data type.
-6950 CNSErrInvalidDataHandle The network stream data handle is invalid.
-6949 CNSErrInvalidArgument One of the function arguments has an invalid value.
-6948 CNSErrIncompatibleFunction This function cannot be called for this endpoint. Please check the data type.
-6947 CNSErrNrElementsNotMatch The number of elements in the network stream data does not match the specified size.
-6946 CNSErrWriterOnlyAttribute This attribute is only valid for a writer endpoint.
-6945 CNSErrReaderOnlyAttribute This attribute is only valid for a reader endpoint.
-6944 CNSErrBadAttribute Invalid attribute.
-6943 CNSErrURLGeneralSyntax Invalid URL. The URL cannot contain # or ? characters.
-6942 CNSErrURLUnsupportedPathSegment The URL contains one or more unsupported path segments. Path segments of the form '/./', '/../', and empty path segments '//' are not supported.
-6941 CNSErrURLRemoteHostNotSupported The endpointUrl specifies a host name that does not correspond to the local host.
-6940 CNSErrURLEmptyString The endpointUrl cannot be empty or NULL.
-6939 CNSErrURLRemoteHostRelativePath You cannot specify a relative URL for the otherEndpointUrl parameter. You must use an absolute URL.
-6938 CNSErrURLUnsupportedScheme The scheme specified in the URL is not supported.
-6937 CNSErrOpenConnections Some connections are still open. Please discard all endpoints before uninitializing the Network Streams Library.
-6936 CNSErrArrayUnsupported CNSReadMultipleData and CNSWriteMultipleData do not support network stream data containing scalar arrays.