From 4c11ea0639b923a171e72a47b8006734ba184b3e Mon Sep 17 00:00:00 2001
From: nancy.liao <huihui.liao@greentest.com.cn>
Date: 周二, 15 4月 2025 18:47:46 +0800
Subject: [PATCH] 同步修改前的原SCPI库

---
 examples/common-cxx/scpi-def.cpp |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/examples/common-cxx/scpi-def.cpp b/examples/common-cxx/scpi-def.cpp
index abbc80a..c2fd351 100644
--- a/examples/common-cxx/scpi-def.cpp
+++ b/examples/common-cxx/scpi-def.cpp
@@ -338,6 +338,12 @@
     return SCPI_RES_OK;
 }
 
+scpi_result_t SCPI_NanCy(scpi_t * context) 
+{
+    fprintf(stdout, "SCPI_NanCy: SCPI_NanCy\r\n");
+    return SCPI_RES_OK;
+}
+
 /**
  * Reimplement IEEE488.2 *TST?
  *
@@ -352,7 +358,10 @@
 
     return SCPI_RES_OK;
 }
-
+/*
+    scpi_commands鎻愪緵浜嗘墍鏈夌殑scpi鍛戒护浠ュ強鍛戒护鐨勫洖璋冨嚱鏁板拰澶勭悊
+    鍚庣画濡傛灉闇�瑕佹坊鍔犺嚜瀹氫箟鐨勬寚浠ら泦鍒欏湪姝ゅ娣诲姞
+*/
 const scpi_command_t scpi_commands[] = {
     /* IEEE Mandated Commands (SCPI std V1999.0 4.1.1) */
     {"*CLS", SCPI_CoreCls, 0},
@@ -368,20 +377,15 @@
     {"*STB?", SCPI_CoreStbQ, 0},
     {"*TST?", My_CoreTstQ, 0},
     {"*WAI", SCPI_CoreWai, 0},
+    //鐢ㄦ潵娴嬭瘯
+    {"*NanCy", SCPI_NanCy, 0},
 
     /* Required SCPI commands (SCPI std V1999.0 4.2.1) */
     {"SYSTem:ERRor[:NEXT]?", SCPI_SystemErrorNextQ, 0},
     {"SYSTem:ERRor:COUNt?", SCPI_SystemErrorCountQ, 0},
     {"SYSTem:VERSion?", SCPI_SystemVersionQ, 0},
 
-    //{"STATus:OPERation?", scpi_stub_callback, 0},
-    //{"STATus:OPERation:EVENt?", scpi_stub_callback, 0},
-    //{"STATus:OPERation:CONDition?", scpi_stub_callback, 0},
-    //{"STATus:OPERation:ENABle", scpi_stub_callback, 0},
-    //{"STATus:OPERation:ENABle?", scpi_stub_callback, 0},
-
     {"STATus:QUEStionable[:EVENt]?", SCPI_StatusQuestionableEventQ, 0},
-    //{"STATus:QUEStionable:CONDition?", scpi_stub_callback, 0},
     {"STATus:QUEStionable:ENABle", SCPI_StatusQuestionableEnable, 0},
     {"STATus:QUEStionable:ENABle?", SCPI_StatusQuestionableEnableQ, 0},
 

--
Gitblit v1.9.1