Solution
The National Institute of Standards and Technology (NIST) had established standard temperature ranges for various types of thermocouples to ensure accuracy, reliability and consistency in temperature measurements. Commonly, the standard temperature range for type K thermocouples is from -200°C to 1250°C. However, for NI-9212, the DAQmx driver is able to measure temperature from -270°C to 1372°C for type K thermocouple. Setting the temperature either lower and/or higher than the temperature range supported by the device driver will cause error -200077. Make sure to set the temperature within the supported range to prevent the error from appearing.