• RE: 主线程卡死

    Thankfully, by reading the manual I learned how to use SRQ to get the status of the instrument as it executes, and when the instrument sweeping, I can avoid querying data into the buff before the scan is complete simply by reading the sweep bit in the operating condition register. Your documentation is very detailed, thank you very much!
  • RE: 主线程卡死

    I am using KEITHLEY 2410 Source Measure Units
    I want to use my own software to for remote line sweep.
    For example, when I want to implement the sweep function, after I configure the start value, stop value, step value, sweep point, etc. and activate the measurement with command 'FETCh?'. Because I don't know how long the device will run before it finishes, I will try to send the software command 'instrument_control_object.ReadString()' to read the data to the instrument in a sub-thread, but the software will be stuck until the instrument finishes the test and returns the scan data.
    The software command 'instrument_control_object.ReadString()' is cone from Ivi.Visa.Interop;
    The user's guide 《Getting Started with Instrument Control Using Microsoft Visual Studio C Sharp》using VISA Reference in VISA COM 5.9 Type Library, so I use this reference too.
     
  • 主线程卡死

    我使用C#语言,使用的using Ivi.Visa.Interop;引用 
    当我在子线程使用readstring()函数读取电压扫描数据时,函数必须等待仪器扫描完毕获取到数据之后才能运行。
    这就导致在电压扫描过程中我的主线程和其他线程无法运行,软件处于卡死状态!

    大家有谁了解这是什么原理为什么?