Message text is quoted from the source. <stream> is the stream name, <element> the element name from the block.
| Message | Cause | What to do |
NI65xxDriver: Failed to load NI65xxDriverAPI. <reason> (error) | The driver loads NI65xxAPI (a shared library next to the executable), and that library needs the NI-DAQmx runtime. The reason text is one of: API library not found, Dependency DLL missing (typically nicaiu.dll / NI-DAQmx not installed), Wrong architecture (32/64 mismatch), Exported function missing, DLL Initialization failed, or Missing create_api function. | Install the NI-DAQmx driver (64-bit) on the machine — the installer is in the source tree under NI65xx\api\HWDrivers (Windows) and the Linux driver package next to it. Make sure NI65xxAPI.dll / libNI65xxAPI.so was built for the same architecture as CoreEngine and sits next to the executable. After this error all I/O of the stream is silently disabled. |
NI65xxDriver: Stream '<stream>' configuration missing DeviceID attribute. (error) | The driver section has no DeviceID field. | Add "DeviceID": 1 (the number of Dev1). See the NI65xx field reference. |
NI65xxDriver: Stream '<stream>' Invalid element configuration for element: <element>. Error: <text> (error) | The element was checked against the card during start-up and rejected. <text> is one of:
Device Dev<N> does not exist. — the card was not found by DAQmx.
Port <n> does not exist on Dev1 — the port number is not a digital input port (element in an input block) or digital output port (output block) of the card. The text always says Dev1 even if DeviceID is different.
Line <n> on Port <p> is invalid! — the line is not available on that port.
Analog Channel <n> exceeds HW limit <max> — analog channel number too high. | Use the hardware listing printed at start-up. Remember that the direction comes from the block: elements in an input block are checked against the input ports, elements in an output block against the output ports. The element is skipped (not created), so its data never moves. |
NI65xxDriver: Stream '<stream>' Invalid element configuration for element: <element> (without "Error:")
NI65xxDriver: Stream '<stream>' Invalid element configuration for task: <task> | During stream setup an element or buffered task has no valid configuration (it was not completely created). | Check the earlier messages for the same element; fix those first. |
NI65xxDriver: Stream '<stream>' Invalid timeout value for element: <element>. Error: <text> (error) | The element's Timeout string could not be converted to a number. | Use a plain number of seconds as a string, for example "Timeout": "1.0". Leave it out for 0 (do not wait). |
NI65xxDriver: Stream '<stream>' Invalid sample rate value for element: <element>. Error: <text> (error) | The element's sampleRate string is not a valid number. | Give a number such as "sampleRate": "1000" (samples per second). |
NI65xxDriver: Stream '<stream>' missing element name, type <type>, port:<n>, line:<lines>, valid only on "timingMode": "Buffered" (error) | An element with on-demand or change-detection timing has no "element" name. Only buffered elements may be unnamed. The name links the NI line to an element of the block in the LRU. | Set "element" to the element name in the block definition. |
NI65xxDriver: Stream '<stream>' Invalid or missing sample rate value for <name>
NI65xxDriver: Stream '<stream>' buffered '<name>' missing sampleRate
NI65xxDriver: Stream '<stream>' buffered '<name>' missing sampleData array (error) | A task in the stream's buffereds list has no sampleRate (or it is 0 or less), or no sampleData (array of arrays, one row per line). The task is skipped. | Give sampleRate and a non-empty sampleData with one row per line; a sample above 0.5 is written as 1. |
DAQmxDriver: Stream '<stream>' driver failed: <NI error text> (error) | An NI-DAQmx call returned an error (negative code); the text is NI's own extended error description with the code, for example -200220 (device identifier invalid). It is reported when a task is created, a channel added, timing configured, or on a read / write. | Search the code number in NI's help (“NI-DAQmx error codes”). See section 3 for the common ones. A task that failed during creation is cleared and the element will not work. |
| NI code | Meaning | Fix |
-200220 | Device identifier invalid or not found. | Wrong DeviceID, card not installed or not enumerated; check NI MAX. After renaming the device in NI MAX update DeviceID. |
-50103 | The resource (port or line) is reserved by another task. | The same port (or lines of it) is used by two elements, by two streams, by another program (NI MAX test panel, LabVIEW), or by a CoreEngine instance that was not closed. Use each line once; close the other program. |
-200284 | Timeout: the samples requested were not available within the element's Timeout. | Use Timeout 0 (return immediately) for on-demand reads that run every minor frame. |
-200288 | Task already running. The driver ignores this one silently. | No action. |
| Other negative codes | Invalid value, unsupported operation for this card (for example a sample clock or change detection on a port that has no such hardware), and so on. | Look the code up in NI's “NI-DAQmx error codes” help and check the card's datasheet. Simple digital I/O cards are normally used with on-demand timing. |
| Symptom | Cause | Fix |
| Nothing printed about NI hardware on start-up; no data | The API library failed to load (see the first message), so the driver stays disabled. | Look at the Failed to load NI65xxDriverAPI message; install NI-DAQmx; match 64-bit. |
| Hardware list is printed but the card is not in it | NI-DAQmx runtime sees no device: card not seated, driver not installed for that bus (PCI / PCIe / PXI / USB / cDAQ), device simulated in NI MAX but not real. | Check NI MAX, reboot after installing drivers, check cabling and power of USB/PXI chassis. |
| A line shows the wrong value / is inverted | Wiring (sourcing vs sinking, pull-ups) or an active-low signal: the driver reads and writes the line level as 0 / 1 and does not invert. | Check with an NI MAX test panel. Invert in the ICD or in an element conversion if the field wiring is active-low. |
| Bits are shifted, wrong lines move | The element order in Lines is sorted ascending by the driver. Port numbering of the card starts at 0. | Set Lines explicitly ("0:7") and make the element's bit layout in the LRU match. Use the printed line list. |
| Outputs do not change | Element is in an input block; block has framePerMS: 0; reservation conflict (-200201); or the port is physically an input port. | Check the block direction and the start-up error list. |
| Reads return stale or zero values | On-demand reads happen once per minor frame at the block's rate; a pulse shorter than a minor frame is missed. | Use change detection / buffered capture for fast pulses, or hardware that latches. |
| Works first run, fails after a crash or restart | The previous CoreEngine process still holds the NI tasks, or the previous run left a task active. | Close the old process (Task Manager); reset the device in NI MAX. |
| Linux: library or device not found | The Linux NI-DAQmx driver package (NILinux...DeviceDrivers.zip) is not installed or the kernel modules were not built for the running kernel; libnidaqmx.so / libnisyscfg.so are not found. | Install the NI Linux driver package for your distribution, reboot, check that the device is listed by the NI tools; check permission to the NI device nodes. |
| Reset (restart of the simulation) loses output state | On reset the driver stops and clears all tasks and creates them again. | Outputs are rewritten on the first send after the reset; wait one frame. |