I am using XEM5010 application board and for my tests I use python. The tests has to be started from different python scripts :
Ex1 : myTest1.py can open the comm with XEM5010; the following code works :
self.xem = ok.FrontPanel()
if (self.xem.NoError != self.xem.OpenBySerial("")):
print “A device could not be opened. Is one connected?”
Ex2 : myTest2.py calls myTest1.py two times
The first run is ok but the second run fails cause self.xem.OpenBySerial("") returns -1 !
So is there any way to close the comm properly ?
Thanks for helping me.