i try to change voltage range for NI card acquisition. If i use Daq Express or labview it works but from matlab i can't.

The code :
clear
close
clc
% %% acquisition
dq = daqlist("ni")
deviceInfo = dq{1, "DeviceInfo"}
%%
dq = daq("ni")
dq.Rate = 2000;
ai2 = addinput(dq, "Dev5", "ai2", "Voltage");
ai2.Range = [-5 5];
ai2.TerminalConfig = "SingleEnded"


The error :
Warning: Cannot support range of -5.0 to +5.0 Volts. Range set to -10 to +10 Volts.

someone can help me ?