Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5566

Generating An Exception After Using A Wrong Command

$
0
0

Hi everyone,

I use SCPI commands and c# programming language in my program to communicate with various devices. After sending incorrect or incomplete commands to the devices, only way to understand that if my command is correct or wrong is sending error query command (SYST:ERR?) afterwards. For example, if I send wrong command like "SOUR:V" instead of correct version "SOUR:VOLT 10(value)", I can only understand if it is correct or wrong after sending error query command. Is there a way to understand if the command is wrong without sending error query command? For example, generating an exception after sending a wrong command.

 

Thanks in advance


Viewing all articles
Browse latest Browse all 5566

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>