Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial logging interrupted by scroll

Hi,

 

I'm logging serial data using the SIO4 board from general standards. Logging works fine when I run the the program. If I scroll the mouse wheel however, the next frames of data will be shifted a random number of bytes and a number of frames are lost.

 

I display the data in an array on the front panel as well, and you can see that while it's continuously updating, a mouse scroll completely messes it up. If I scroll up and down continuously, the array stops updating until I stop the scrolling.

 

I added some logic in my program to detect the shifts and reset the Rx fifos if it's detected. Now the shifted data isn't logged but several packages of data is still lost.

 

Is this a know problem? Does it sound like there's an error in my program or is it labview itself?

 

The data is transferred at a little over 1 MHz.

 

Thank you for your help

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

Your acquisition seems to be software timed...

Try to uncouple the reading loop from the display by using a producer consumer architecture

(and don't put any controls/indicators in the reading(producer) loop to enable the LV compiler to create a own GUI independent threat)

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


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