Browse Source

多频点调试完成。(2021.8.22)

ceac_pqy@163.com 3 năm trước cách đây
mục cha
commit
2182c63bb3

BIN
exe/apps/Tps_LQ_Transmitter/Tps_LQ_Transmitter.dll


BIN
exe/apps/Tps_LQ_Transmitter/Tps_LQ_Transmitter.pdb


BIN
exe/apps/Tps_LQ_Transmitter/config/测试#常温测试#9B发射机-N9030A.xlsx


BIN
exe/apps/Tps_LQ_Transmitter/发射机/9B发射机/模板/常温测试模板.xlsx


BIN
exe/apps/Tps_LQ_Transmitter/发射机/9B发射机/测试数据/常温测试/1.xlsx


BIN
exe/apps/Tps_LQ_Transmitter/发射机/9B发射机/测试数据/常温测试/66666.xlsx


+ 166 - 0
exe/logs/202108.log

@@ -6803,3 +6803,169 @@
 2021-08-21 22:43:26.1854 Info:                [source]:runtime,[msg]:插件"资源管理器"停止成功 
 2021-08-21 22:43:26.1854 Info:                [source]:runtime,[msg]:插件"6YX03B-9B"停止成功 
 2021-08-21 22:43:26.1854 Info:                [source]:runtime,[msg]:Runtime 关闭 
