leared, and the error message keeps coming up, even though the hardware is OK. "VISA device clear" does not help, and the "flush I/O buffer" has error 'invalid mask' - even if nothing is wired to that terminal - is there a special way to use this function?Matt,
I'm hoping you have some information about the status and error registers for your piece of equipment. This is usually in the programming guide for the equipment. At the highest level there is the status byte register. This register has bits that respond to other lower level registers. When they error and their masks are enabled, a bit is set in this register. And if its mask is set, an SRQ (status register interupt) is generated. You can poll with the common IEEE command *STB? to see if any of these bits have been set. By doing this, you will know when a bit is set to act upon it, but in most cases (i'm familiar with) this will not reset the bits to cleared state. If this is true for your equipment there are a couple of workarounds. Fir
st, try the 'SPOLL' function in the IEEE.2 palette. This will return the same info as *STB? but should also reset the register. Otherwise try polling lower level registers for errors. If you know where the error(s) come from such as the standard event register usually responds to events like power on, command error, request control, etc. This register is usually read with the common command *ESR?. In my experience, this also clears the register besides reading it. There are common commands for setting the masks i mentioned above (like *ESE and *SRE). this is helpful if you just want to generate an error on certain bits of the registers. Your equipment may have other registers available too.
Good luck,
Jared