02-22-2010 11:24 PM
Solved! Go to Solution.
02-24-2010 05:24 PM
Hi there,
After further experimentation I determined what the problem was. I had previously removed the '0x' prefix from the register values when setting the ESE and SRE registers otherwise I would get a 'Command Error' in the ESR. Although I was still thinking of these values as hex the instrument simulator was interpreting them as decimal. So now when I send '*SRE 32' the instrument simulator does what I expect it to.
That still begs the (minor) question of why I was having problems with the '0x' prefix. I tried 'FORM:SREG HEX' to see if that command, which causes the query results to be returned in hex format, also influenced the simulator's parsing of the register value in the command but still no joy. However, since I have a workaround, I'm moving on.
Paul