11-13-2006 04:19 PM
11-14-2006 08:21 AM
I don't think the 488 routines are getting interrupted. From the error message, it seems you are sending a command to the instrument before it is ready to accept it. I'm not familar with the instrument so I don't know what the 'switch2range' command does but it would seem that sometimes it takes longer to execute. Is there a status bit that you can query to see when the command finishes? That way, whenever you execute the command, you don't proceed until the status bit says it's okay. You might also want to add some code to give you an indication whenever the time to execute it exceeds a certain amount of time. You could then use this to try to isolate the condition that causes the instrument to behave differently.