LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ViClose is taking 15 second to close the session

Hi,

 

We are doing USB communication with hardware, when we are trying to close the USB communication by calling viClose(session); function.

 

it takes 15 seconds to close the USB port

 

My code is as follows

 

 /* Close USB Port */
  s32_CloseUSBStatus = viClose(NeverlostIV);
 
  if(s32_CloseUSBStatus < VI_SUCCESS)  /* USB port status */  
  {
   u8_CloseUSB = FALSE;  
  }
  else  /* Success */
  {
   u8_CloseUSB = TRUE; 
  }

 

 Executing viClose(NeverlostIV) function is taking 15 second.

 

I want to close it immediately,

 

Please suggest, any alternate ways to close the port.

 

 

 

 

 

 

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

Did you ever figure out the cause ? Having the same problem...

0 Kudos
Message 2 of 2
(2,314 Views)