Status Codes | ![]() ![]() ![]() ![]() |
Status Codes
This appendix lists the status
codes returned by PCIS-DASK, including the name and description.
Each PCIS-DASK function returns
a status code that indicates whether the function was performed successfully.
When an PCIS-DASK function returns a negative number, it means that an
error occurred while executing the function.
Status
Code |
Status Name | Description |
0 | NoError | No error occurred |
-1 | ErrorUnknownCardType | The CardType argument is not valid |
-2 | ErrorInvalidCardNumber | The CardNumber argument is out of range (larger than 31). |
-3 | ErrorTooManyCardRegistered | There have been 16 cards that were registered. |
-4 | ErrorCardNotRegistered | No card registered as id CardNumber. |
-5 | ErrorFuncNotSupport | The function called is not supported by this type of card.. |
-6 | ErrorInvalidIoChannel | The specified Channel or Port argument is out of range.. |
-7 | ErrorInvalidAdRange | The specified analog input range is invalid. |
-8 | ErrorContIoNotAllowed | The specified continuous IO operation is not supported by this type of card. |
-9 | ErrorDiffRangeNotSupport | All the analog input ranges must be the same for multi-channel analog input. |
-10 | ErrorLastChannelNotZero | The channels for multi-channel analog input must be ended with or started from zero. |
-11 | ErrorChannelNotDescending | The channels for multi-channel analog input must be contiguous and in descending order. |
-12 | ErrorChannelNotAscending | The channels for multi-channel analog input must be contiguous and in ascending order. |
-13 | ErrorOpenDriverFailed | Failed to open the device driver. |
-14 | ErrorOpenEventFailed | Open event failed in device driver. |
-15 | ErrorTransferCountTooLarge | The size of transfer is larger than the size of Initially allocated memory in driver. |
-16 | ErrorNotDoubleBufferMode | Double buffer mode is disabled. |
-17 | ErrorInvalidSampleRate | The specified sampling rate is out of range. |
-18 | ErrorInvalidCounterMode | The value of the Mode argument is invalid. |
-19 | ErrorInvalidCounter | The value of the Ctr argument is out of range. |
-20 | ErrorInvalidCounterState | The value of the State argument is out of range. |
-21 | ErrorInvalidBinBcdParam | The value of the BinBcd argument is invalid. |
-22 | ErrorBadCardType | The value of Card Type argument is invalid |
-23 | ErrorInvalidDaRefVoltage | The value of DA reference voltage argument is invalid |
-24 | ErrorAdTimeOut | Time out for AD operation |
-25 | ErrorNoAsyncAI | Continuous Analog Input is not set as Asynchronous mode |
-26 | ErrorNoAsyncAO | Continuous Analog Output is not set as Asynchronous mode |
-27 | ErrorNoAsyncDI | Continuous Digital Input is not set as Asynchronous mode |
-28 | ErrorNoAsyncDO | Continuous Digital Output is not set as Asynchronous mode |
-29 | ErrorNotInputPort | The value of AI/DI port argument is invalid |
-30 | ErrorNotOutputPort | The value of AO/DO argument is invalid |
-31 | ErrorInvalidDioPort | The value of DI/O port argument is invalid |
-32 | ErrorInvalidDioLine | The value of DI/O line argument is invalid |
-33 | ErrorContIoActive | Continuous IO operation is not active |
-34 | ErrorDblBufModeNotAllowed | Double Buffer mode is not allowed |
-35 | ErrorConfigFailed | The specified function configuration is failed |
-36 | ErrorInvalidPortDirection | The value of DIO port direction argument is invalid |
-37 | ErrorBeginThreadError | Failed to create thread |
-38 | ErrorInvalidPortWidth | The port width setting for PCI-7300A/cPCI-7300A is not allowed |
-39 | ErrorInvalidCtrSource | The clock source setting is invalid |
-40 | ErrorOpenFile | Failed to Open file |
-41 | ErrorAllocateMemory | The memory allocation is failed |
-42 | ErrorDaVoltageOutOfRange | The value of DA voltage argument is out of range |