From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Strange lattency while communicating with 2 device by USB

Hello,

 

Here are keypoints of my setup:

  • 1st USB port: NI USB-6343
    • 3 analog outputs are emloyed
    • 1 analog input is employed
    • loop_A delay: 100ms
  • 2nd USB port: digital camera
    • input data: 2 consequtive images (180x180 pixels, 2 bytes per pixel)
    • loop delay B: 200ms
    • on each loop iteration of loop_B, 2 images are sent to loop_A (using queue)

Sometimes this functionnality is perurbed by unexplained latency. Here is statistics of loop_A delay (delay is added into listbox if delay is superior to 1 sec).

loop_violation.JPG

 

Other observation: once such lattency happens, the LED "Active" on USB-6343 is almost OFF.

 

Thanks in advance.

 

Pavel

Message 1 of 3
(2,790 Views)

Probably cause of such malfunction could by desynchronization of loop_A and loop_B that run in separated VIs.

Anyway how to explain such huge latency ... more than 5 sec, i.e. more than 50 times of the loop delay (100 ms)

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

Resolved. The problem was low-power USB that powered digital camera.

Once camera put on external Power, the problem disappeared.

One more question before closing this topic: is there some function in LabVIEW for determining whether USB port is powerful or not.

Thanks

Message 3 of 3
(2,761 Views)