Error -200099 Occurred at DAQmx Create Channel

Updated Jun 13, 2024

Reported In

Driver

  • NI-DAQmx

Issue Details

  • I am using LabVIEW trying to read/write data using Analog I/O device channels, but receive π™΄πš›πš›πš˜πš› -𝟸𝟢𝟢𝟢𝟿𝟿 πš˜πšŒπšŒπšžπš›πš›πšŽπš 𝚊𝚝 π™³π™°πš€πš–πš‘ π™²πš›πšŽπšŠπšπšŽ π™²πš‘πšŠπš—πš—πšŽπš•.
image.png
 

Solution

This error can be caused by the execution of a task within the code that requires reading a physical channel of the device used, which must be defined prior to program execution. The troubleshooting steps below will be useful to mitigate this error.
  • Ensure that you have created the Simulated NI-DAQmx Devices in NI MAX before running the program. Note: The device should be visible in Measurement & Automation Explorer (NI MAX), as shown below:
image.png
  • When using a DAQmx Constant, the required channel must be specified, if this is left empty the tasks executed by the program that require reading that constant will fail and the π™΄πš›πš›πš˜πš› -𝟸𝟢𝟢𝟢𝟿𝟿 will indicate that the physical channel has not been established. Once the DAQmx Physical Channel is specified the error should no longer appear. Note: The following image is an example of how to define the channel:
image.png