COM Port Interrupt stops interrupting

Solution Available
Paul J.
Thousand Oaks, CA

Apr 16, 2015
16 Posts

1  |  0  

Re: COM Port Interrupt stops interrupting

     I'm trying to read, parse and test data from a serial device. I wrote two procedures called ReceivePort and IntitalizePort. The IntializePort intializes the com port and enables the COM interrupt. When the interrupt occurs, it calls the ReceivePort procedure. I call  the InitialzePort procedure from a Test. If I run the test it only responds to 1 interrupt and the test stops.  How can I keep the Interrupt alive to respond to more interrupts?

DrATEasy (Ron Y.)
Mission Viejo, CA

Apr 16, 2015
358 Posts

0  |  0  

Re: COM Port Interrupt stops interrupting

ATEasy runs the test and closes, If you want to keep it alive add a Modal Form to your application or loop endloop to keep it running. See also the ComChat example.

Hans B.
almelo overijssel,

Apr 17, 2015
1 Post

0  |  0  

Re: COM Port Interrupt stops interrupting

I found that Ateasy loops sometimes are consuming lots of processor time.

   sleep(5)        !gives the interrupt routine some time

will do the job.

Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]