09-06-2023 09:02 AM - edited 09-06-2023 09:04 AM
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\
09-11-2023 12:00 AM
Increase the instrument time out
viSetAttribute (session0, VI_ATTR_TMO_VALUE, maxTime));