Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

rs232 lib + multi-thread = Blue Screen of Death

$
0
0

I've got a nearly repeatable critical issue on my project.

 

I'm using the standard RS-232 Library for a very straight-forward application with an SRS RGA (gas analyzer).  That half of this effort works very well, very ordered and non-mysterious.

 

But then I tip-toed into the multi-thread world using the CMT to facilitate the instrument's rather slow retrieval of histogram and analog scans.

 

I opted for thread-safe queues, as they seemed to have the lowest cost-to-entry and smallest setup.  I'm doing nothing fancy here, merely creating a queue each time a histogram is needed, filling it with data and elsewhere reading the data from queue and plotting.

 

Yet, under certain circumstance, I get very often get BSODs:

 

IMG_20180312_151531.jpg

 

I did some research on "ser2pl64.sys" and see that it's my serial-to-USB cable.  I swapped this out, no affect.

 

I've done many projects now with the RS-232 Library and never, ever seen such hard errors like this.  I really feel that I've done some poor housekeeping with the CMT, as this is my first project to use that lib.  Yet, as far as I can tell, I'm flushing and discarding it when done.

 


Viewing all articles
Browse latest Browse all 5339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>