LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Timeout error while running self test function

Hello,

I have a problem while running self test function on hp34401a (dmm). Program breaks and reports that „A timeout occured“. Self test passed on the instrument, but about half way through testing program broke.

What can I do to fix this? Thanks!!

 

My code:

 

int CVICALLBACK SelfTest (int panel, int control, int event,void *callbackData, int eventData1, int eventData2)
{
 ViChar  testMessage[256];
 ViInt16 testResult;

 switch (event)    
    {
 case EVENT_COMMIT:
 hp34401a_self_test (session0, &testResult, testMessage);
   SetCtrlVal (panelHandle, PANEL_TEXTMSG, testMessage);
 break;
}  
   return 0;
}

 

Error message:

NON-FATAL RUN-TIME ERROR:   "c:\...\IVI\Drivers\hp34401a\hp34401a.c", line 1240, col 12, thread id 0x00000754:   Function viScanf: (return value == -1073807339 [0xbfff0015]). VI_ERROR_TMO: A timeout occurred

0 Kudos
Message 1 of 2
(1,333 Views)

Increase the instrument time out

 

viSetAttribute (session0, VI_ATTR_TMO_VALUE, maxTime));

0 Kudos
Message 2 of 2
(1,323 Views)