Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

visa async read thread switch

Hi:

Not sure if this belongs here or on the Measurement Studio board. I'm accessing bluetooth Serial Port devices over TCP/IP using Visa and MFC with Measurement Studio. Each device has its own dialog and its own thread and each device is reading async. At the event of my event handler for the IOComplete event I perform another async read. I notice that if I read more than around 550 bytes the async handler thread releases control and the message pump for the dialog gets in. If I read less than around 550 bytes the handler thread never releases control and the message pump never gets back in - the event handler just gets called immediately. Is there a parameter somewhere I should be setting to fix this. For one device I want to read 10 samples at a time which relates to 0.1 sec of captured data. Each packet is 22 bytes which makes my read 220 bytes.  Thanks

Phil reaston
0 Kudos
Message 1 of 1
(2,991 Views)