LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data corrupt on usb line...

I am currently using Ni-Visa USB RAW and communicating with controller in HID class in interrupt and bulk method....I noticed a one thing that data gets corrupted when I use the roller of my optical mouse when labview window is opened and also when I minimize or maximize labview window....As my Optical mouse and my Controller both are HID device so I wonder that can be reason of data corruption....one thing to note that it gets corrupted only when I use roller to move up-down of optical mouse and labview window is opened ..it not when roller is used and labview window is minimized....

...and for later case of minimize-maximize window that I don't know...

 

Is there something to be done to avoid this??

0 Kudos
Message 1 of 2
(2,370 Views)
The first answer would be if it doesn't do it when something is one way, then do it that way. Seriously though, what do you mean by corrupted? Gaps in data? How fast are you transfering data? It may be that the processor just isn't keeping up, the UI thread for LabVIEW can take up a fair amount of processor, as do most visual "events" in Windows. It may be that the structure of your data transfer part isn't able to keep up when there isn't enough processor available. There are ways to write LabVIEW code that is more efficient that a similar function written differently. What are you running this on, a multi-core machine by any chance? If yes, then it might benefit from LabVIEW's ability (in the most recent versions) to select which core to run on.
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



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