AnsweredAssumed Answered

Clearing spoll status register value

Question asked by tgoodhew on May 17, 2016
Latest reply on May 19, 2016 by tgoodhew

Hi All,


I'm new to VEE and I'm running into an issue where I'm waiting for a specific status bit to be set using SPOLL.


I can do the wait and continue execution properly but nothing I do can seem to clear the status register value. I've tried EXECUTE CLEAR, *CLS, *RST - Nothing seems to work.


Clearly there is something going on that I don't understand.


I've written a small program to test it out and the flow is:


1. Start program

2. Wait on SPOLL bit

3. Display Message

4. Exit


The first time I run it, it works exactly as above. The second time though it completes before the instrument has (so when it evaluates SPOLL it's seeing the previous value).


The third time I run it, it works as expected again.


Any ideas on what I'm missing?