+2021-08-21 23:27:31.1494 Info:                [source]:runtime,[msg]:Runtime 启动 
+2021-08-21 23:27:31.2734 Info:                [source]:runtime,[msg]:加载插件"F:\Code\Transmitter-3-New\TpsLabStudio_LTS\exe\apps\DataApp\bundle.config" 
+2021-08-21 23:27:31.6984 Info:                [source]:runtime,[msg]:加载插件"F:\Code\Transmitter-3-New\TpsLabStudio_LTS\exe\apps\DevicesApp\bundle.config" 
+2021-08-21 23:27:31.7154 Info:                [source]:runtime,[msg]:加载插件"F:\Code\Transmitter-3-New\TpsLabStudio_LTS\exe\apps\Tps_LQ_Transmitter\bundle.config" 
+2021-08-21 23:27:31.7294 Info:                [source]:runtime,[msg]:AppHost 开始启动插件 
+2021-08-21 23:27:31.7294 Info:                [source]:runtime,[msg]:插件"数据管理"启动成功 
+2021-08-21 23:27:31.7294 Info:                [source]:runtime,[msg]:插件"资源管理器"启动成功 
+2021-08-21 23:27:31.7294 Info:                [source]:runtime,[msg]:插件"6YX03B-9B"启动成功 
+2021-08-21 23:27:31.7294 Info:                [source]:runtime,[msg]:Runtime 启动完成 
+2021-08-21 23:27:41.4054 Error:                [source]:Visa SearchDevices,[msg]:VISA设备搜索执行异常,   在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
+   在 System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
+   在 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
+   在 System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
+   在 System.Activator.CreateInstance(Type type, Object[] args)
+   在 NationalInstruments.VisaNS.ResourceManager.Open(String resourceName, AccessModes accessMode, Int32 openTimeout)
+   在 NationalInstruments.VisaNS.ResourceManager.Open(String resourceName)
+   在 DevicesApp.VisaBus.GetDeviceModel(String resourcehandle, String& deviceID, String& bustype) 位置 D:\code\LabStudio\component\DevicesApp\VisaBus.cs:行号 129
+   在 DevicesApp.VisaBus.SearchDevices() 位置 D:\code\LabStudio\component\DevicesApp\VisaBus.cs:行号 30 
+2021-08-21 23:27:43.4254 Error:                [source]:Visa SearchDevices,[msg]:VISA设备搜索执行异常,   在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
+   在 System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
+   在 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
+   在 System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
+   在 System.Activator.CreateInstance(Type type, Object[] args)
+   在 NationalInstruments.VisaNS.ResourceManager.Open(String resourceName, AccessModes accessMode, Int32 openTimeout)
+   在 NationalInstruments.VisaNS.ResourceManager.Open(String resourceName)
+   在 DevicesApp.VisaBus.GetDeviceModel(String resourcehandle, String& deviceID, String& bustype) 位置 D:\code\LabStudio\component\DevicesApp\VisaBus.cs:行号 129
+   在 DevicesApp.VisaBus.SearchDevices() 位置 D:\code\LabStudio\component\DevicesApp\VisaBus.cs:行号 30 
+2021-08-21 23:27:43.4754 Info:                [source]:资源管理器 LoadDevice,[msg]:初始化设备成功:GPIB0::34::INSTR。 
+2021-08-21 23:27:43.4914 Info:                [source]:资源管理器 LoadDevice,[msg]:初始化设备成功:USB0::0x0957::0x0D0B::US49230327::INSTR。 
+2021-08-21 23:27:43.4914 Info:                [source]:资源管理器 LoadDevice,[msg]:初始化设备成功:GPIB0::13::INSTR。 
+2021-08-21 23:27:51.2224 Info:                [source]:runtime,[msg]:AppHost 停止插件 
+2021-08-21 23:27:51.2224 Info:                [source]:runtime,[msg]:插件"数据管理"停止成功 
+2021-08-21 23:27:51.2224 Info:                [source]:runtime,[msg]:插件"资源管理器"停止成功 
+2021-08-21 23:27:51.2284 Info:                [source]:runtime,[msg]:插件"6YX03B-9B"停止成功 
+2021-08-21 23:27:51.2284 Info:                [source]:runtime,[msg]:Runtime 关闭 
+2021-08-21 23:33:15.4624 Info:                [source]:runtime,[msg]:Runtime 启动 
+2021-08-21 23:33:15.6714 Info:                [source]:runtime,[msg]:加载插件"F:\Code\Transmitter-3-New\TpsLabStudio_LTS\exe\apps\DataApp\bundle.config" 
+2021-08-21 23:33:15.9274 Info:                [source]:runtime,[msg]:加载插件"F:\Code\Transmitter-3-New\TpsLabStudio_LTS\exe\apps\DevicesApp\bundle.config" 
+2021-08-21 23:33:15.9404 Info:                [source]:runtime,[msg]:加载插件"F:\Code\Transmitter-3-New\TpsLabStudio_LTS\exe\apps\Tps_LQ_Transmitter\bundle.config" 
+2021-08-21 23:33:15.9584 Info:                [source]:runtime,[msg]:AppHost 开始启动插件 
+2021-08-21 23:33:15.9654 Info:                [source]:runtime,[msg]:插件"数据管理"启动成功 
+2021-08-21 23:33:15.9654 Info:                [source]:runtime,[msg]:插件"资源管理器"启动成功 
+2021-08-21 23:33:15.9654 Info:                [source]:runtime,[msg]:插件"6YX03B-9B"启动成功 
+2021-08-21 23:33:15.9654 Info:                [source]:runtime,[msg]:Runtime 启动完成 
+2021-08-21 23:33:24.3404 Error:                [source]:Visa SearchDevices,[msg]:VISA设备搜索执行异常,   在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
+   在 System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
+   在 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
+   在 System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
+   在 System.Activator.CreateInstance(Type type, Object[] args)
+   在 NationalInstruments.VisaNS.ResourceManager.Open(String resourceName, AccessModes accessMode, Int32 openTimeout)
+   在 NationalInstruments.VisaNS.ResourceManager.Open(String resourceName)
+   在 DevicesApp.VisaBus.GetDeviceModel(String resourcehandle, String& deviceID, String& bustype) 位置 D:\code\LabStudio\component\DevicesApp\VisaBus.cs:行号 129
+   在 DevicesApp.VisaBus.SearchDevices() 位置 D:\code\LabStudio\component\DevicesApp\VisaBus.cs:行号 30 
+2021-08-21 23:33:26.3894 Error:                [source]:Visa SearchDevices,[msg]:VISA设备搜索执行异常,   在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
+   在 System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
+   在 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
+   在 System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
+   在 System.Activator.CreateInstance(Type type, Object[] args)
+   在 NationalInstruments.VisaNS.ResourceManager.Open(String resourceName, AccessModes accessMode, Int32 openTimeout)
+   在 NationalInstruments.VisaNS.ResourceManager.Open(String resourceName)
+   在 DevicesApp.VisaBus.GetDeviceModel(String resourcehandle, String& deviceID, String& bustype) 位置 D:\code\LabStudio\component\DevicesApp\VisaBus.cs:行号 129
+   在 DevicesApp.VisaBus.SearchDevices() 位置 D:\code\LabStudio\component\DevicesApp\VisaBus.cs:行号 30 
+2021-08-21 23:33:26.4444 Info:                [source]:资源管理器 LoadDevice,[msg]:初始化设备成功:GPIB0::34::INSTR。 
+2021-08-21 23:33:26.4724 Info:                [source]:资源管理器 LoadDevice,[msg]:初始化设备成功:USB0::0x0957::0x0D0B::US49230327::INSTR。 
+2021-08-21 23:33:26.4844 Info:                [source]:资源管理器 LoadDevice,[msg]:初始化设备成功:GPIB0::13::INSTR。 
+2021-08-21 23:34:18.2394 Info:                [source]:runtime,[msg]:AppHost 停止插件 
+2021-08-21 23:34:18.2394 Info:                [source]:runtime,[msg]:插件"数据管理"停止成功 
+2021-08-21 23:34:18.2394 Info:                [source]:runtime,[msg]:插件"资源管理器"停止成功 
+2021-08-21 23:34:18.2394 Info:                [source]:runtime,[msg]:插件"6YX03B-9B"停止成功 
+2021-08-21 23:34:18.2394 Info:                [source]:runtime,[msg]:Runtime 关闭 
+2021-08-21 23:36:27.7204 Info:                [source]:runtime,[msg]:Runtime 启动 
+2021-08-21 23:36:27.8694 Info:                [source]:runtime,[msg]:加载插件"F:\Code\Transmitter-3-New\TpsLabStudio_LTS\exe\apps\DataApp\bundle.config" 
+2021-08-21 23:36:28.2524 Info:                [source]:runtime,[msg]:加载插件"F:\Code\Transmitter-3-New\TpsLabStudio_LTS\exe\apps\DevicesApp\bundle.config" 
+2021-08-21 23:36:28.2674 Info:                [source]:runtime,[msg]:加载插件"F:\Code\Transmitter-3-New\TpsLabStudio_LTS\exe\apps\Tps_LQ_Transmitter\bundle.config" 
+2021-08-21 23:36:28.2814 Info:                [source]:runtime,[msg]:AppHost 开始启动插件 
+2021-08-21 23:36:28.2814 Info:                [source]:runtime,[msg]:插件"数据管理"启动成功 
+2021-08-21 23:36:28.2814 Info:                [source]:runtime,[msg]:插件"资源管理器"启动成功 
+2021-08-21 23:36:28.2814 Info:                [source]:runtime,[msg]:插件"6YX03B-9B"启动成功 
+2021-08-21 23:36:28.2814 Info:                [source]:runtime,[msg]:Runtime 启动完成 
+2021-08-21 23:36:36.6924 Error:                [source]:Visa SearchDevices,[msg]:VISA设备搜索执行异常,   在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
+   在 System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
+   在 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
+   在 System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
+   在 System.Activator.CreateInstance(Type type, Object[] args)
+   在 NationalInstruments.VisaNS.ResourceManager.Open(String resourceName, AccessModes accessMode, Int32 openTimeout)
+   在 NationalInstruments.VisaNS.ResourceManager.Open(String resourceName)
+   在 DevicesApp.VisaBus.GetDeviceModel(String resourcehandle, String& deviceID, String& bustype) 位置 D:\code\LabStudio\component\DevicesApp\VisaBus.cs:行号 129
+   在 DevicesApp.VisaBus.SearchDevices() 位置 D:\code\LabStudio\component\DevicesApp\VisaBus.cs:行号 30 
+2021-08-21 23:36:38.7304 Error:                [source]:Visa SearchDevices,[msg]:VISA设备搜索执行异常,   在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
+   在 System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
+   在 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
+   在 System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
+   在 System.Activator.CreateInstance(Type type, Object[] args)
+   在 NationalInstruments.VisaNS.ResourceManager.Open(String resourceName, AccessModes accessMode, Int32 openTimeout)
+   在 NationalInstruments.VisaNS.ResourceManager.Open(String resourceName)
+   在 DevicesApp.VisaBus.GetDeviceModel(String resourcehandle, String& deviceID, String& bustype) 位置 D:\code\LabStudio\component\DevicesApp\VisaBus.cs:行号 129
+   在 DevicesApp.VisaBus.SearchDevices() 位置 D:\code\LabStudio\component\DevicesApp\VisaBus.cs:行号 30 
+2021-08-21 23:36:39.1854 Info:                [source]:资源管理器 LoadDevice,[msg]:初始化设备成功:GPIB0::34::INSTR。 
+2021-08-21 23:36:39.2614 Info:                [source]:资源管理器 LoadDevice,[msg]:初始化设备成功:USB0::0x0957::0x0D0B::US49230327::INSTR。 
+2021-08-21 23:36:39.2614 Info:                [source]:资源管理器 LoadDevice,[msg]:初始化设备成功:GPIB0::13::INSTR。 
+2021-08-21 23:39:33.8624 Info:                [source]:runtime,[msg]:Runtime 启动 
+2021-08-21 23:39:34.0164 Info:                [source]:runtime,[msg]:加载插件"F:\Code\Transmitter-3-New\TpsLabStudio_LTS\exe\apps\DataApp\bundle.config" 
+2021-08-21 23:39:34.4104 Info:                [source]:runtime,[msg]:加载插件"F:\Code\Transmitter-3-New\TpsLabStudio_LTS\exe\apps\DevicesApp\bundle.config" 
+2021-08-21 23:39:34.4254 Info:                [source]:runtime,[msg]:加载插件"F:\Code\Transmitter-3-New\TpsLabStudio_LTS\exe\apps\Tps_LQ_Transmitter\bundle.config" 
+2021-08-21 23:39:34.4394 Info:                [source]:runtime,[msg]:AppHost 开始启动插件 
+2021-08-21 23:39:34.4394 Info:                [source]:runtime,[msg]:插件"数据管理"启动成功 
+2021-08-21 23:39:34.4394 Info:                [source]:runtime,[msg]:插件"资源管理器"启动成功 
+2021-08-21 23:39:34.4394 Info:                [source]:runtime,[msg]:插件"6YX03B-9B"启动成功 
+2021-08-21 23:39:34.4394 Info:                [source]:runtime,[msg]:Runtime 启动完成 
+2021-08-21 23:39:38.7414 Error:                [source]:Visa SearchDevices,[msg]:VISA设备搜索执行异常,   在 NationalInstruments.VisaNS.Internal.ErrorChecker.CheckStatusAndThrow(Int32 status, VisaHandle visaObject)
+   在 NationalInstruments.VisaNS.Session.CheckStatusAndThrow(Int32 status)
+   在 NationalInstruments.VisaNS.Internal.MessageBasedSessionImpl.ReadString(Int32 countToRead)
+   在 NationalInstruments.VisaNS.MessageBasedSession.Query(String dataToWrite)
+   在 DevicesApp.VisaBus.GetDeviceModel(String resourcehandle, String& deviceID, String& bustype) 位置 D:\code\LabStudio\component\DevicesApp\VisaBus.cs:行号 182
+   在 DevicesApp.VisaBus.SearchDevices() 位置 D:\code\LabStudio\component\DevicesApp\VisaBus.cs:行号 30 
+2021-08-21 23:39:42.7834 Error:                [source]:Visa SearchDevices,[msg]:VISA设备搜索执行异常,   在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
+   在 System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
+   在 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
+   在 System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
+   在 System.Activator.CreateInstance(Type type, Object[] args)
+   在 NationalInstruments.VisaNS.ResourceManager.Open(String resourceName, AccessModes accessMode, Int32 openTimeout)
+   在 NationalInstruments.VisaNS.ResourceManager.Open(String resourceName)
+   在 DevicesApp.VisaBus.GetDeviceModel(String resourcehandle, String& deviceID, String& bustype) 位置 D:\code\LabStudio\component\DevicesApp\VisaBus.cs:行号 129
+   在 DevicesApp.VisaBus.SearchDevices() 位置 D:\code\LabStudio\component\DevicesApp\VisaBus.cs:行号 30 
+2021-08-21 23:39:44.8024 Error:                [source]:Visa SearchDevices,[msg]:VISA设备搜索执行异常,   在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
+   在 System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
+   在 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
+   在 System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
+   在 System.Activator.CreateInstance(Type type, Object[] args)
+   在 NationalInstruments.VisaNS.ResourceManager.Open(String resourceName, AccessModes accessMode, Int32 openTimeout)
+   在 NationalInstruments.VisaNS.ResourceManager.Open(String resourceName)
+   在 DevicesApp.VisaBus.GetDeviceModel(String resourcehandle, String& deviceID, String& bustype) 位置 D:\code\LabStudio\component\DevicesApp\VisaBus.cs:行号 129
+   在 DevicesApp.VisaBus.SearchDevices() 位置 D:\code\LabStudio\component\DevicesApp\VisaBus.cs:行号 30 
+2021-08-21 23:39:44.8654 Info:                [source]:资源管理器 LoadDevice,[msg]:初始化设备成功:GPIB0::34::INSTR。 
+2021-08-21 23:39:44.8734 Info:                [source]:资源管理器 LoadDevice,[msg]:初始化设备成功:USB0::0x0957::0x0D0B::US49230327::INSTR。 
+2021-08-21 23:39:44.8854 Info:                [source]:资源管理器 LoadDevice,[msg]:初始化设备成功:GPIB0::13::INSTR。 
+2021-08-21 23:55:22.3244 Info:                [source]:runtime,[msg]:Runtime 启动 
+2021-08-21 23:55:22.4554 Info:                [source]:runtime,[msg]:加载插件"F:\Code\Transmitter-3-New\TpsLabStudio_LTS\exe\apps\DataApp\bundle.config" 
+2021-08-21 23:55:22.7854 Info:                [source]:runtime,[msg]:加载插件"F:\Code\Transmitter-3-New\TpsLabStudio_LTS\exe\apps\DevicesApp\bundle.config" 
+2021-08-21 23:55:22.7984 Info:                [source]:runtime,[msg]:加载插件"F:\Code\Transmitter-3-New\TpsLabStudio_LTS\exe\apps\Tps_LQ_Transmitter\bundle.config" 
+2021-08-21 23:55:22.8114 Info:                [source]:runtime,[msg]:AppHost 开始启动插件 
+2021-08-21 23:55:22.8114 Info:                [source]:runtime,[msg]:插件"数据管理"启动成功 
+2021-08-21 23:55:22.8114 Info:                [source]:runtime,[msg]:插件"资源管理器"启动成功 
+2021-08-21 23:55:22.8114 Info:                [source]:runtime,[msg]:插件"6YX03B-9B"启动成功 
+2021-08-21 23:55:22.8114 Info:                [source]:runtime,[msg]:Runtime 启动完成 
+2021-08-21 23:55:31.1774 Error:                [source]:Visa SearchDevices,[msg]:VISA设备搜索执行异常,   在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
+   在 System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
+   在 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
+   在 System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
+   在 System.Activator.CreateInstance(Type type, Object[] args)
+   在 NationalInstruments.VisaNS.ResourceManager.Open(String resourceName, AccessModes accessMode, Int32 openTimeout)
+   在 NationalInstruments.VisaNS.ResourceManager.Open(String resourceName)
+   在 DevicesApp.VisaBus.GetDeviceModel(String resourcehandle, String& deviceID, String& bustype) 位置 D:\code\LabStudio\component\DevicesApp\VisaBus.cs:行号 129
+   在 DevicesApp.VisaBus.SearchDevices() 位置 D:\code\LabStudio\component\DevicesApp\VisaBus.cs:行号 30 
+2021-08-21 23:55:33.2194 Error:                [source]:Visa SearchDevices,[msg]:VISA设备搜索执行异常,   在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
+   在 System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
+   在 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
+   在 System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
+   在 System.Activator.CreateInstance(Type type, Object[] args)
+   在 NationalInstruments.VisaNS.ResourceManager.Open(String resourceName, AccessModes accessMode, Int32 openTimeout)
+   在 NationalInstruments.VisaNS.ResourceManager.Open(String resourceName)
+   在 DevicesApp.VisaBus.GetDeviceModel(String resourcehandle, String& deviceID, String& bustype) 位置 D:\code\LabStudio\component\DevicesApp\VisaBus.cs:行号 129
+   在 DevicesApp.VisaBus.SearchDevices() 位置 D:\code\LabStudio\component\DevicesApp\VisaBus.cs:行号 30 
+2021-08-21 23:55:33.2714 Info:                [source]:资源管理器 LoadDevice,[msg]:初始化设备成功:GPIB0::34::INSTR。 
+2021-08-21 23:55:33.2884 Info:                [source]:资源管理器 LoadDevice,[msg]:初始化设备成功:USB0::0x0957::0x0D0B::US49230327::INSTR。 
+2021-08-21 23:55:33.3034 Info:                [source]:资源管理器 LoadDevice,[msg]:初始化设备成功:GPIB0::13::INSTR。 

