gpib

How to Wait on Service Request (RQS)

こ雲淡風輕ζ 提交于 2020-01-02 07:54:49
问题 **Note: Cross-posted at LabVIEW forums: http://forums.ni.com/t5/LabVIEW/C-VISA-wait-on-RQS/td-p/3122939 I'm trying to write a simple C# (.NET 4.0) program to control a Keithley 2400 SMU over VISA GPIB and I'm having trouble with getting the program to wait for the Service Request that the Keithley sends at the end of the sweep. The sweep is a simple linear voltage sweep, controlled internally by the Keithley unit. I've got the unit set up to send a ServiceRequest signal at the end of the

How to Wait on Service Request (RQS)

谁说胖子不能爱 提交于 2020-01-02 07:54:07
问题 **Note: Cross-posted at LabVIEW forums: http://forums.ni.com/t5/LabVIEW/C-VISA-wait-on-RQS/td-p/3122939 I'm trying to write a simple C# (.NET 4.0) program to control a Keithley 2400 SMU over VISA GPIB and I'm having trouble with getting the program to wait for the Service Request that the Keithley sends at the end of the sweep. The sweep is a simple linear voltage sweep, controlled internally by the Keithley unit. I've got the unit set up to send a ServiceRequest signal at the end of the

Sending SCPI/GPIB commands over USB from C#

微笑、不失礼 提交于 2019-12-24 08:57:30
问题 I'm trying to communicate with some test equipment from C# over SCPI. I managed to communicate with one device that is connected through TCP/IP by using this code example. However, my other devices are connected through USB and I haven't find how to communicate with them over USB. BTW, I found this question, and the link from the answer to the IVI-COM programming examples in C# document, but I couldn't apply the code samples (e.g. in section 5.4) because all of the IVI and VISA COM libraries

GB-IP Function not working correctly

故事扮演 提交于 2019-12-13 04:26:28
问题 I have a GP-IB card in my PC connected to a DMM via GP-IB. I have ran diagnostician on the card and confirms it is working. I am able to control it threw there software test. Now I am trying to create a program to do it, but when it sends the command it always gives error on DMM. I have 3 source files Master.pas, SubClass.pas, and ApiGpib.pas In master.pas I have this to send a command to the device. var Ret : DWORD; Yradr : DWORD; Srlen : DWORD; Cmd : array[0..31] of DWORD; csBuf : String;

PyVISA missing methods

风流意气都作罢 提交于 2019-12-11 17:55:01
问题 I am running Win 7 x64, NI 488.2, PyVISA 1.5, and python with numpy/scipy/ipython. I am attempting to contact a Keithley instrument through a GPIB-USB connection and send simple commands. However, when I attempt to create the instrument object, I discovered that PyVISA's ResourceManager was missing the required methods used for finding, reading, and writing to instruments. Following the example code on PyVISA's page, right now I have: import visa rm = visa.ResourceManager my_instrument = rm

pyVISA: Return instrument to local mode programmatically

半腔热情 提交于 2019-12-07 17:07:35
问题 I am using pyVISA to control some instruments in a GPIB network. When I create a resource manager, all the instruments in my GPIB network enter remote mode, so the front panel displays are locked and do not update. When I close the resource manager, the instruments remain in remote mode. import visa rm = visa.ResourceManager() #Connect to a specific instrument MyInstrument = rm.open_resource('GPIB0::10::INSTR') #Do stuff print(MyInstrument.query("*IDN?")) #close resource manager rm.close() In

pyVISA: Return instrument to local mode programmatically

人走茶凉 提交于 2019-12-05 19:31:38
I am using pyVISA to control some instruments in a GPIB network. When I create a resource manager, all the instruments in my GPIB network enter remote mode, so the front panel displays are locked and do not update. When I close the resource manager, the instruments remain in remote mode. import visa rm = visa.ResourceManager() #Connect to a specific instrument MyInstrument = rm.open_resource('GPIB0::10::INSTR') #Do stuff print(MyInstrument.query("*IDN?")) #close resource manager rm.close() In this particular case I only want to control one instrument in the network, but need the others to be

C# Visual Studio GPIB Commands

◇◆丶佛笑我妖孽 提交于 2019-12-01 05:15:07
What commands do you use to talk to a GPIB instrument in C#, visual studio? I need to be able to write commands to the instrument and read the output. Benoit Blanchon I use Agilent IO Library Suite . Here is a tutorial to use it on C#: I/O programming examples in C# Nevertheless, in my company we had stability issues with the VISA-COM implementation, so we wrote our own wrapper around the visa32.dll (also part of the IO Library suite) using P/Invoke. (Disclosure: I work in a company that make intense use of GPIB instruments) I'm using National Instruments VISA and NI 488.2 . First make sure

C# Visual Studio GPIB Commands

Deadly 提交于 2019-12-01 03:30:10
问题 What commands do you use to talk to a GPIB instrument in C#, visual studio? I need to be able to write commands to the instrument and read the output. 回答1: I use Agilent IO Library Suite. Here is a tutorial to use it on C#: I/O programming examples in C# Nevertheless, in my company we had stability issues with the VISA-COM implementation, so we wrote our own wrapper around the visa32.dll (also part of the IO Library suite) using P/Invoke. (Disclosure: I work in a company that make intense use