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
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?