• 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
返回

电子发烧友 电子发烧友

  • 全文搜索
    • 全文搜索
    • 标题搜索
  • 全部时间
    • 全部时间
    • 1小时内
    • 1天内
    • 1周内
    • 1个月内
  • 默认排序
    • 默认排序
    • 按时间排序
  • 全部板块
    • 全部板块
大家还在搜
  • 读取功率计HP436A时出现问题

    (); ResourceManager gr1 = new ResourceManager(); ioPm.IO =(IMessage)gr1.Open(“GPIB ::”+ adrPm.ToString

    2019-07-04 15:31

  • 怎么使用8712ET网络分析仪上传/下载文件

    ResourceManager(); var visaIO = new FormattedIO488 {IO =(IMessage)resourceManager.Open('TCPIP0

    2018-09-25 14:38

  • 怎么使用GPIB使用C编程N8734A

    嗨,查看电源文档中提供的示例。通过在C#中添加两个库AgilentRMLib和VisComLib来完成编程。当我尝试通过选择添加参考 - > Agilent VISA COM Resourse Manager 1.0添加AgilentRMLib时,参考中会显示错误。我尝试直接从Program Files添加agtRM.dll。仍然存在错误。以前有人遇到过这个问题吗?有什么解决方案吗?谢谢,Muralidharan 以上来自于谷歌翻译 以下为原文Hi, On looking at the examples provided in the documentation of the Power supply. The Programming has been done by adding two libraries AgilentRMLib and VisComLib in the C#. Wheni try to add the AgilentRMLib by Selecting the Add Reference->Agilent VISA COM Resourse Manager 1.0, an error is shown at the reference. I tried adding the agtRM.dll directly from the Program Files. Still the error persists. Has anyone faced this problem before? Any Solutions for this? Thanks, Muralidharan

    2019-03-21 09:38

  • 为什么使用3458A C DINT获取读数

    =(IMessage)oRm.Open(instAddress,AccessMode.NO_LOCK,2000,“”); oFio.IO.Timeout = 10000; //将超时设置为10秒//重置仪器

    2019-01-25 15:42

  • 快速数据通过SCPI将ENA测量结果提取给计算机

    ::A-N5227A-70295::inst0::INSTR"; ioDmm.IO = (IMessage)grm.Open(visaAddress, AccessMode.NO_LOCK

    2018-09-10 17:01

  • WPF学习记录

    Int16和short数据类型是什么?HslCommunication.ModBus.ModbusRtu有何作用?

    2021-08-19 07:41

  • 如何用stm32的DMA去实现一个串口接收缓存?

    如何用stm32的DMA去实现一个串口接收缓存?

    2021-10-08 07:09

  • 如何从ENA到计算机获取S参数?

    亲爱的先生们,拜托,您能帮助我使用SCPI命令从ENA读取S参数吗?我尝试了很多次,但我没有成功。我想使用Matlab从ENA读取S11参数并将此数据放在工作空间(Matlab)上。我会感激任何帮助。 以上来自于谷歌翻译 以下为原文Dear Gentlemen, Please, could you help me to read S parameters from ENA to PC using SCPI commands ? I've tried many times, but I haven't success. I would like read S11 parameter from ENA using a Matlab and put this data on workspace (Matlab). I'll be grateful for any help.

    2018-12-03 10:12

  • agilent34410a IVICom错误返回

    嗨,我正在尝试使用最新的IVICom driver_ivicom_ivic_Agilent34410_1_0_22_0.msi通过u***与34410连接,但它在所有功能上返回错误值“9,9E37”,虽然它会改变功能电压,电阻等,但是当IO Monitor返回正确值时运行。使用driver_ivicom_ivic_Agilent34410_1_0_19_0.msi一切正常。提前致谢。 以上来自于谷歌翻译 以下为原文Hi, I'm trying to connect with 34410 through u*** using latest IVICom driver_ivicom_ivic_Agilent34410_1_0_22_0.msi, but it return wrong value "9,9E37" on all functions, though it changes function voltage, resistance e.t.c, however it return right value when IO Monitor is runned. With driver_ivicom_ivic_Agilent34410_1_0_19_0.msi all work fine. Thanks in advance.

    2019-10-14 09:11

  • 怎么给E3631A上电并测量电流

    您好,希望有人可以帮助我。我是E3631a的新手,我试图给E3631A上电并测量电流。我的代码是在.Net 4中运行的C#。我似乎连接并且可以交互一些,但是我得到以下错误。错误查询:511,RS-232框架错误错误查询:-410,查询INTERRUPTEDI通过RS-232连接。仪表设置为9600波特,无,8位。我的IO.OptionString当前为“Timeout = 2000; SendEndEnabled = TRUE; TerminationCharacter = 10; TerminationCharacterEnabled = TRUE; BaudRate = 9600; DataBits = 8; EndIn = ASRL_END_TERMCHAR; EndOut = ASRL_END_NONE; FlowControl = ASRL_FLOW_NONE; Parity = ASRL_PAR_NONE; RequestToSendState = 1; DataTerminalReadyState = 1; StopBits = ASRL_STOP_ONE; MaximumQueueLength = 1000; ReplacementCharacter = 255; XONCharacter = 17; XOFFCharacter = 19“我的代码如下。跟踪输出遵循代码。我的代码输出是System ReadyConnecting to the Power SupplyGetting Outputs设置电压水平1AgilentE36xx:检测到仪器错误。使用ErrorQuery()来确定错误.Driver:Agilent.AgilentE36xx.Interop.AgilentE36xxClass,Initialized True ErrorQuery:511,RS-232 framing errorErrorQuery:-410,Query INTERRUPTEDErrorQuery:0,No errorDriver Closed void MeasureCurrentDraw(){ Agilent.AgilentE36xx.Interop.AgilentE36xx driver = null; try {// Create driver instance driver = new Agilent.AgilentE36xx.Interop.AgilentE36xx();记录(“连接电源”); string resourceDesc =“ASRL1 :: INSTR”; string standardInitOptions =“QueryInstrStatus = true”; string driverSetupOptions =“DriverSetup = Model =,Trace = true”; driver.Initialize(resourceDesc,true,true,standardInitOptions +“,”+ driverSetupOptions); if(driver.Initialized){driver.System.DisableLocalControls(); //获取Output1对象。 get_Name(1)返回“Output1”。记录(“获取输出”); IAgilentE36xxOutput pOutput1 = driver.Outputs.get_Item(driver.Outputs.get_Name(1)); IAgilentE36xxOutput pOutput2 = driver.Outputs.get_Item(driver.Outputs.get_Name(2)); IAgilentE36xxOutput pOutput3 = driver.Outputs.get_Item(driver.Outputs.get_Name(3)); //设置输出电压。记录(“设置电压等级1”); pOutput1.ApplyVurrentCurrent(5.2,2.8);记录(“设置电压水平2”); pOutput2.ApplyVurrentCurrent(15,0.9);记录(“设置电压等级3”); pOutput3.ApplyVoltageCurrent(-15,0.5);记录(“启用输出”); //启用所有输出driver.Outputs.Enabled = true;记录(“睡2秒”); Thread.sleep代码(2000);记录(“测量电流消耗1”); //测量输出电压currentDraw [1] = pOutput1.Measure(AgilentE36xxMeasurementTypeEnum.AgilentE36xxMeasurementCurrent);记录(“测量电流消耗2”); currentDraw [2] = pOutput1.Measure(AgilentE36xxMeasurementTypeEnum.AgilentE36xxMeasurementCurrent);记录(“测量电流消耗3”); currentDraw [3] = pOutput1.Measure(AgilentE36xxMeasurementTypeEnum.AgilentE36xxMeasurementCurrent);记录(“禁用输出”); //禁用所有输出driver.Outputs.Enabled = false; //检查仪器的错误int errorNum = -1; string errorMsg = null; while(errorNum!= 0){driver.Utility.ErrorQuery(ref errorNum,ref errorMsg); Log(String.Format(“ErrorQuery:{0},{1}”,errorNum,errorMsg)); driver.System.WaitForOperationComplete(1000); Thread.Sleep(2000); //睡眠2秒钟,让电压消失。 driver.System.EnableLocalControls(); } else {Log(“Driver failed to initialize”); catch(Exception ex){Log(ex.Message); //检查仪器是否有错误尝试{Log(String.Format(“Driver:{0},Initialized {1}”,driver,driver.Initialized)); if(driver!= null&& driver.Initialized){int errorNum = -1; string errorMsg = null; while(errorNum!= 0){driver.Utility.ErrorQuery(ref errorNum,ref errorMsg); Log(String.Format(“ErrorQuery:{0},{1}”,errorNum,errorMsg)); catch(Exception ex2){Log(“捕获异常时出错”);日志(ex2.Message); } {finally(driver!= null&& driver.Initialized){//关闭驱动程序driver.Close();记录(“驱动程序已关闭”); }}} 以上来自于谷歌翻译 以下为原文Hello, Hopefully someone can help me out.I am new to programming for the E3631aI am trying to power up my E3631A and measure the current draw.My code is C# running in .Net 4.I appear to connect and can interact some, but I get the following error.ErrorQuery: 511, RS-232 framing errorErrorQuery: -410, Query INTERRUPTEDI am connected via RS-232.The meter is setup 9600 baud, none, 8 bits.My IO.OptionString is currently "Timeout = 2000 ; SendEndEnabled = TRUE ; TerminationCharacter = 10 ; TerminationCharacterEnabled = TRUE ; BaudRate = 9600 ; DataBits = 8 ; EndIn = ASRL_END_TERMCHAR ; EndOut = ASRL_END_NONE ; FlowControl = ASRL_FLOW_NONE ; Parity = ASRL_PAR_NONE ; RequestToSendState = 1 ; DataTerminalReadyState = 1 ; StopBits = ASRL_STOP_ONE ; MaximumQueueLength = 1000 ; ReplacementCharacter = 255 ; XONCharacter = 17 ; XOFFCharacter = 19" My code is as follows.The trace output follows the code.The output of my code is System ReadyConnecting to the Power SupplyGetting OutputsSetting voltage levels 1AgilentE36xx: Instrument error detected.Use ErrorQuery() to determine the error(s).Driver: Agilent.AgilentE36xx.Interop.AgilentE36xxClass, Initialized True ErrorQuery: 511, RS-232 framing errorErrorQuery: -410, Query INTERRUPTEDErrorQuery: 0, No errorDriver Closedvoid MeasureCurrentDraw(){Agilent.AgilentE36xx.Interop.AgilentE36xx driver = null;try{ // Create driver instance driver = new Agilent.AgilentE36xx.Interop.AgilentE36xx(); Log("Connecting to the Power Supply"); string resourceDesc = "ASRL1::INSTR"; string standardInitOptions = "QueryInstrStatus=true"; string driverSetupOptions = "DriverSetup= Model=, Trace=true"; driver.Initialize(resourceDesc, true, true, standardInitOptions + "," + driverSetupOptions); if (driver.Initialized) {driver.System.DisableLocalControls();// Get Output1 object.get_Name(1) returns "Output1".Log("Getting Outputs");IAgilentE36xxOutput pOutput1 = driver.Outputs.get_Item(driver.Outputs.get_Name(1));IAgilentE36xxOutput pOutput2 = driver.Outputs.get_Item(driver.Outputs.get_Name(2));IAgilentE36xxOutput pOutput3 = driver.Outputs.get_Item(driver.Outputs.get_Name(3));// Set output voltage.Log("Setting voltage levels 1");pOutput1.ApplyVoltageCurrent(5.2, 2.8);Log("Setting voltage levels 2");pOutput2.ApplyVoltageCurrent(15, 0.9);Log("Setting voltage levels 3");pOutput3.ApplyVoltageCurrent(-15,0.5);Log("Enabling Outputs");// Enable all outputsdriver.Outputs.Enabled = true;Log("Sleeping for 2 seconds");Thread.Sleep(2000);Log("Measuring the current draw 1");// Measure the output voltagecurrentDraw[1] = pOutput1.Measure(AgilentE36xxMeasurementTypeEnum.AgilentE36xxMeasurementCurrent);Log("Measuring the current draw 2");currentDraw[2] = pOutput1.Measure(AgilentE36xxMeasurementTypeEnum.AgilentE36xxMeasurementCurrent);Log("Measuring the current draw 3");currentDraw[3] = pOutput1.Measure(AgilentE36xxMeasurementTypeEnum.AgilentE36xxMeasurementCurrent);Log("Disabling the outputs");// Disable all outputsdriver.Outputs.Enabled = false;// Check instrument for errorsint errorNum = -1;string errorMsg = null;while (errorNum != 0){driver.Utility.ErrorQuery(ref errorNum, ref errorMsg);Log(String.Format("ErrorQuery: {0}, {1}", errorNum, errorMsg));driver.System.WaitForOperationComplete(1000);}Thread.Sleep(2000); //Sleep for 2 seconds to allow voltages to die out.driver.System.EnableLocalControls(); } else {Log("Driver failed to initialize"); }}catch (Exception ex){ Log(ex.Message); // Check instrument for errors try {Log(String.Format("Driver: {0}, Initialized {1} ", driver, driver.Initialized));if (driver != null && driver.Initialized){int errorNum = -1;string errorMsg = null;while (errorNum != 0){ driver.Utility.ErrorQuery(ref errorNum, ref errorMsg); Log(String.Format("ErrorQuery: {0}, {1}", errorNum, errorMsg));}} } catch (Exception ex2) {Log("error while catching exception");Log(ex2.Message); }}finally{ if (driver != null && driver.Initialized) {// Close driverdriver.Close();Log("Driver Closed"); }}}

    2019-04-19 09:28