AlazarErrorToText¶
Function Syntax¶
-
const char *AlazarErrorToText(RETURN_CODE retCode)¶
Converts a numerical return code to a
NULLterminated string.- Remark
It is often easier to work with a descriptive error name than an error number.
- Parameters:
retCode – [in] Return code from an AlazarTech API function
- Returns:
A string containing the identifier name of the error code
LabVIEW Block Diagram¶
Related Enumerations¶
-
enum RETURN_CODE¶
API functions return codes.
Values:
-
enumerator ApiSuccess¶
512The operation completed without error
-
enumerator ApiFailed¶
513The operation failed
-
enumerator ApiAccessDenied¶
514Access denied
-
enumerator ApiDmaChannelUnavailable¶
515Channel selection is unavailable
-
enumerator ApiDmaChannelInvalid¶
516Channel selection in invalid
-
enumerator ApiDmaChannelTypeError¶
517Channel selection is invalid
-
enumerator ApiDmaInProgress¶
518A data transfer is in progress. This error code indicates that the current action cannot be performed while an acquisition is in progress. It also returned by AlazarPostAsyncBuffer() if this function is called with an invalid DMA buffer.
-
enumerator ApiDmaDone¶
519DMA transfer is finished
-
enumerator ApiDmaPaused¶
520DMA transfer was paused
-
enumerator ApiDmaNotPaused¶
521DMA transfer is not paused
-
enumerator ApiDmaCommandInvalid¶
522A DMA command is invalid
-
enumerator ApiNullParam¶
531One of the parameters of the function is NULL and should not be
-
enumerator ApiUnsupportedFunction¶
533This function is not supported by the API. Consult the manual for more information.
-
enumerator ApiInvalidPciSpace¶
534Invalid PCI space
-
enumerator ApiInvalidIopSpace¶
535Invalid IOP space
-
enumerator ApiInvalidSize¶
536Invalid size passed as argument to the function
-
enumerator ApiInvalidAddress¶
537Invalid address
-
enumerator ApiInvalidAccessType¶
538Invalid access type requested
-
enumerator ApiInvalidIndex¶
539Invalid index
-
enumerator ApiInvalidRegister¶
543Invalid register
-
enumerator ApiConfigAccessFailed¶
550Access for configuration failed
-
enumerator ApiInvalidDeviceInfo¶
551Invalid device information
-
enumerator ApiNoActiveDriver¶
552No active driver for the board. Please ensure that a driver is installed
-
enumerator ApiInsufficientResources¶
553There were not enough system resources to complete this operation. The most common reason of this return code is using too many DMA buffers, or using DMA buffers that are too big. Please try reducing the number of buffers posted to the board at any time, and/or try reducing the DMA buffer sizes.
-
enumerator ApiNotInitialized¶
556The API has not been properly initialized for this function call. Please review one of the code samples from the ATS-SDK to confirm that API calls are made in the right order.
-
enumerator ApiInvalidPowerState¶
558Power state requested is not valid
-
enumerator ApiPowerDown¶
559The operation cannot be completed because the device is powered down. For example, this error code is output if the computer enters hiberanation while an acquisition is running.
-
enumerator ApiNotSupportThisChannel¶
561The API call is not valid with this channel selection.
-
enumerator ApiNoAction¶
562The function has requested no action to be taken
-
enumerator ApiHSNotSupported¶
563HotSwap is not supported
-
enumerator ApiVpdNotEnabled¶
565Vital product data not enabled
-
enumerator ApiInvalidOffset¶
567Offset argument is not valid
-
enumerator ApiPciTimeout¶
569Timeout on the PCI bus
-
enumerator ApiInvalidHandle¶
572Invalid handle passed as argument
-
enumerator ApiBufferNotReady¶
573The buffer passed as argument is not ready to be called with this API. This error code is most often seen is the order of buffers posted to the board is not respected when querying them.
-
enumerator ApiInvalidData¶
574Generic invalid parameter error. Check the function’s documentation for more information about valid argument values.
-
enumerator ApiDoNothing¶
575
-
enumerator ApiDmaSglBuildFailed¶
576Unable to lock buffer and build SGL list
-
enumerator ApiPMNotSupported¶
577Power management is not supported
-
enumerator ApiInvalidDriverVersion¶
578Invalid driver version
-
enumerator ApiWaitTimeout¶
579The operation did not finish during the timeout interval. try the operation again, or abort the acquisition.
-
enumerator ApiWaitCanceled¶
580The operation was cancelled.
-
enumerator ApiBufferTooSmall¶
581The buffer used is too small. Try increasing the buffer size.
-
enumerator ApiBufferOverflow¶
582The board overflowed its internal (on-board) memory. Try reducing the sample rate, reducing the number of enabled channels. Also ensure that DMA buffer size is between 1 MB and 8 MB.
-
enumerator ApiInvalidBuffer¶
583The buffer passed as argument is not valid.
-
enumerator ApiInvalidRecordsPerBuffer¶
584The number of reocrds per buffer passed as argument is invalid.
-
enumerator ApiDmaPending¶
585An asynchronous I/O operation was successfully started on the board. It will be completed when sufficient trigger events are supplied to the board to fill the buffer.
-
enumerator ApiLockAndProbePagesFailed¶
586The buffer is too large for the driver or operating system to prepare for scatter-gather DMA transfer. Try reducing the size of each buffer, or reducing the number of buffers queued by the application.
-
enumerator ApiMaxDescriptorsExceeded¶
-
enumerator ApiInvalidBufferBurstLengthAlignment¶
-
enumerator ApiTransferComplete¶
This buffer is the last in the current acquisition
589This buffer is the last in the current acquisition
-
enumerator ApiPllNotLocked¶
590The on-board PLL circuit could not lock. If the acquisition used an internal sample clock, this might be a symptom of a hardware problem; contact AlazarTech. If the acquisition used an external 10 MHz PLL signal, please make sure that the signal is fed in properly.
-
enumerator ApiNotSupportedInDualChannelMode¶
591The requested acquisition is not possible with two channels. This can be due to the sample rate being too fast for DES boards, or to the number of samples per record being too large. Try reducing the number of samples per channel, or switching to single channel mode.
-
enumerator ApiNotSupportedInQuadChannelMode¶
592The requested acquisition is not possible with four channels. This can be due to the sample rate being too fast for DES boards, or to the number of samples per record being too large. Try reducing the number of samples per channel, or switching to single channel mode.
-
enumerator ApiFileIoError¶
593A file read or write error occured.
-
enumerator ApiInvalidClockFrequency¶
594The requested ADC clock frequency is not supported.
-
enumerator ApiInvalidSkipTable¶
595Invalid skip table passed as argument
-
enumerator ApiInvalidDspModule¶
596This DSP module is not valid for the current operation.
-
enumerator ApiDESOnlySupportedInSingleChannelMode¶
597Dual-edge sampling mode is only supported in signel-channel mode. Try disabling dual-edge sampling (lowering the sample rate if using internal clock), or selecting only one channel.
-
enumerator ApiInconsistentChannel¶
598Successive API calls of the same acuqiisiton have received inconsistent acquisition channel masks.
-
enumerator ApiDspFiniteRecordsPerAcquisition¶
599DSP acquisition was run with a finite number of records per acqusiition. Set this value to inifinite.
-
enumerator ApiNotEnoughNptFooters¶
600Not enough NPT footers in the buffer for extraction
-
enumerator ApiInvalidNptFooter¶
601Invalid NPT footer found
-
enumerator ApiOCTIgnoreBadClockNotSupported¶
602OCT ignore bad clock is not supported
-
enumerator ApiError1¶
603The requested number of records in a single-port acquisition exceeds the maximum supported by the digitizer. Use dual-ported AutoDMA to acquire more records per acquisition.
-
enumerator ApiError2¶
604The requested number of records in a single-port acquisition exceeds the maximum supported by the digitizer.
-
enumerator ApiOCTNoTriggerDetected¶
605No trigger is detected as part of the OCT ignore bad clock feature.
-
enumerator ApiOCTTriggerTooFast¶
606Trigger detected is too fast for the OCT ignore bad clock feature.
-
enumerator ApiNetworkError¶
607There was a network-related issue. Make sure that the network connection and settings are correct.
-
enumerator ApiFftSizeTooLarge¶
608On-FPGA FFT cannot support FFT that large. Try reducing the FFT size, or querying the maximum FFT size with AlazarDSPGetInfo()
-
enumerator ApiGPUError¶
609GPU returned an error. See log for more information
-
enumerator ApiAcquisitionModeOnlySupportedInFifoStreaming¶
610This board only supports this acquisition mode in FIFO only streaming mode. Please set the ADMA_FIFO_ONLY_STREAMING flag in AlazarBeforeAsyncRead().
-
enumerator ApiInterleaveNotSupportedInTraditionalMode¶
611This board does not support sample interleaving in traditional acquisition mode. Please refer to the SDK guide for more information.
-
enumerator ApiRecordHeadersNotSupported¶
612This board does not support record headers. Please refer to the SDK guide for more information.
-
enumerator ApiRecordFootersNotSupported¶
613This board does not support record footers. Please refer to the SDK guide for more information.
-
enumerator ApiFastBufferLockCountExceeded¶
614The number of different DMA buffers posted exceeds the limit set with AlazarConfigureFastBufferLock(). Either disable fast buffer locking, or confirm that the value passed to AlazarConfigureFastBufferLock() is respected.
-
enumerator ApiInvalidStateDoRetry¶
615The operation could not complete because the system is in an invalid state. You may safely retry the call that returned this error.
-
enumerator ApiInvalidInputRange¶
616The operation could not complete because the system is in an invalid state. You may safely retry the call that returned this error.
-
enumerator ApiBusy¶
617The operation could not complete because the system is in a busy state. You may safely retry the call that returned this error.
-
enumerator ApiNoRcPathVariable¶
618Under Linux, ATSApi looks for anALAZARRCPATHor aHOMEenvironment variable to know where to store the .alazarrc configuration file. This error indicates that none of these variables were identified.
-
enumerator ApiOnFpgaFftOptionMissing¶
619This board requires an option to be active to perform on-FPGA FFTs.
-
enumerator ApiReferenceClockPllNotLocked¶
620The PLL of the reference clock was not locked.
-
enumerator ApiAdcJesdPllNotLocked¶
621The JESD link PLL on ADC is not locked.
-
enumerator ApiAdcJesdLinkNotLocked¶
622The JESD link on ADC is not locked.
-
enumerator ApiFpgaJesdLinkNotLocked¶
623The JESD link on FPGA is not locked.
-
enumerator ApiInvalidFirmwareForATS9364¶
624The library does not support FPGA versions under 4.07 for ATS9364. Frimware must be updated.
-
enumerator ApiHardwareRemoved¶
625The hardware is no longer detected in the system.
-
enumerator ApiInvalidFirmwareForATS4001¶
626The library does not support FPGA versions under 6.0 for ATS4001. Frimware must be updated.
-
enumerator ApiInvalidLicense¶
627Invalid license for running the desired software.
-
enumerator ApiGalvoError¶
628Error with the galvo controller.
-
enumerator ApiSuccess¶