LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

NI4351 with TC-2190 gets error -1305

In the following section of LabWindows/CVI code, I always get a -1305 error on all settings of the "NI435X_Set_Range" function. Since I am using K thermocouples I set the range to -200 to 1372, and received the -1305 error. So I tried narrowing the range down to +/- 15V thinking that my previous range was too large. The same -1305 error occurred. Interestingly enough, if I ignore the error on this one particular function, the data received appears to be OK.

            st = NI435X_Set_Scan_List (vi, "2:15");            
            st = NI435X_Set_Powerline_Frequency (vi, NI435X_60HZ);
            st = NI435X_Set_Reading_Rate (vi, NI435X_FAST);
            st = NI435X_Set_Temperature_Units (vi, "2:15", NI435X_DEG_C);
            st = NI435X_Set_Channel_Mode (vi, "2:15", NI435X_THERM_K);
            st = NI435X_Set_Range (vi, "2:15", -15.0, 15.0);

I guess I could ignore the error, but would like to know more about why it is happening.
My system is using a NI4351 with a TC-2109 adapter. I'm using LW v8.1 and the latest drivers & MAX.


Thanks in advance,
Doug Wendelboe

0 Kudos
Message 1 of 2
(3,171 Views)

Hi Doug, Thank you for using our discussion forums.

Error 1305 is the invalid setting error.  The parameters that you are using in your CVI code look good, and from the look of it I can’t tell why you are getting the errors that you see.  How are you determining that you are getting this error, and are you sure it is occurring on the Set_Ranges call?  To get a text description of the error code, call NI435X_error_message.  There is more information on this function in the 435X help located at Start>>Programs>>National Instruments>>NI-435x>>Documentation.  Getting a full description of this error code may help lead to cause of the error. 

Chris_K 

0 Kudos
Message 2 of 2
(3,130 Views)