BIN
exe0822.rar


BIN
tps/TpsLabStudio/.vs/TpsLabStudio/v16/.suo


+ 11 - 2
tps/TpsLabStudio/FrmMain.cs

@@ -3,6 +3,7 @@ using System;
 using System.Collections.Generic;
 using System.ComponentModel;
 using System.Data;
+using System.Diagnostics;
 using System.Drawing;
 using System.IO;
 using System.Linq;
@@ -273,6 +274,9 @@ namespace Tps_LQ_Transmitter
 
         void StartTest()
         {
+            Stopwatch TimesCounter = new Stopwatch();
+            double testMin = 0;
+            TimesCounter.Start();
             //开始测试的时候重置测试表格
             currFileNode.Tps.ResetTestTable();
             // currFileNode.Tps.ResetManualTable();
@@ -365,13 +369,18 @@ namespace Tps_LQ_Transmitter
                     //控制
                     SerialClient.DUT_Transmitter_Ctrol(ThridByte, FourthByte);
                     Thread.Sleep(ControlDelay);//单位ms
+                    testMin = TimesCounter.ElapsedMilliseconds/1000f / 60f;
                     this.Invoke(new Action(() => {
-                        labRemainTime.Text = $"当前测试第{point+1}个频点:{CenterFreq}MHz,共{currFileNode.Tps.TestNodes.Count-1}个频点。";
+                        labRemainTime.Text = $"第{point+1}个频点[{CenterFreq}]MHz测试,共{currFileNode.Tps.TestNodes.Count-1}个频点,耗时{Math.Round(testMin,2)}Min。";
                     }));
                     currFileNode.Tps.Start(isOrderByChannel);
 
                 }
