ErrorCode Enumeration
- Updated2025-01-08
- 2 minute(s) read
Represents the list of error codes for the NI-PowerSignalsDAQ driver.
Syntax
Namespace: NationalInstruments.PowerSignalsDaq
public enum ErrorCode
Remarks
You can get detailed error message by looking at the Exception.Message property, to figure out what error has happened in the API call. In particular, Exception.Message may contain more detailed information about the error than the error type descriptions provided in this document, which may help you in debugging. If you want your code to programmatically handle exceptions associated with specific error codes, the code can compare the value of the error code in the exception i.e. Exception.ErrorCode with specific error codes listed in this document.
Members
| Name | Value | Description |
|---|---|---|
| None | 0 | No error. |
| InternalSoftwareError | -711999 | Internal software error. Contact NI technical support with detailed information from the exception message. |
| MissingChannelMappingsFile | -711998 | The channel mappings file is missing. |
| InvalidInputLimitValue | -711997 | Requested value is not a supported value. |
| InvalidChannelName | -711996 | Specified channel name is not supported. |
| InvalidChannelType | -711995 | The channel type of the specified channel name is not consistent with the expected channel type. |
| InvalidTotalAcquisitionTime | -711994 | Requested total acquisition time value is not a supported value. |
| InvalidTriggerSource | -711993 | Specified trigger source is either empty or not supported. |
| InvalidResourceNameSpecified | -711992 | Specified resource name is not supported. |
| ResourceNameNotSpecified | -711991 | Resource name is not specified. |
| InvalidOperation | -711990 | Requested operation could not be performed. |
| InvalidSession | -711989 | Session specified is invalid or does not exist. |
| SamplesWillNeverBeAvailable | -711988 | Attempted to read a sample beyond the final sample acquired. |
| CanNotReadRelativeToReferenceTriggerUntilDone | -711987 | Reading relative to the reference trigger or relative to the start of pretrigger samples position before the acquisition is complete. |
| SamplesNotYetAvailable | -711986 | Some or all of the samples requested have not yet been acquired. |
| ChannelAlreadyCreated | -711985 | Specified channel cannot be added to the session, because a channel with the same name is already in the session. |
| PretriggerPlusPostTriggerTimeTooLarge | -711984 | Pretrigger time requested plus minimum posttrigger time exceed the requested total acquisition time. |
| FixtureInformationXmlFileNotSpecified | -711983 | Fixture information XML file is not specified. |
| FixtureInformationXmlFileNotFound | -711982 | The fixture information xml file could not be found at the specified location. Ensure that the file exists and the file path is correct. |
| TriggerSourceNotSpecified | -711981 | An empty string was specified as the trigger source which is not supported. |