Enum StatusCode
Status codes reported by APIs, including OK, warnings, and errors.
public enum StatusCode
- Extension Methods
Fields
ApiTooOld = -10030This API version is too old for the firmware on the device. Either upgrade the API to a newer version or downgrade the device firmware to an older version for correct behavior.
AppIsTerminating = -800The user application is shutting down.
AppTooOld = -112Device firmware application is too old.
BufferFailure = -1010BufferFailure
BufferFull = 1006Buffer is full, cannot insert more data.
CANdleAnimSlotOutOfBounds = -1506CANdleAnimSlotOutOfBounds
CANdleAnimationsRequireHigherFirm = -1705CANdleAnimationsRequireHigherFirm
CanMessageStale = 1000CAN message is stale, data is valid but old. Check the CAN bus wiring, CAN bus utilization, and power to the device.
CanOverflowed = -1006CanOverflowed
CanivCliError = -145Command-line issue with caniv.
CannotLicenseWhileEnabled = -10033Device cannot be licensed while it is control enabled. Disable and neutral the device to apply the licenses.
CannotOpenSerialPort = -500CannotOpenSerialPort
CannotOpenUdpPort = -600CannotOpenUdpPort
CannotReadSerialPort = -502CannotReadSerialPort
CannotReadUdpPort = -602CannotReadUdpPort
CannotSerialToDevice = -503CannotSerialToDevice
CannotStepWhileUnpaused = -10038The simulation timing cannot be advanced by a time step while unpaused. Pause the simulator before advancing time.
CannotUdpToDevice = -603CannotUdpToDevice
CannotWriteSerialPort = -501CannotWriteSerialPort
CannotWriteUdpPort = -601CannotWriteUdpPort
CompileSzIsWrong = -114CompileSzIsWrong
ConfigFactoryDefaultRequiresHigherFirm = -1702Config factory default features require firmware >=3.10.
ConfigFailed = -129ConfigFailed
ConfigMotionSCurveRequiresHigherFirm = -1703Config Motion S Curve Strength features require firmware >=4.16.
ConfigReadWriteMismatch = -132The configs read from the device do not match the configs that were written.
ControlModeNotSupportedYet = 1106This control mode is not supported yet. A future release will supported this soon.
ControlModeNotValid = 1105The control mode is not valid for this function.
CorruptedPOST = -127CorruptedPOST
CouldNotCast = -10003Could not cast from base value to this particular signal's type
CouldNotChangePeriod = -1009Control Frame Period could not be changed. Most likely it is not being transmitted.
CouldNotConfirmBl = -104Could not confirm the device has entered the bootloader.
CouldNotConfirmId = -110Could not verify that the changed ID took effect.
CouldNotDecodeDeviceFirmware = -10022Device firmware could not be decoded. Check that the device is running v6 firmware, the device ID is correct, the specified CAN bus is correct, and the device is powered.
CouldNotEnterBl = -103Could not put the device into bootloader mode.
CouldNotErase = -105Could not erase flash.
CouldNotFindDynamicId = -300CouldNotFindDynamicId
CouldNotReqDevInfo = -140CouldNotReqDevInfo
CouldNotReqFactoryDefault = -130Unable to factory default this device.
CouldNotReqSetConfigs = -133Could not apply the device configs.
CouldNotReqSetDesc = -113Unable to set name to this device.
CouldNotReqSetId = -109Unable to set ID to this device.
CouldNotRetrieveV6Firmware = -10021Device firmware could not be retrieved. Check that the device is running v6 firmware, the device ID is correct, the specified CAN bus is correct, and the device is powered.
CouldNotRunApp = -108Could not run the device firmware application.
CouldNotSendCanFrame = -123CouldNotSendCanFrame
CouldNotSendFlash = -106Could not field upgrade the device.
CouldNotSerialize = -10026The data frame could not be serialized for transmit.
CouldNotValidate = -107Bootloader could not verify integrity of the flashed application.
CustomNameNotSupported = -131CustomNameNotSupported
DeviceDidNotRespondToDiagReq = -143DeviceDidNotRespondToDiagReq
DeviceIsNull = -142DeviceIsNull
DidNotGetDhcp = -301DidNotGetDhcp
DidNotGetFullDhcp = -302DidNotGetFullDhcp
DirectoryMissing = -10029Could not find specified directory.
DistanceBetweenWheelsTooSmall = -1502Distance between wheels is too small, cannot get heading.
DoubleVoltageCompensatingWPI = -1505Motor Controller Voltage Compensation should not be used with setVoltage(). This causes compensation to happen twice. Disable Voltage Compensation by calling enableVoltageCompensation(false) in order to use setVoltage().
EcuIsNotPresent = -102Device is not present. Verify the device is connected and powered, and that the CAN bus is terminated.
FeatureNotSupported = -125This feature is not supported.
FeatureRequiresHigherFirm = -1700Features requires newer firmware version.
FeaturesNotAvailableYet = 1104This feature will be supported in a future update.
FirmVersionCouldNotBeRetrieved = 1103Firm Vers could not be retrieved. Use Phoenix Tuner X to check ID and firmware(CRF) version.
FirmwareNonFRC = -1011Firmware is legacy non-FRC version. Use Phoenix Tuner X to field upgrade your CTRE CAN device firmware(CRF). Firmware greater than 20.0 required.
FirmwareTooNew = -10025Firmware Too New. Use Phoenix Tuner X to field upgrade your CTRE CAN device firmware(CRF) to a compatible version. Then restart your robot application to clear this error.
FirmwareTooOld = -1008Firmware Too Old. Use Phoenix Tuner X to field upgrade your CTRE CAN device firmware(CRF). Then restart your robot application to clear this error.
FirmwareVersNotCompatible = -10028Firmware version is not compatible with this version of Phoenix. Make sure your firmware and API major versions match.
FlashWasGood = -111Device field upgrade was successful.
FrequentConfigCalls = 10002Do not apply or refresh configs periodically, as configs are blocking.
GEN_MODULE_ERROR = -1400GEN_MODULE_ERROR
GEN_PORT_ERROR = -1300GEN_PORT_ERROR
GadgeteerDeviceNoSetId = -115Cannot set the ID of a gadgeteer device.
GainsAreNotSet = -1503GainsAreNotSet
GeneralError = -1100General Error Occurred.
GeneralWarning = 1100General Warning Occurred.
HootLogTooNew = -10036The given hoot log requires a newer version of Phoenix API.
HootLogTooOld = -10035The given hoot log requires an older version of Phoenix API.
HwTimestampOutOfSync = 10001The timestamp reported by CANivore is at least 10ms older than the timestamp reported by the system, indicating it's fallen out of sync. This does not impact the data of this message, only the timing.
IncompatibleMode = -1600IncompatibleMode
InsufficientSz = -134InsufficientSz
InternalError = -10018InternalError
InvalidCanivCache = -351InvalidCanivCache
InvalidContext = -10017InvalidContext
InvalidCrfBadHeader = -200InvalidCrfBadHeader
InvalidCrfBadSectHeader = -204InvalidCrfBadSectHeader
InvalidCrfBadSectSize = -205InvalidCrfBadSectSize
InvalidCrfFileSzInvald = -201InvalidCrfFileSzInvald
InvalidCrfNoSects = -203InvalidCrfNoSects
InvalidCrfWrongProduct = -202Specified CRF is for the wrong product.
InvalidDeviceDescriptor = -121InvalidDeviceDescriptor
InvalidDeviceModel = -10041The provided model was not a valid device type.
InvalidDeviceSpec = -101InvalidDeviceSpec
InvalidFile = -10034Could not open or read the given file.
InvalidHandle = -1601Handle passed into function is incorrect.
InvalidIDToFollow = -10023The values specified for master are in valid. Make sure the Device ID of master are correct.
InvalidJson = -700InvalidJson
InvalidLicenseResp = -350InvalidLicenseResp
InvalidLicenseResponse = -10016InvalidLicenseResponse
InvalidModeToGetSignal = -10013The current mode of the device is invalid for getting this signal.
InvalidModel = -135This feature is not supported for this device model.
InvalidNetwork = -10001The given network/CAN bus is invalid. Verify that any status signals provided are on the same network and that the network is present.
InvalidOrchestraAction = -1904An invalid orchestra action occurred. Ensure a music file is loaded.
InvalidParamValue = -1002An invalid argument was passed into the function/VI, such as a null pointer.
InvalidSize = -10015Size is invalid.
InvalidTask = -116This diagnostic action is not supported.
LibraryCouldNotBeLoaded = -1800LibraryCouldNotBeLoaded
LicenseDownloadFailed = -10010License did not successfully download to Device.
LoggerNotRunning = -10031The signal logger is not running. Start the signal logger before writing any signals.
MODULE_NOT_INIT_GET_ERROR = -1402MODULE_NOT_INIT_GET_ERROR
MODULE_NOT_INIT_SET_ERROR = -1401MODULE_NOT_INIT_SET_ERROR
MechanismFaulted = -10027The mechanism is disabled due to a fault in one of the devices.
MissingContext = -10006Could not determine context from this device hash
MissingRoutineInLibrary = -1801MissingRoutineInLibrary
MissingSchema = -10043The schema for the logged user signal is invalid or missing. Ensure that the schema is written before the user signal.
ModelMismatch = -10007Model name in license file does not match model name of selected device.
MoreThanOneFile = -119MoreThanOneFile
MotProfFirmThreshold = 1109Motor Controller must have >= 3.2 firmware for motion profile control mode.
MotProfFirmThreshold2 = 1110Motor Controller must have >= 3.4 firmware for advanced PID0/PID1 features.
MultiSignalNotSupported = -10002The CAN bus does not support multi-signal synchronization.
MultipleReplayNotSupported = -10039Hoot replay does not support replaying multiple files. Ensure that only one file is loaded at a time.
MusicFileInvalid = -1903Music file is invalid. Ensure you're using Tuner to generate file.
MusicFileNotFound = -1900Could not find music file specified, try specifying an absolute path.
MusicFileTooNew = -1902Music file version is too new, update Phoenix to utilize this file.
MusicFileTooOld = -1905This music file version is too old. Regenerate file using Tuner.
MusicFileWrongSize = -1901Music file size is incorrect, could not parse correctly. Ensure you're using Tuner to generate file.
MusicInterrupted = -1906Music interrupted due to one of the instruments being commanded a different control mode. Press Play to resume music.
MusicNotSupported = -1907This device doesn't support MusicTone control mode.
NoConfigs = -128This device did not report any available configs. Verify firmware and diagnostics are up-to-date.
NoControls = -141This device does not support new controls.
NoCrfFile = -206Specified CRF file could not be found.
NoDevicesOnBus = -118NoDevicesOnBus
NoFile = -10009Could not find specified file.
NoSerialControlFrameResp = -504NoSerialControlFrameResp
NoUdpControlFrameResp = -604NoUdpControlFrameResp
NodeIsInvalid = -120Specified device was not found. Verify the device is connected and powered, and that the CAN bus is terminated.
NormalModeMsgNotPresent = -124NormalModeMsgNotPresent
NotAllPIDValuesUpdated = -1201NotAllPIDValuesUpdated
NotFound = -10004Could not find this value when searching for it
NotImplemented = -117Not Implemented, check latest installer.
NotSupported = -10005This is not supported
NotUpdating = -126The diagnostic server is not field upgrading any devices.
OK = 0No Error
OnlySupportedInTunerX = -144This feature requires Tuner X.
PORT_MODULE_TYPE_MISMATCH = -1301PORT_MODULE_TYPE_MISMATCH
PulseWidthSensorNotPresent = 1010PulseWidthSensorNotPresent
ResourceNotAvailable = -1802ResourceNotAvailable
RxTimeout = -1003CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
SelfTestIsEmpty = -10011Self Test report does not have any values, is the firmware up to date?
SensorNotPresent = -1007Sensor Not Present.
SerialMismatch = -10008Serial Number in license file does not match model name of selected device.
SigNotUpdated = -1200No new response to update signal.
SignalLookupFailed = -10012Failed to lookup signal properties. This can happen if the fimware is too new and supports signals that older APIs do not support.
SignalNotSupportedOrMissing = -10042The requested signal is missing or not supported. Verify that the device firmware is up-to-date.
SimDeviceAlreadyExists = 1202SimDeviceAlreadyExists
SimDeviceNotFound = 1200SimDeviceNotFound
SimPhysicsTypeNotSupported = 1201SimPhysicsTypeNotSupported
StatusCodeNotInitialized = -10000This StatusCode has not been initialized. Make sure the StatusCode is getting assigned to the return of a method.
TalonFXFirmwarePreVBatDetect = -1704Talon FX(Falcon 500) Firmware Too Old. Use Phoenix Tuner to field upgrade your CTRE CAN device firmware(CRF) to >=20.3. Then restart your robot application to clear this error.
TaskIsBusy = -100Diagnostic Server is busy with another command.
TicksPerRevZero = -1501Ticks per revolution is 0, cannot get heading.
TimeoutCannotBeZero = -10032Blocking operations, such as configs, cannot have a timeout of 0. Pass in a non-zero timeout (typically 0.050+ seconds) for normal operation.
TimeoutIso15Response = -605TimeoutIso15Response
TxFailed = -1001Could not transmit CAN Frame.
TxTimeout = -1004CAN Transmit timed out.
UnexpectedArbId = -1005ArbID is incorrect.
UnlicensedDevice = -10014Device is not licensed. Cannot get any data from it.
UnlicensedHootLog = -10037Hoot log is not licensed. Cannot get any data from it.
UserSignalLimitExceeded = -10040The maximum number of loggable user signals has been exceeded. Additional user signals will not be logged.
UsingProFeatureOnUnlicensedDevice = -10024Using a Pro only feature on an unlicensed device. The device may not behave as expected if it continues to operate while unlicensed.
WarningNotInitialized = 10000WarningNotInitialized
WheelRadiusTooSmall = -1500Wheel Radius is too small, cannot get distance traveled.
WrongRemoteLimitSwitchSource = -1504Use RemoteLimitSwitchSource instead of LimitSwitchSource.
kAccessDenied = -2014kAccessDenied
kDeviceResponseIncorrect = -10019kDeviceResponseIncorrect
kErrorPollingForDevices = -10020kErrorPollingForDevices
kFailedSetup = -2006kFailedSetup
kFirmwareInvalidResponse = -2015kFirmwareInvalidResponse
kGeneralWinUsbError = -2005kGeneralWinUsbError
kInvalidClass = -2002kInvalidClass
kInvalidGuid = -2001kInvalidGuid
kInvalidInterface = -2000kInvalidInterface
kInvalidPath = -2004kInvalidPath
kInvalidProtocol = -2003kInvalidProtocol
kInvalidRespFormat = -2010kInvalidRespFormat
kListenFailed = -2007kListenFailed
kReceiveFailed = -2009kReceiveFailed
kSendFailed = -2008kSendFailed
kWinUsbGeneralError = -2013kWinUsbGeneralError
kWinUsbInitFailed = -2011kWinUsbInitFailed
kWinUsbQueryFailed = -2012kWinUsbQueryFailed