-               
+                TimesCounter.Stop();
+                testMin = TimesCounter.ElapsedMilliseconds / 1000f / 60f;
+                this.Invoke(new Action(() => {
+                    labRemainTime.Text = $"测试结束,共计耗时{Math.Round(testMin,2)}分钟";
+                }));
                 #endregion
                 //控制断电
                 SerialClient.DUT_Transmitter_Ctrol(0x00, 0x00);

BIN
tps/TpsLabStudio/config/测试#常温测试#9B发射机-N9030A.xlsx


+ 5 - 5
tps/TpsLabStudio/models/PowerTest-PowerMeter.cs

@@ -34,7 +34,7 @@ namespace Tps_LQ_Transmitter.models
                 ShowMessage(MsgType.Error, string.Format("仪器不齐全,{0}/{1}无法运行", parameters.Channel, parameters.Name));
                 return false;
             }
-            OpenExcel("功率及频率稳定度", out Spire.Xls.Workbook workbook, out Spire.Xls.Worksheet sheet);
+            OpenExcel("功率(功率计)", out Spire.Xls.Workbook workbook, out Spire.Xls.Worksheet sheet);
             if (sheet == null)
             {
                 ShowMessage(MsgType.Error, "找不到" + tps.TestProject + "模板.xlsx");
@@ -117,7 +117,7 @@ namespace Tps_LQ_Transmitter.models
                 //SerialClient.DUT_Transmitter_Ctrol(ThridByte, FourthByte);
                 //Thread.Sleep(PowerPara.ControlDelay);//单位ms
                 string aa = PowerMeter.Query("Fetch测量功率", "1");
-                PowerPrint.Test_name = parameters.Channel + "-功率测试(W)-" + parameters.CenterFreq.ToString() + "MHz";
+                PowerPrint.Test_name = parameters.Channel + "-功率测试(功率计)(W)-" + parameters.CenterFreq.ToString() + "MHz";
                 PowerPrint.Lower = PowerPara.PowerLower;
                 PowerPrint.Upper = PowerPara.PowerUpper;
                 PowerPrint.TestVal = Math.Round(double.Parse(aa), 2);//功率W
@@ -154,7 +154,7 @@ namespace Tps_LQ_Transmitter.models
 
                 if (WTempPowerVal[0, parameters.PointIndex] > -100 && WTempPowerVal[1, parameters.PointIndex] > -100)
                 {
-                    PowerSumPrint.Test_name = "两路功率总和(W)-" + parameters.CenterFreq.ToString() + "MHz";
+                    PowerSumPrint.Test_name = "两路功率总和(功率计)(W)-" + parameters.CenterFreq.ToString() + "MHz";
                     PowerSumPrint.Lower = PowerPara.PowerSumLower;
                     PowerSumPrint.Upper = PowerPara.PowerSumUpper;
                     PowerSumPrint.TestVal = Math.Round(WTempPowerVal[0, parameters.PointIndex] + WTempPowerVal[1, parameters.PointIndex], 2);//W
@@ -166,7 +166,7 @@ namespace Tps_LQ_Transmitter.models
                     {
                         PowerSumPrint.Result = "否";
                     }
-                    PowerFlatnessPrint.Test_name = "功率不平度(dB)-" + parameters.CenterFreq.ToString() + "MHz";
+                    PowerFlatnessPrint.Test_name = "功率不平度(功率计)(dB)-" + parameters.CenterFreq.ToString() + "MHz";
                     PowerFlatnessPrint.Upper = PowerPara.PowerFlatnessUpper;
                     PowerFlatnessPrint.TestVal = Math.Round(Math.Abs(dBTempPowerVal[0, parameters.PointIndex] - dBTempPowerVal[1, parameters.PointIndex]), 2);//dB
                     if ((PowerFlatnessPrint.TestVal >= 0) && (PowerFlatnessPrint.TestVal <= PowerFlatnessPrint.Upper))
@@ -179,7 +179,7 @@ namespace Tps_LQ_Transmitter.models
                     }
 
                     tps.TestTableAddCell(PowerSumPrint.Test_name, PowerSumPrint.Lower.ToString(), PowerSumPrint.Upper.ToString(), PowerSumPrint.TestVal.ToString(), PowerSumPrint.Result);
-                    tps.TestTableAddCell(PowerFlatnessPrint.Test_name, PowerFlatnessPrint.Lower.ToString(), "0", PowerFlatnessPrint.TestVal.ToString(), PowerFlatnessPrint.Result);
+                    tps.TestTableAddCell(PowerFlatnessPrint.Test_name, "0", PowerFlatnessPrint.Upper.ToString(),  PowerFlatnessPrint.TestVal.ToString(), PowerFlatnessPrint.Result);
                     // WriteExcelData(sheet, parameters.PointIndex, 3, PowerSumPrint.Test_name, PowerSumPrint.Lower.ToString(), "/", PowerSumPrint.TestVal.ToString(), PowerSumPrint.Result);
                     // WriteExcelData(sheet, parameters.PointIndex, 4, PowerFlatnessPrint.Test_name, PowerFlatnessPrint.Lower.ToString(), "/", PowerFlatnessPrint.TestVal.ToString(), PowerFlatnessPrint.Result);
                     //tps.SetTestTableCellValue(parameters.PointIndex, 12, PowerSumPrint.Result, PowerSumPrint.TestVal);

+ 2 - 2
tps/TpsLabStudio/models/VoltAndCurrent.cs

@@ -108,7 +108,7 @@ namespace Tps_LQ_Transmitter.models
                 VoltDataPrint.Test_name = parameters.Channel + "-电压测试-" + parameters.CenterFreq.ToString()+"MHz";
                 VoltDataPrint.Lower = PowerPara.VoltLower;
                 VoltDataPrint.Upper = PowerPara.VoltUpper;
-                VoltDataPrint.TestVal = double.Parse(Data.VoltVal[parameters.PointIndex]);
+                VoltDataPrint.TestVal = Math.Round(double.Parse(Data.VoltVal[parameters.PointIndex]),2);
                 //VoltDataPrint.TestVal = random.Next(2500, 3000) / 100.0;//随机数
                 if ((VoltDataPrint.TestVal >= VoltDataPrint.Lower) && (VoltDataPrint.TestVal <= VoltDataPrint.Upper))
                 {
@@ -122,7 +122,7 @@ namespace Tps_LQ_Transmitter.models
                 CurrentDataPrint.Test_name = parameters.Channel + "-电流测试-" + parameters.CenterFreq.ToString() + "MHz";
                 CurrentDataPrint.Lower = PowerPara.CurrentLower;
                 CurrentDataPrint.Upper = PowerPara.CurrentUpper;
-                CurrentDataPrint.TestVal = double.Parse(Data.CurrentVal[parameters.PointIndex]);
+                CurrentDataPrint.TestVal = Math.Round(double.Parse(Data.CurrentVal[parameters.PointIndex]),2);
                 //CurrentDataPrint.TestVal = random.Next(90, 160) / 100.0;
                 if ((CurrentDataPrint.TestVal >= CurrentDataPrint.Lower) && (CurrentDataPrint.TestVal <= CurrentDataPrint.Upper))
                 {

BIN
tps/TpsLabStudio/obj/Debug/TpsLabStudio.csprojAssemblyReference.cache