AnsweredAssumed Answered

Command Expert usage for instrument simulation

Question asked by yurik2015 on Nov 24, 2015
Latest reply on Nov 24, 2015 by hognala
Hi,

1. I simulated instrument with help of Command Expert: 
code(C#)
using Agilent.CommandExpert.ScpiNet.AgN6700_C_02_18;
AgN6700 N67002 = new AgN6700("");

2. Simulation is needed for checking commands that I send to this simulated instrument:
    N67002.Transport.Query.Invoke("*myQuery?", out ReturnValue);
    N67002.Transport.Command.Invoke("commandString");

I supposed to get error when I pass NOT CORRECT command to this simulated instrument does not matter if it is 
query or command, but it does not show any ERROR if I pass command or any STRING ...

Questions:
1. Simulated instrument does not behavior like a real instrument, e.g. returns some default value?
2. Why simulated instrument accepts wrong commands and not throws exception or warning?

Thank you, Yuri  

Outcomes